@twin.org/engine 0.0.1-next.53 → 0.0.1-next.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -125,7 +125,6 @@ function buildEngineConfiguration(envVars) {
125
125
  envVars.stateFilename = path.join(envVars.storageFileRoot, envVars.stateFilename);
126
126
  }
127
127
  envVars.attestationVerificationMethodId ??= "attestation-assertion";
128
- envVars.immutableProofHashKeyId ??= "immutable-proof-hash";
129
128
  envVars.immutableProofVerificationMethodId ??= "immutable-proof-assertion";
130
129
  envVars.blobStorageEnableEncryption ??= "false";
131
130
  envVars.blobStorageEncryptionKey ??= "blob-encryption";
@@ -771,8 +770,7 @@ function configureImmutableStorage(coreConfig, envVars) {
771
770
  type: engineTypes.ImmutableProofComponentType.Service,
772
771
  options: {
773
772
  config: {
774
- verificationMethodId: envVars.immutableProofVerificationMethodId,
775
- proofHashKeyId: envVars.immutableProofHashKeyId
773
+ verificationMethodId: envVars.immutableProofVerificationMethodId
776
774
  }
777
775
  }
778
776
  });
@@ -871,6 +869,16 @@ function configureIdentityResolver(coreConfig, envVars) {
871
869
  }
872
870
  });
873
871
  }
872
+ else if (envVars.identityResolverConnector === engineTypes.IdentityResolverConnectorType.IotaUniversal) {
873
+ coreConfig.types.identityResolverConnector.push({
874
+ type: engineTypes.IdentityResolverConnectorType.IotaUniversal,
875
+ options: {
876
+ config: {
877
+ endpoint: envVars.iotaUniversalResolverEndpoint ?? ""
878
+ }
879
+ }
880
+ });
881
+ }
874
882
  if (coreConfig.types.identityResolverConnector.length > 0) {
875
883
  coreConfig.types.identityResolverComponent ??= [];
876
884
  coreConfig.types.identityResolverComponent.push({
@@ -123,7 +123,6 @@ function buildEngineConfiguration(envVars) {
123
123
  envVars.stateFilename = path.join(envVars.storageFileRoot, envVars.stateFilename);
124
124
  }
125
125
  envVars.attestationVerificationMethodId ??= "attestation-assertion";
126
- envVars.immutableProofHashKeyId ??= "immutable-proof-hash";
127
126
  envVars.immutableProofVerificationMethodId ??= "immutable-proof-assertion";
128
127
  envVars.blobStorageEnableEncryption ??= "false";
129
128
  envVars.blobStorageEncryptionKey ??= "blob-encryption";
@@ -769,8 +768,7 @@ function configureImmutableStorage(coreConfig, envVars) {
769
768
  type: ImmutableProofComponentType.Service,
770
769
  options: {
771
770
  config: {
772
- verificationMethodId: envVars.immutableProofVerificationMethodId,
773
- proofHashKeyId: envVars.immutableProofHashKeyId
771
+ verificationMethodId: envVars.immutableProofVerificationMethodId
774
772
  }
775
773
  }
776
774
  });
@@ -869,6 +867,16 @@ function configureIdentityResolver(coreConfig, envVars) {
869
867
  }
870
868
  });
871
869
  }
870
+ else if (envVars.identityResolverConnector === IdentityResolverConnectorType.IotaUniversal) {
871
+ coreConfig.types.identityResolverConnector.push({
872
+ type: IdentityResolverConnectorType.IotaUniversal,
873
+ options: {
874
+ config: {
875
+ endpoint: envVars.iotaUniversalResolverEndpoint ?? ""
876
+ }
877
+ }
878
+ });
879
+ }
872
880
  if (coreConfig.types.identityResolverConnector.length > 0) {
873
881
  coreConfig.types.identityResolverComponent ??= [];
874
882
  coreConfig.types.identityResolverComponent.push({
@@ -354,6 +354,10 @@ export interface IEngineEnvironmentVariables {
354
354
  * IOTA Explorer Endpoint.
355
355
  */
356
356
  iotaExplorerEndpoint?: string;
357
+ /**
358
+ * IOTA Universal Resolver Endpoint.
359
+ */
360
+ iotaUniversalResolverEndpoint?: string;
357
361
  /**
358
362
  * The type of identity profile connector: entity-storage.
359
363
  */
@@ -362,10 +366,6 @@ export interface IEngineEnvironmentVariables {
362
366
  * The identity verification method id to use with immutable proofs.
363
367
  */
364
368
  immutableProofVerificationMethodId?: string;
365
- /**
366
- * The hash key from the vault to use with immutable proofs.
367
- */
368
- immutableProofHashKeyId?: string;
369
369
  /**
370
370
  * The type of attestation connector: entity-storage, iota.
371
371
  */
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/engine - Changelog
2
2
 
3
- ## v0.0.1-next.37
3
+ ## v0.0.1-next.54
4
4
 
5
5
  - Initial Release
@@ -708,6 +708,14 @@ IOTA Explorer Endpoint.
708
708
 
709
709
  ***
710
710
 
711
+ ### iotaUniversalResolverEndpoint?
712
+
713
+ > `optional` **iotaUniversalResolverEndpoint**: `string`
714
+
715
+ IOTA Universal Resolver Endpoint.
716
+
717
+ ***
718
+
711
719
  ### identityProfileConnector?
712
720
 
713
721
  > `optional` **identityProfileConnector**: `string`
@@ -724,14 +732,6 @@ The identity verification method id to use with immutable proofs.
724
732
 
725
733
  ***
726
734
 
727
- ### immutableProofHashKeyId?
728
-
729
- > `optional` **immutableProofHashKeyId**: `string`
730
-
731
- The hash key from the vault to use with immutable proofs.
732
-
733
- ***
734
-
735
735
  ### attestationConnector?
736
736
 
737
737
  > `optional` **attestationConnector**: `string`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/engine",
3
- "version": "0.0.1-next.53",
3
+ "version": "0.0.1-next.54",
4
4
  "description": "Engine implementation.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@twin.org/core": "next",
18
- "@twin.org/engine-core": "0.0.1-next.53",
19
- "@twin.org/engine-types": "0.0.1-next.53",
18
+ "@twin.org/engine-core": "0.0.1-next.54",
19
+ "@twin.org/engine-types": "0.0.1-next.54",
20
20
  "@twin.org/entity": "next"
21
21
  },
22
22
  "main": "./dist/cjs/index.cjs",