![ga-svg] ![crates-svg] ![docs-svg] ![msrv-svg] ![codecov-svg] ![deps-svg]
Another Rust implementation of BIP-0039 standard.
Add the bip0039
into the Cargo.toml
.
toml
[dependencies]
bip0039 = "0.8"
Generate a random BIP-0039 mnemonic in English. ```rust use bip0039::{Count, Mnemonic};
/// Generates an English mnemonic with 12 words randomly 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.