|
|
@ -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, |
|
|
|
}, |
|
|
|