@substrate-system/keys
Preparing search index...
publicKeyToDid
Function publicKeyToDid
publicKeyToDid
(
_publicKey
:
Uint8Array
<
ArrayBufferLike
>
|
CryptoKey
,
keyType
?:
"rsa"
|
"ed25519"
,
)
:
Promise
<
`
did:key:z
${
string
}
`
>
Convert a public key to a DID format string.
Parameters
_publicKey
:
Uint8Array
<
ArrayBufferLike
>
|
CryptoKey
Optional
keyType
:
"rsa"
|
"ed25519"
= 'rsa'
'rsa' or 'ecc'
Returns
Promise
<
`
did:key:z
${
string
}
`
>
A DID format string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@substrate-system/keys
Loading...
Convert a public key to a DID format string.