Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
feat: migrate to using security context
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The type IRI for BBS signatures now stems from the https://w3id.org/security namespace, meaning all future signing and verifications using the signature suite will now use that namespace rather than the placeholder namespace that was being used. Note - this means verifying signatures and proofs issued with older versions of this library will not work.
  • Loading branch information
kdenhartog authored Nov 4, 2020
1 parent 55c8eaa commit 2673a0a
Show file tree
Hide file tree
Showing 27 changed files with 632 additions and 188 deletions.
1 change: 1 addition & 0 deletions __tests__/BbsBlsSignature2020.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ describe("BbsBlsSignature2020", () => {
purpose: new jsigs.purposes.AssertionProofPurpose(),
documentLoader: customLoader
});

expect(verificationResult).toBeDefined();
expect(verificationResult.verified).toBeTruthy();
});
Expand Down
10 changes: 7 additions & 3 deletions __tests__/BbsBlsSignatureProof2020.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe("BbsBlsSignatureProof2020", () => {

const { proofs, document } = await getProofs({
document: testSignedDocument,
proofType: suite.supportedDeriveProofType,
proofType: BbsBlsSignatureProof2020.supportedDerivedProofType,
documentLoader: customLoader
});

Expand All @@ -61,7 +61,7 @@ describe("BbsBlsSignatureProof2020", () => {

const { proofs, document } = await getProofs({
document: testSignedDocument,
proofType: suite.supportedDeriveProofType,
proofType: BbsBlsSignatureProof2020.supportedDerivedProofType,
documentLoader: customLoader
});

Expand All @@ -82,7 +82,7 @@ describe("BbsBlsSignatureProof2020", () => {

const { proofs, document } = await getProofs({
document: testSignedVcDocument,
proofType: suite.supportedDeriveProofType,
proofType: BbsBlsSignatureProof2020.supportedDerivedProofType,
documentLoader: customLoader
});

Expand All @@ -100,6 +100,7 @@ describe("BbsBlsSignatureProof2020", () => {

const { proofs, document } = await getProofs({
document: testProofDocument,
proofType: BbsBlsSignatureProof2020.proofType,
documentLoader: customLoader
});

Expand All @@ -117,6 +118,7 @@ describe("BbsBlsSignatureProof2020", () => {

const { proofs, document } = await getProofs({
document: testPartialProofDocument,
proofType: BbsBlsSignatureProof2020.proofType,
documentLoader: customLoader
});

Expand All @@ -134,6 +136,7 @@ describe("BbsBlsSignatureProof2020", () => {

const { proofs, document } = await getProofs({
document: testPartialVcProof,
proofType: BbsBlsSignatureProof2020.proofType,
documentLoader: customLoader
});

Expand All @@ -151,6 +154,7 @@ describe("BbsBlsSignatureProof2020", () => {

const { proofs, document } = await getProofs({
document: testBadPartialProofDocument,
proofType: BbsBlsSignatureProof2020.proofType,
documentLoader: customLoader
});

Expand Down
97 changes: 0 additions & 97 deletions __tests__/__fixtures__/contexts/lds-bbsbls2020-v0.0.json

This file was deleted.

Loading

0 comments on commit 2673a0a

Please sign in to comment.