From 1274eb10110eda12d554796d645d5bca4186bf74 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Mon, 10 Jun 2024 19:51:50 +0000 Subject: [PATCH] Remove unused keyPairs form issue tests. --- test/10-issue.spec.js | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/test/10-issue.spec.js b/test/10-issue.spec.js index cbcb483d..3203233f 100644 --- a/test/10-issue.spec.js +++ b/test/10-issue.spec.js @@ -1,8 +1,6 @@ /*! * Copyright (c) 2019-2024 Digital Bazaar, Inc. All rights reserved. */ -import * as Bls12381Multikey from '@digitalbazaar/bls12-381-multikey'; -import * as EcdsaMultikey from '@digitalbazaar/ecdsa-multikey'; import * as vc from '../lib/index.js'; import { documentLoader, @@ -53,42 +51,6 @@ before(async () => { }); }); -// do ecdsa setup... -let ecdsaKeyPair; -before(async () => { - // set up the ECDSA key pair that will be signing and verifying - ecdsaKeyPair = await EcdsaMultikey.generate({ - curve: 'P-256', - id: 'https://example.edu/issuers/keys/2', - controller: 'https://example.edu/issuers/565049' - }); - - // add the key to the controller doc (authorizes its use for assertion) - assertionController.assertionMethod.push(ecdsaKeyPair.id); - // register the key document with documentLoader - remoteDocuments.set( - 'https://example.edu/issuers/keys/2', - await ecdsaKeyPair.export({publicKey: true})); -}); - -// do BBS setup... -let bbsKeyPair; -before(async () => { - // set up the BBS key pair that will be signing and verifying - bbsKeyPair = await Bls12381Multikey.generateBbsKeyPair({ - algorithm: 'BBS-BLS12-381-SHA-256', - id: 'https://example.edu/issuers/keys/3', - controller: 'https://example.edu/issuers/565049' - }); - - // add the key to the controller doc (authorizes its use for assertion) - assertionController.assertionMethod.push(bbsKeyPair.id); - // register the key document with documentLoader - remoteDocuments.set( - 'https://example.edu/issuers/keys/3', - await bbsKeyPair.export({publicKey: true})); -}); - // run tests on each version of VCs for(const [version, mockCredential] of versionedCredentials) { describe(`Verifiable Credentials Data Model ${version}`, async function() {