Functions
createKeyPairSignerFromBytes
createKeyPairSignerFromBytes(
bytes
,extractable?
):Promise
<KeyPairSigner
<string
>>
Creates a new KeyPairSigner from a 64-bytes Uint8Array
secret key (private key and public key).
Parameters
Parameter | Type |
---|---|
bytes | ReadonlyUint8Array |
extractable? | boolean |
Returns
Promise
<KeyPairSigner
<string
>>
Example
See
createKeyPairSignerFromPrivateKeyBytes if you only have the 32-bytes private key instead.