@twin.org/immutable-proof-service 0.0.1-next.19 → 0.0.1-next.20

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.
@@ -400,10 +400,10 @@ class ImmutableProofService {
400
400
  */
401
401
  _eventBusComponent;
402
402
  /**
403
- * The assertion method id to use for the proofs.
403
+ * The verification method id to use for the proofs.
404
404
  * @internal
405
405
  */
406
- _assertionMethodId;
406
+ _verificationMethodId;
407
407
  /**
408
408
  * The proof hash key id to use for the proofs.
409
409
  * @internal
@@ -429,7 +429,7 @@ class ImmutableProofService {
429
429
  this._eventBusComponent = core.ComponentFactory.get(options.eventBusComponentType);
430
430
  }
431
431
  this._config = options?.config ?? {};
432
- this._assertionMethodId = this._config.assertionMethodId ?? "immutable-proof-assertion";
432
+ this._verificationMethodId = this._config.verificationMethodId ?? "immutable-proof-assertion";
433
433
  this._proofHashKeyId = this._config.proofHashKeyId ?? "immutable-proof-hash";
434
434
  this._backgroundTaskConnector.registerHandler("immutable-proof", "@twin.org/immutable-proof-task", "processProofTask", async (task) => {
435
435
  await this.finaliseTask(task);
@@ -469,7 +469,7 @@ class ImmutableProofService {
469
469
  proofId: id,
470
470
  nodeIdentity,
471
471
  identityConnectorType: this._identityConnectorType,
472
- assertionMethodId: this._assertionMethodId,
472
+ assertionMethodId: this._verificationMethodId,
473
473
  hashData: core.Converter.bytesToHex(hashData)
474
474
  };
475
475
  await this._backgroundTaskConnector.create("immutable-proof", proofTaskPayload);
@@ -398,10 +398,10 @@ class ImmutableProofService {
398
398
  */
399
399
  _eventBusComponent;
400
400
  /**
401
- * The assertion method id to use for the proofs.
401
+ * The verification method id to use for the proofs.
402
402
  * @internal
403
403
  */
404
- _assertionMethodId;
404
+ _verificationMethodId;
405
405
  /**
406
406
  * The proof hash key id to use for the proofs.
407
407
  * @internal
@@ -427,7 +427,7 @@ class ImmutableProofService {
427
427
  this._eventBusComponent = ComponentFactory.get(options.eventBusComponentType);
428
428
  }
429
429
  this._config = options?.config ?? {};
430
- this._assertionMethodId = this._config.assertionMethodId ?? "immutable-proof-assertion";
430
+ this._verificationMethodId = this._config.verificationMethodId ?? "immutable-proof-assertion";
431
431
  this._proofHashKeyId = this._config.proofHashKeyId ?? "immutable-proof-hash";
432
432
  this._backgroundTaskConnector.registerHandler("immutable-proof", "@twin.org/immutable-proof-task", "processProofTask", async (task) => {
433
433
  await this.finaliseTask(task);
@@ -467,7 +467,7 @@ class ImmutableProofService {
467
467
  proofId: id,
468
468
  nodeIdentity,
469
469
  identityConnectorType: this._identityConnectorType,
470
- assertionMethodId: this._assertionMethodId,
470
+ assertionMethodId: this._verificationMethodId,
471
471
  hashData: Converter.bytesToHex(hashData)
472
472
  };
473
473
  await this._backgroundTaskConnector.create("immutable-proof", proofTaskPayload);
@@ -3,10 +3,10 @@
3
3
  */
4
4
  export interface IImmutableProofServiceConfig {
5
5
  /**
6
- * The assertion method id to use for the stream.
6
+ * The verification method id to use for the proof.
7
7
  * @default immutable-proof-assertion
8
8
  */
9
- assertionMethodId?: string;
9
+ verificationMethodId?: string;
10
10
  /**
11
11
  * The key to use in the proof hash.
12
12
  * @default immutable-proof-hash
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/immutable-proof-service - Changelog
2
2
 
3
- ## v0.0.1-next.19
3
+ ## v0.0.1-next.20
4
4
 
5
5
  - Initial Release
@@ -4,11 +4,11 @@ Configuration for the immutable proof service.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### assertionMethodId?
7
+ ### verificationMethodId?
8
8
 
9
- > `optional` **assertionMethodId**: `string`
9
+ > `optional` **verificationMethodId**: `string`
10
10
 
11
- The assertion method id to use for the stream.
11
+ The verification method id to use for the proof.
12
12
 
13
13
  #### Default
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/immutable-proof-service",
3
- "version": "0.0.1-next.19",
3
+ "version": "0.0.1-next.20",
4
4
  "description": "Immutable proof contract implementation and REST endpoint definitions",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,8 +23,8 @@
23
23
  "@twin.org/entity-storage-models": "next",
24
24
  "@twin.org/event-bus-models": "next",
25
25
  "@twin.org/identity-models": "next",
26
- "@twin.org/immutable-proof-models": "0.0.1-next.19",
27
- "@twin.org/immutable-proof-task": "0.0.1-next.19",
26
+ "@twin.org/immutable-proof-models": "0.0.1-next.20",
27
+ "@twin.org/immutable-proof-task": "0.0.1-next.20",
28
28
  "@twin.org/immutable-storage-models": "next",
29
29
  "@twin.org/nameof": "next",
30
30
  "@twin.org/standards-w3c-did": "next",