Recover keys from a mnemonic phrase

Recover private keys from a mnemonic phrase.

Method

Type

Description

Ed25519PrivateKey.fromMnemonic(<mnemonic>)

Mnemonic

Recover a private key from a mnemonic phrase compatible with the iOS and Android wallets

Ed25519PrivateKey.fromMnemonic(<mnemonic, passphrase>)

Mnemonic, String

Recover a private key from a generated mnemonic phrase and a passphrase

Java
//Use the mnemonic to recover the private key
Ed25519PrivateKey privateKey = Ed25519PrivateKey.fromMnemonic(mnemonic);
JavaScript
//Use the mnemonic to recover the private key
Ed25519PrivateKey privateKey = Ed25519PrivateKey.fromMnemonic(mnemonic);

Last updated

#2871: HIP-423 long term scheduled transactions

Change request updated