writeAsymkeyAuth(id, authType, controller, publicKey)
Option
DID Verification Type
const did = "did:mitum:0x4526f3D0EdC63D9EaeCD94D56551e0f061CFCa47fca";
const id = did + "#auth_key5";
const authType = "SECP256K1_2019";
const controller = did;
const publicKey = "0359335c48c7b06d05cfba06c4d37aa0369069d5d5c036a6c7a098199e0650d3c8fpu";
const authentication = mitum.authdid.writeAsymkeyAuth(id, authType, controller, publicKey);
console.log(authentication.toHintedObject());
// output
{
_hint: 'mitum-did-verification-method-v0.0.1',
id: 'did:mitum:0x4526f3D0EdC63D9EaeCD94D56551e0f061CFCa47fca#auth_key5',
controller: 'did:mitum:0x4526f3D0EdC63D9EaeCD94D56551e0f061CFCa47fca',
type: 'EcdsaSecp256k1VerificationKey2019',
publicKeyMultibase: 'zQ3shkeJqSA83KtfcMeYRwBU4wZa7Pyn4xVQHfJcYVUryunR5',
publicKeyImFact: '0359335c48c7b06d05cfba06c4d37aa0369069d5d5c036a6c7a098199e0650d3c8fpu'
}Last updated