File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import {createInitialVc} from '../helpers.js';
1515import { expect } from 'chai' ;
1616import { getMultiKey } from '../vc-generator/key-gen.js' ;
1717import { getSuites } from './helpers.js' ;
18+ import { invalidCborTagProxy } from './proxies.js' ;
1819
1920export 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}
You can’t perform that action at this time.
0 commit comments