From 88e4eec6b6612d987cac225869d180458decbd28 Mon Sep 17 00:00:00 2001 From: Dmitri Zagidulin Date: Sun, 4 Aug 2024 17:52:56 -0400 Subject: [PATCH] Remove support for legacy OBv3 JFF VCs. --- package.json | 4 +--- test/10-verify.spec.js | 22 ---------------------- 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/package.json b/package.json index 8398047c..d129c5d8 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "@digitalcredentials/jsonld-signatures": "~11.0.0", "@digitalcredentials/open-badges-context": "^2.1.0", "credentials-context": "^2.0.0", - "ed25519-signature-2018-context": "^1.1.0", + "ed25519-signature-2018-context": "^1.1.0" }, "devDependencies": { "@digitalbazaar/credentials-examples-context": "^1.0.0", @@ -43,8 +43,6 @@ "@digitalbazaar/ed25519-verification-key-2018": "^4.0.0", "@digitalbazaar/multikey-context": "^1.0.0", "@digitalbazaar/odrl-context": "^1.0.0", - "@digitalcredentials/ed25519-signature-2020": "^5.0.0", - "@digitalcredentials/security-document-loader": "digitalcredentials/security-document-loader#add-vc-2.0-context", "@npmcli/package-json": "^5.0.0", "chai": "^4.3.7", "cross-env": "^7.0.3", diff --git a/test/10-verify.spec.js b/test/10-verify.spec.js index 981fa01e..1ae661db 100644 --- a/test/10-verify.spec.js +++ b/test/10-verify.spec.js @@ -16,14 +16,11 @@ import {createSkewedTimeStamp} from './helpers.js'; import {CredentialIssuancePurpose} from '../lib/CredentialIssuancePurpose.js'; import {DataIntegrityProof} from '@digitalbazaar/data-integrity'; import {Ed25519Signature2018} from '@digitalbazaar/ed25519-signature-2018'; -import {Ed25519Signature2020} from '@digitalcredentials/ed25519-signature-2020'; import { Ed25519VerificationKey2018 } from '@digitalbazaar/ed25519-verification-key-2018'; import {invalidContexts} from './contexts/index.js'; import jsigs from '@digitalcredentials/jsonld-signatures'; -import mockCredentialLegacyObV3 from './mocks/credential-legacy-obv3.js'; -import {securityLoader} from '@digitalcredentials/security-document-loader'; import {v4 as uuid} from 'uuid'; import {VeresOneDriver} from 'did-veres-one'; import {versionedCredentials} from './mocks/credential.js'; @@ -429,25 +426,6 @@ for(const [version, mockCredential] of versionedCredentials) { result.verified.should.be.true; }); - it('should verify an OBv3 vc', async () => { - const result = await vc.verifyCredential({ - credential: mockCredentialLegacyObV3, - suite: new Ed25519Signature2020(), - documentLoader: securityLoader().build() - }); - - if(result.error) { - throw result.error; - } - result.verified.should.be.true; - - result.results[0].log.should.eql([ - {id: 'expiration', valid: true}, - {id: 'valid_signature', valid: true}, - {id: 'issuer_did_resolves', valid: true} - ]); - }); - it('should verify a vc with a positive status check', async () => { const credential = mockCredential(); credential['@context'].push({