rust-bitcoin / rust-bip39

A Rust library for working with Bitcoin BIP-39 mnemonics
Creative Commons Zero v1.0 Universal
96 stars 61 forks source link

Parse a mnemonic without checksum check #43

Closed ayrat555 closed 1 year ago

ayrat555 commented 1 year ago

In some situations, a user can come up with mnemonic words himself. In this case a mnemonic will fail the checksum check.

This pr implements a function to be able to parse a mnemonic without checksum check

ayrat555 commented 1 year ago

@tcharding @stevenroose can you please take a look?

stevenroose commented 1 year ago

Please don't include the clippy commit into this MR, it's unrelated. It would be nice to have this for v2. But I have to check if we never have the checksum validity as an invariant in other method that this could potentially break. I doubt it though.