@twin.org/auditable-item-graph-service 0.0.1-next.13 → 0.0.1-next.14

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.
@@ -1207,11 +1207,8 @@ class AuditableItemGraphService {
1207
1207
  };
1208
1208
  }
1209
1209
  else {
1210
- // Create the JSON-LD object we want to use for the proof
1211
- // this is a subset of fixed properties from the changeset object.
1212
- const reducedChangesetJsonLd = await this.changesetEntityToJsonLd(core.ObjectHelper.pick(storedChangeset, AuditableItemGraphService._PROOF_KEYS_CHANGESET));
1213
1210
  // Verify the proof for the changeset object
1214
- storedChangesetJsonLd.verification = await this._immutableProofComponent.verify(storedChangeset.proofId, reducedChangesetJsonLd);
1211
+ storedChangesetJsonLd.verification = await this._immutableProofComponent.verify(storedChangeset.proofId);
1215
1212
  if (!storedChangesetJsonLd.verification.verified) {
1216
1213
  verified = false;
1217
1214
  }
@@ -1205,11 +1205,8 @@ class AuditableItemGraphService {
1205
1205
  };
1206
1206
  }
1207
1207
  else {
1208
- // Create the JSON-LD object we want to use for the proof
1209
- // this is a subset of fixed properties from the changeset object.
1210
- const reducedChangesetJsonLd = await this.changesetEntityToJsonLd(ObjectHelper.pick(storedChangeset, AuditableItemGraphService._PROOF_KEYS_CHANGESET));
1211
1208
  // Verify the proof for the changeset object
1212
- storedChangesetJsonLd.verification = await this._immutableProofComponent.verify(storedChangeset.proofId, reducedChangesetJsonLd);
1209
+ storedChangesetJsonLd.verification = await this._immutableProofComponent.verify(storedChangeset.proofId);
1213
1210
  if (!storedChangesetJsonLd.verification.verified) {
1214
1211
  verified = false;
1215
1212
  }
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/auditable-item-graph-service - Changelog
2
2
 
3
- ## v0.0.1-next.13
3
+ ## v0.0.1-next.14
4
4
 
5
5
  - Initial Release
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/auditable-item-graph-service",
3
- "version": "0.0.1-next.13",
3
+ "version": "0.0.1-next.14",
4
4
  "description": "Auditable Item Graph contract implementation and REST endpoint definitions",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@twin.org/api-models": "next",
18
- "@twin.org/auditable-item-graph-models": "0.0.1-next.13",
18
+ "@twin.org/auditable-item-graph-models": "0.0.1-next.14",
19
19
  "@twin.org/core": "next",
20
20
  "@twin.org/crypto": "next",
21
21
  "@twin.org/data-json-ld": "next",