Skip to content

publicKeyToChain

publicKeyToChain(key): EncodedVerificationKey

Transforms a DID public key record to an enum-type key-value pair required in many key-related extrinsics.

key: NewDidVerificationKey

Object describing data associated with a public key.

EncodedVerificationKey

Data restructured to allow SCALE encoding by polkadot api.

did/src/Did.chain.ts:277

publicKeyToChain(key): EncodedEncryptionKey

Transforms a DID public key record to an enum-type key-value pair required in many key-related extrinsics.

key: NewDidEncryptionKey

Object describing data associated with a public key.

EncodedEncryptionKey

Data restructured to allow SCALE encoding by polkadot api.

did/src/Did.chain.ts:280