File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,9 @@ async function main({credential, documentLoader}) {
67
67
ecdsaKeyPair . id = didDocument . assertionMethod [ 0 ] ;
68
68
ecdsaKeyPair . controller = didDocument . id ;
69
69
70
+ // ensure issuer matches key controller
71
+ credential . issuer = ecdsaKeyPair . controller ;
72
+
70
73
// setup ecdsa-rdfc-2019 signing suite
71
74
const signingSuite = new DataIntegrityProof ( {
72
75
signer : ecdsaKeyPair . signer ( ) ,
@@ -100,7 +103,7 @@ async function main({credential, documentLoader}) {
100
103
console . log ( 'SIGNED CREDENTIAL:' ) ;
101
104
console . log ( JSON . stringify ( verifiableCredential , null , 2 ) ) ;
102
105
console . log ( 'VERIFY RESULT:' ) ;
103
- console . log ( verifyResult ) ;
106
+ console . log ( JSON . stringify ( verifyResult , null , 2 ) ) ;
104
107
}
105
108
106
109
// sample unsigned credential
You can’t perform that action at this time.
0 commit comments