Crates.io | bip0039 |
lib.rs | bip0039 |
version | 0.12.0 |
source | src |
created_at | 2020-01-07 03:11:51.635404 |
updated_at | 2024-02-19 08:20:16.09859 |
description | Another Rust implementation of BIP-0039 standard |
homepage | |
repository | https://github.com/koushiro/rust-bips |
max_upload_size | |
id | 196015 |
size | 367,197 |
Another Rust implementation of BIP-0039 standard.
Generate a random BIP-0039 mnemonic in English.
use bip0039::{Count, English, Mnemonic};
// Generates an English mnemonic with 12 words randomly
let mnemonic = <Mnemonic<English>>::generate(Count::Words12);
// Or use the default generic type (English) of struct Mnemonic.
let mnemonic = <Mnemonic>::generate(Count::Words12);
// Gets the phrase
let phrase = mnemonic.phrase();
// Generates the HD wallet seed from the mnemonic and the passphrase.
let seed = mnemonic.to_seed("");
See documentation and examples at https://docs.rs/bip0039.
no_std
environmentLicensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.