Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Binary seed encoding #6

Open
cryptoquick opened this issue Oct 9, 2023 · 0 comments
Open

Add support for Binary seed encoding #6

cryptoquick opened this issue Oct 9, 2023 · 0 comments

Comments

@cryptoquick
Copy link
Owner

cryptoquick commented Oct 9, 2023

This is the format used by SeedRoll... A binary encoding of the 128/256 bits of dice-rolled seed entropy, so, 128/256 1s and 0s, which is short the 12th/24th word. This would use the from_entropy bip39 method.
https://docs.rs/bip39/latest/bip39/struct.Mnemonic.html#method.from_entropy_in

The way to do this is to detect if the string is exactly 128 or 256 length, all 1s and 0s, and then parse the 1s and 0s into bytes 8 bits at a time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant