Skip to main content

Recover a BIP39 Seed with a Mnemonic and Optional Passphrase

Run the Exampleโ€‹

You can recover a BIP39 seed with provided mnemonic and optional passphrase by running the following command from within the client crate. Stronghold will store the recovered seed at the provided path.

cargo run --example cli bip39-recover --path "/path/to/snapshot.file" --client-path "client-path-0" --key "passphrase-for-snapshot" --mnemonic "ใ‘ใ•ใใ€€ใซใ‚“ใ‹ใ€€ใ›ใฃใ•ใŸใใพใ€€ใ‚ˆใ‹ใ‚“ใ€€ใŸใ„ใพใคใฏใ‚™ใชใ€€ใกใ‚“ใ‚‚ใใ€€ใใŸใ‚™ใฆใ‚‹ใ€€ใตใฃใ“ใใ€€ใ›ใฃใ•ใŸใใพใ€€ใ—ใ‚ƒใŠใ‚“ใ€€ใใ‹ใ‚™ใ„ใ€€ใคใ†ใฏใ‚“ใ€€ใพใชใตใ‚™ใ€€ใ‚Šใใใ‚™ใ‚“ใ€€ใ•ใฎใ†" --passphrase "mnemonic-passphrase-if-present" --vault-path "vault-path" --record-path "record-path"

Expected Outputโ€‹

[2022-03-28T08:35:13Z INFO  cli] Loading snapshot
[2022-03-28T08:35:13Z INFO cli] Recovering BIP39
[2022-03-28T08:35:13Z INFO cli] BIP39 Recovery successful? true

Example Codeโ€‹

client/examples/cli/main.rs
loading...