Skip to content

Commit

Permalink
Update issuer tests to work with ed25519Sig2020.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljones15 committed Jun 10, 2024
1 parent 0d7b091 commit 3a6f0d9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/10-issue.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,7 @@ for(const [version, mockCredential] of versionedCredentials) {
if(version === 1.0) {
it('should issue an expired verifiable credential', async () => {
const keyPair = await Ed25519VerificationKey2020.generate();
const fp = Ed25519VerificationKey2020
.fingerprintFromPublicKey({
publicKeyBase58: keyPair.publicKeyBase58
});
const fp = keyPair.fingerprint();
keyPair.id = `did:key:${fp}#${fp}`;
const credential = mockCredential();
credential.id = `urn:uuid:${uuid()}`;
Expand Down Expand Up @@ -377,7 +374,7 @@ for(const [version, mockCredential] of versionedCredentials) {
'https://example.edu/issuers/keys/1');
vp.proof.should.have.property('challenge', '12ec21');
vp.proof.should.have.property('created');
vp.proof.should.have.property('jws');
vp.proof.should.not.have.property('jws');
});
});
});
Expand Down

0 comments on commit 3a6f0d9

Please sign in to comment.