Create a new PrivateKey instance from a Uint8Array or String.
A HexInput (string or Uint8Array)
Derive the Secp256k1PublicKey from this private key.
Secp256k1PublicKey The derived public key.
Sign the given message with the private key. This function generates a cryptographic signature for the provided message, ensuring the signature is canonical and non-malleable.
A message in HexInput format to be signed.
Signature - The generated signature for the provided message.
Static
deserializeStatic
fromDerives a private key from a mnemonic seed phrase using a specified BIP44 path.
The BIP44 path to derive the key from.
The mnemonic seed phrase used for key generation.
The generated private key.
Static
generateGenerate a new random private key.
Secp256k1PrivateKey - A newly generated Secp256k1 private key.
Static
isDetermines if the provided private key is an instance of Secp256k1PrivateKey.
The private key to be checked.
Represents a Secp256k1 ECDSA private key, providing functionality to create, sign messages, derive public keys, and serialize/deserialize the key.