Skip to content

Commit 7ef6f91

Browse files
committed
Use invalidCborTagProxy on selectiveSuite in sd algorithms.
1 parent 48e7f21 commit 7ef6f91

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tests/suites/algorithms-sd.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {createInitialVc} from '../helpers.js';
1515
import {expect} from 'chai';
1616
import {getMultiKey} from '../vc-generator/key-gen.js';
1717
import {getSuites} from './helpers.js';
18+
import {invalidCborTagProxy} from './proxies.js';
1819

1920
export function sd2023Algorithms({
2021
credential,
@@ -344,13 +345,24 @@ async function _setup({
344345
const _credential = structuredClone(credential);
345346
_credential.issuer = keyPair.controller;
346347
credentials.set('invalidCreated', await issueCloned(invalidCreated({
347-
credential: structuredClone(_credential),
348+
credential: _credential,
348349
...getSuites({
349350
signer,
350351
suiteName,
351352
selectivePointers,
352353
mandatoryPointers
353354
})
354355
})));
356+
const cborTagSuites = getSuites({
357+
signer,
358+
suiteName,
359+
selectivePointers,
360+
mandatoryPointers
361+
});
362+
credentials.set('invalidCborTag', await issueCloned({
363+
credential: _credential,
364+
suite: cborTagSuites.suite,
365+
selectiveSuite: invalidCborTagProxy(cborTagSuites.selectiveSuite)
366+
}));
355367
return credentials;
356368
}

0 commit comments

Comments
 (0)