Create a new PrivateKey instance from a Uint8Array or String.
HexInput (string or Uint8Array)
Private
Readonly
signingThe Ed25519 signing key
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
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 offset used for key derivation, defaults to 0x80000000
Static
generateGenerate a new random private key.
Ed25519PrivateKey
Static
isuse instanceof Ed25519PrivateKey
instead.
Generated using TypeDoc
Represents the private key of an Ed25519 key pair.