Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 1.15 KB

recover-keys-from-a-mnemonic-phrase.md

File metadata and controls

26 lines (22 loc) · 1.15 KB

Recover keys from a mnemonic phrase

Recover private keys from a mnemonic phrase.

{% tabs %} {% tab title="V1" %}

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

{% code title="Java" %}

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

{% endcode %}

{% code title="JavaScript" %}

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

{% endcode %} {% endtab %} {% endtabs %}