publicKeyToChain
publicKeyToChain(key)
Section titled “publicKeyToChain(key)”publicKeyToChain(
key):EncodedVerificationKey
Transforms a DID public key record to an enum-type key-value pair required in many key-related extrinsics.
Parameters
Section titled “Parameters”• key: NewDidVerificationKey
Object describing data associated with a public key.
Returns
Section titled “Returns”EncodedVerificationKey
Data restructured to allow SCALE encoding by polkadot api.
Source
Section titled “Source”publicKeyToChain(key)
Section titled “publicKeyToChain(key)”publicKeyToChain(
key):EncodedEncryptionKey
Transforms a DID public key record to an enum-type key-value pair required in many key-related extrinsics.
Parameters
Section titled “Parameters”• key: NewDidEncryptionKey
Object describing data associated with a public key.
Returns
Section titled “Returns”EncodedEncryptionKey
Data restructured to allow SCALE encoding by polkadot api.