bip0039

Crates.iobip0039
lib.rsbip0039
version0.13.2
created_at2020-01-07 03:11:51.635404+00
updated_at2026-01-19 12:42:27.537865+00
descriptionAnother Rust implementation of BIP-0039 standard
homepagehttps://github.com/koushiro/rust-bips
repositoryhttps://github.com/koushiro/rust-bips
max_upload_size
id196015
size280,421
Qinxuan Chen (koushiro)

documentation

https://docs.rs/bip0039

README

bip0039

Another Rust implementation of BIP-0039 standard.

Usage

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("");

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_std environment

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.

Commit count: 72

cargo fmt