Comparing version 0.0.9 to 0.0.95
@@ -123,3 +123,3 @@ "use strict"; | ||
for (let i = 1; i < chain.length; i++) { | ||
const q = quad(chain[i].proofId, (0, proof_utils_1.sec_prefix)("previousProof"), chain[i - 1].proofId, chain[i].graph); | ||
const q = quad(chain[i].proofId, proof_utils_1.sec_previousProof, chain[i - 1].proofId, chain[i].graph); | ||
retval.add(q); | ||
@@ -186,2 +186,7 @@ } | ||
} | ||
else if (q.predicate.equals(proof_utils_1.sec_previousProof)) { | ||
// Per the cryptosuite specifications, the "previous proof" statement is not part of the "proof options", ie, | ||
// should not be used for the generation of the final proof. It was not used to generate the proof graph when signing. | ||
continue; | ||
} | ||
else if (q.graph.termType === "DefaultGraph") { | ||
@@ -188,0 +193,0 @@ dataStore.add(q); |
@@ -35,2 +35,3 @@ /** | ||
export declare const xsd_datetime: rdf.NamedNode; | ||
export declare const sec_previousProof: rdf.NamedNode; | ||
/** | ||
@@ -37,0 +38,0 @@ * Generate a (separate) proof graph, per the DI spec. The signature is stored in |
@@ -13,3 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.verifyProofGraphs = exports.generateAProofGraph = exports.xsd_datetime = exports.sec_created = exports.sec_revoked = exports.sec_expires = exports.sec_verificationMethod = exports.sec_assertionMethod = exports.sec_authenticationMethod = exports.sec_proofPurpose = exports.sec_publicKeyMultibase = exports.sec_publicKeyJwk = exports.sec_proofValue = exports.sec_di_proof = exports.sec_proof = exports.rdf_json = exports.rdf_type = exports.xsd_prefix = exports.rdf_prefix = exports.sec_prefix = void 0; | ||
exports.verifyProofGraphs = exports.generateAProofGraph = exports.sec_previousProof = exports.xsd_datetime = exports.sec_created = exports.sec_revoked = exports.sec_expires = exports.sec_verificationMethod = exports.sec_assertionMethod = exports.sec_authenticationMethod = exports.sec_proofPurpose = exports.sec_publicKeyMultibase = exports.sec_publicKeyJwk = exports.sec_proofValue = exports.sec_di_proof = exports.sec_proof = exports.rdf_json = exports.rdf_type = exports.xsd_prefix = exports.rdf_prefix = exports.sec_prefix = void 0; | ||
const n3 = require("n3"); | ||
@@ -46,2 +46,3 @@ const uuid_1 = require("uuid"); | ||
exports.xsd_datetime = (0, exports.xsd_prefix)('dateTime'); | ||
exports.sec_previousProof = (0, exports.sec_prefix)("previousProof"); | ||
/** | ||
@@ -48,0 +49,0 @@ * The proof option graph is the collection of all quads in a proof graph, except the proof |
{ | ||
"name": "rdfjs-di", | ||
"version": "0.0.9", | ||
"date": "2024-06-12", | ||
"version": "0.0.95", | ||
"date": "2024-06-25", | ||
"description": "Secure an RDF Dataset through VC's Data Integrity", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
86060
1832