summa-tx / coins

Rust implementations of BIP32/39 and Ledger device comms
Other
90 stars 31 forks source link

feat(bip39): support additional language wordlist #119

Closed 0xYYY closed 1 year ago

0xYYY commented 1 year ago

Resolves #118.

Add wordlist support for all languages defined in bip-0039, following the layout of bip39/src/wordlist/english.rs.

(Accompanying PR in foundry that utilizes this feature: https://github.com/foundry-rs/foundry/pull/4688. Expecting feedback from there to affect this PR, e.g. API design change of Wordlist.)

prestwich commented 1 year ago

clippy is erroring because PARSED is re-exported from all language files. Let's avoid exporting PARSED at all, and just re-export the wordlist structs 👍

prestwich commented 1 year ago

approved and set to auto-merge after checks pass, thank you for the work! 🖖