Skip to content

Commit

Permalink
Use invalidCborTagProxy on selectiveSuite in sd algorithms.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljones15 committed Nov 17, 2024
1 parent 48e7f21 commit 7ef6f91
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tests/suites/algorithms-sd.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {createInitialVc} from '../helpers.js';
import {expect} from 'chai';
import {getMultiKey} from '../vc-generator/key-gen.js';
import {getSuites} from './helpers.js';
import {invalidCborTagProxy} from './proxies.js';

export function sd2023Algorithms({
credential,
Expand Down Expand Up @@ -344,13 +345,24 @@ async function _setup({
const _credential = structuredClone(credential);
_credential.issuer = keyPair.controller;
credentials.set('invalidCreated', await issueCloned(invalidCreated({
credential: structuredClone(_credential),
credential: _credential,
...getSuites({
signer,
suiteName,
selectivePointers,
mandatoryPointers
})
})));
const cborTagSuites = getSuites({
signer,
suiteName,
selectivePointers,
mandatoryPointers
});
credentials.set('invalidCborTag', await issueCloned({
credential: _credential,
suite: cborTagSuites.suite,
selectiveSuite: invalidCborTagProxy(cborTagSuites.selectiveSuite)
}));
return credentials;
}

0 comments on commit 7ef6f91

Please sign in to comment.