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