Optional
passphrase: string = ""Optional
path: number[]toStandardEd25519PrivateKey()
or toStandardECDSAsecp256k1PrivateKey()
instead
Recover an ECDSA private key from this mnemonic phrase, with an
optional passphrase.Optional
passphrase: string = ""Optional
path: number[]toStandardEd25519PrivateKey()
or toStandardECDSAsecp256k1PrivateKey()
instead
Recover an Ed25519 private key from this mnemonic phrase, with an
optional passphrase.Optional
passphrase: string = ""toStandardEd25519PrivateKey()
or toStandardECDSAsecp256k1PrivateKey()
instead
Recover a private key from this mnemonic phrase, with an
optional passphrase.Recover an ECDSA private key from this mnemonic phrase, with an optional passphrase.
Optional
passphrase: string = ""Optional
index: numberRecover an Ed25519 private key from this mnemonic phrase, with an optional passphrase.
Optional
passphrase: string = ""Optional
index: numberStatic
fromStatic
fromConstruct a mnemonic from a list of words. Handles 12, 22 (legacy), and 24 words.
An exception of BadMnemonicError will be thrown if the mnemonic contains unknown words or fails the checksum. An invalid mnemonic can still be used to create private keys, the exception will contain the failing mnemonic in case you wish to ignore the validation error and continue.
Static
generateStatic
generate12Generated using TypeDoc
Multi-word mnemonic phrase (BIP-39).
Compatible with the official Hedera mobile wallets (24-words or 22-words) and BRD (12-words).