Browse Source

fix the verificationMethod type in the local ETHR DID resolver

split_build_process
Trent Larson 4 weeks ago
parent
commit
762dfa0f2a
  1. 4
      src/libs/crypto/vc/did-eth-local-resolver.ts

4
src/libs/crypto/vc/did-eth-local-resolver.ts

@ -7,7 +7,7 @@
* @param did : string
* @returns {Promise<DIDResolutionResult>}
*
* Similar code resides in image-api
* Similar code resides in endorser-ch and image-api
*/
export const didEthLocalResolver = async (did: string) => {
const didRegex = /^did:ethr:(0x[0-9a-fA-F]{40})$/;
@ -31,7 +31,7 @@ export const didEthLocalResolver = async (did: string) => {
verificationMethod: [
{
id: `${did}#controller`,
type: "EcdsaSec256k1RecoveryMethod2020",
type: "EcdsaSecp256k1RecoveryMethod2020",
controller: did,
blockchainAccountId: "eip155:1:" + publicKeyHex,
},

Loading…
Cancel
Save