Create a new PrivateKey instance from a Uint8Array or String.
HexInput (string or Uint8Array)
Static
Readonly
LENGTHLength of an Ed25519 private key
Static
Readonly
SLIP_The Ed25519 key seed to use for BIP-32 compatibility See more https://github.com/satoshilabs/slips/blob/master/slip-0010.md
Derive the Ed25519PublicKey for this private key.
Ed25519PublicKey
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.
To derive multiple keys from the same phrase, change the path
IMPORTANT: Ed25519 supports hardened derivation only (since it lacks a key homomorphism, so non-hardened derivation cannot work)
the BIP44 path
the mnemonic seed phrase
Static
generateGenerate a new random private key.
Ed25519PrivateKey
Static
is
Represents the private key of an Ed25519 key pair.