File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,12 @@ const {match} = endpoints.filterByTag({
1818 tags : [ ...tags ] ,
1919 property : 'verifiers'
2020} ) ;
21+ const { key} = await getMultikey ( ) ;
2122// options for the DI Verifier Suite
2223const testDataOptions = {
2324 suiteName : 'eddsa-rdfc-2022' ,
2425 cryptosuite : eddsaRdfc2022CryptoSuite ,
25- key : await getMultikey ( )
26+ key
2627} ;
2728
2829checkDataIntegrityProofVerifyErrors ( {
Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ export const getMultikey = async ({
1919 const signer = key . signer ( ) ;
2020 // The issuer needs to match the signer or the controller of the signer
2121 const issuer = `did:key:${ key . publicKeyMultibase } ` ;
22+ key . controller = issuer ;
2223 // verificationMethod needs to be a fragment
23- // this only works for did:key
24- signer . id = `${ issuer } #${ key . publicKeyMultibase } ` ;
25- return { signer, issuer} ;
24+ key . id = signer . id = `${ issuer } #${ key . publicKeyMultibase } ` ;
25+ return { signer, issuer, key} ;
2626} ;
2727
2828/**
You can’t perform that action at this time.
0 commit comments