@@ -88,11 +88,13 @@ async function _setup({
88
88
const credentials = new Map ( ) ;
89
89
const keyPair = await getMultiKey ( { keyType} ) ;
90
90
const signer = keyPair . signer ( ) ;
91
+ const _credential = structuredClone ( credential ) ;
92
+ _credential . issuer = keyPair . controller ;
91
93
// not bs58 encoded verificationMethod via invalidVm
92
94
// type is not DataIntegrityProof invalidType
93
95
// invalid cryptosuite name invalidCryptosuite
94
96
credentials . set ( 'invalid cryptosuite' , await issueCloned ( invalidCryptosuite ( {
95
- credential : structuredClone ( credential ) ,
97
+ credential : structuredClone ( _credential ) ,
96
98
..._getSuites ( {
97
99
signer,
98
100
suiteName,
@@ -101,7 +103,7 @@ async function _setup({
101
103
} )
102
104
} ) ) ) ;
103
105
credentials . set ( 'invalid VerificationMethod' , await issueCloned ( invalidVm ( {
104
- credential : structuredClone ( credential ) ,
106
+ credential : structuredClone ( _credential ) ,
105
107
..._getSuites ( {
106
108
signer,
107
109
suiteName,
@@ -110,7 +112,7 @@ async function _setup({
110
112
} )
111
113
} ) ) ) ;
112
114
credentials . set ( 'invalid Proof Type' , await issueCloned ( invalidProofType ( {
113
- credential : structuredClone ( credential ) ,
115
+ credential : structuredClone ( _credential ) ,
114
116
..._getSuites ( {
115
117
signer,
116
118
suiteName,
0 commit comments