bip0039
Another Rust implementation of BIP-0039 standard.
Usage
Compile-time language selection
use ;
// Generate an English mnemonic with 12 words randomly
let mnemonic = generate;
// Or use the default generic type (English).
let mnemonic = generate;
println!;
// Generate the HD wallet seed from the mnemonic and the passphrase.
let seed = mnemonic.to_seed;
assert_eq!;
println!;
Runtime language selection
use ;
// Generate an English mnemonic with 12 words randomly
let mnemonic = generate;
assert_eq!;
println!;
// Generate the HD wallet seed from the mnemonic and the passphrase.
let seed = mnemonic.to_seed;
assert_eq!;
println!;
Documentation
See documentation and examples at https://docs.rs/bip0039.
Features
- Support all languages in the BIP-0039 Word Lists
- English
- Japanese
- Korean
- Spanish
- Chinese (Simplified)
- Chinese (Traditional)
- French
- Italian
- Czech
- Portuguese
- Support
no_stdenvironment
Performance
See benchmarks for more details
Alternatives
License
This project is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.