iancoleman / bip39

A web tool for converting BIP39 mnemonic codes
https://iancoleman.io/bip39/
MIT License
3.42k stars 1.42k forks source link

Result differs from Mnemonic #673

Open catching641 opened 2 months ago

catching641 commented 2 months ago

My apologies if the issue has happened because I have used the webpage incorrectly but I was using the webpage to verify a checksum of the code I was programming in Python and the results are different.

Then I checked my results with the mnemonic library and both are the same, so I guess there is no problem in my code, so probably I was using the site incorrectly and it was a misunderstanding. It would be nice if the webpage would clarify this.

Attached is the image of the web page with the calculated checksum and the code from Mnemonic that I used.

webpage

`from mnemonic import Mnemonic

bits = "1110011010100110111100111101000010110101100001101110011000100101111100110000100111111000001001110110010001100001010111010101011000110011110110100110100100001011101111100010111010011000000000000001001101000010010011111100100101001000101101101111001000111101" bytes = int(bits, 2).to_bytes((len(bits) + 7) // 8, byteorder='big') mnemo = Mnemonic("english") mnemonic = mnemo.to_mnemonic(bytes) print(mnemonic)`

samuel-lope commented 18 hours ago

I also identified the same issue, and I'm curious to know if I'm misusing the tool.