Create a new PrivateKey instance from a Uint8Array or String.
A HexInput (string or Uint8Array)
Private
Readonly
keyThe private key bytes
Static
Readonly
LENGTHLength of Secp256k1 ecdsa private key
Derive the Secp256k1PublicKey from this private key.
Secp256k1PublicKey
Sign the given message with the private key.
a message as a string or Uint8Array
Signature
Static
deserializeStatic
fromDerives a private key from a mnemonic seed phrase.
the BIP44 path
the mnemonic seed phrase
The generated key
Static
Private
fromA private inner function so we can separate from the main fromDerivationPath() method to add tests to verify we create the keys correctly.
the BIP44 path
the seed phrase created by the mnemonics
The generated key
Static
generateGenerate a new random private key.
Secp256k1PrivateKey
Static
isuse instanceof Secp256k1PrivateKey
instead
Generated using TypeDoc
A Secp256k1 ecdsa private key