18 releases (5 stable)

2.0.0 Feb 28, 2023
1.2.0 Feb 26, 2023
1.0.1 Apr 1, 2021
1.0.0 Mar 25, 2021
0.1.0 Dec 23, 2016

#1407 in Magic Beans

Download history 41554/week @ 2023-12-06 37840/week @ 2023-12-13 25205/week @ 2023-12-20 16242/week @ 2023-12-27 30230/week @ 2024-01-03 37324/week @ 2024-01-10 46135/week @ 2024-01-17 44312/week @ 2024-01-24 40321/week @ 2024-01-31 44466/week @ 2024-02-07 48171/week @ 2024-02-14 48371/week @ 2024-02-21 48125/week @ 2024-02-28 44099/week @ 2024-03-06 38002/week @ 2024-03-13 37987/week @ 2024-03-20

176,556 downloads per month
Used in 271 crates (71 directly)

CC0 license

295KB
20K SLoC

bip39

A Rust implementation of BIP-39 mnemonic codes.

Word lists (languages)

We support all languages specified in the BIP-39 standard as of writing.

The English language is always loaded and other languages can be loaded using the corresponding feature.

Use the all-languages feature to enable all languages.

  • English (always enabled)
  • Simplified Chinese (chinese-simplified)
  • Traditional Chinese (chinese-traditional)
  • Czech (czech)
  • French (french)
  • Italian (italian)
  • Japanese (japanese)
  • Korean (korean)
  • Spanish (spanish)

MSRV

This crate supports Rust v1.41.1 and up and works with no_std.

If you enable the zeroize feature the MSRV becomes 1.51.


lib.rs:

BIP39 Mnemonic Codes

https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki

Test some Japanese language test vectors. For these test vectors, we seem to generate different mnemonic phrases than the test vectors expect us to. However, our generated seeds are correct and tiny-bip39, an alternative implementation of bip39 also does not fulfill the test vectors.

Dependencies

~205–690KB
~21K SLoC