Skip to content

Commit

Permalink
Remove unused keyPairs form issue tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljones15 committed Jun 10, 2024
1 parent 60e0ab6 commit 1274eb1
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions test/10-issue.spec.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 1274eb1

Please sign in to comment.