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