@@ -88,11 +88,13 @@ async function _setup({
8888 const credentials = new Map ( ) ;
8989 const keyPair = await getMultiKey ( { keyType} ) ;
9090 const signer = keyPair . signer ( ) ;
91+ const _credential = structuredClone ( credential ) ;
92+ _credential . issuer = keyPair . controller ;
9193 // not bs58 encoded verificationMethod via invalidVm
9294 // type is not DataIntegrityProof invalidType
9395 // invalid cryptosuite name invalidCryptosuite
9496 credentials . set ( 'invalid cryptosuite' , await issueCloned ( invalidCryptosuite ( {
95- credential : structuredClone ( credential ) ,
97+ credential : structuredClone ( _credential ) ,
9698 ..._getSuites ( {
9799 signer,
98100 suiteName,
@@ -101,7 +103,7 @@ async function _setup({
101103 } )
102104 } ) ) ) ;
103105 credentials . set ( 'invalid VerificationMethod' , await issueCloned ( invalidVm ( {
104- credential : structuredClone ( credential ) ,
106+ credential : structuredClone ( _credential ) ,
105107 ..._getSuites ( {
106108 signer,
107109 suiteName,
@@ -110,7 +112,7 @@ async function _setup({
110112 } )
111113 } ) ) ) ;
112114 credentials . set ( 'invalid Proof Type' , await issueCloned ( invalidProofType ( {
113- credential : structuredClone ( credential ) ,
115+ credential : structuredClone ( _credential ) ,
114116 ..._getSuites ( {
115117 signer,
116118 suiteName,
0 commit comments