fix the verificationMethod type in the local ETHR DID resolver

This commit is contained in:
2024-12-23 20:05:33 -07:00
parent df9256b93e
commit bf6035ec47

View File

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