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

range(8 * (0 % 3 + 2)) #2

Open
BaxterChi opened this issue Jan 28, 2020 · 4 comments
Open

range(8 * (0 % 3 + 2)) #2

BaxterChi opened this issue Jan 28, 2020 · 4 comments

Comments

@BaxterChi
Copy link

Am I missing something or does this not always equal 16? What's the point of the equation?

@ZaranTheWise
Copy link

That line of code is very odd since it does just equal 16. I'm not quite sure how it all works, but after playing with it, as the code currently stands with that equation or the int 16, this will generate 12 word mnemonics and their corresponding key/addresses. If you want to check longer mnemonics, that 16 needs to be increased in increments of 4, so number:mnemonic words is 16:12, 20:16, 24:20, 28:24.

@alwaysminingbtc
Copy link
Owner

@ZaranTheWise I wonder what the most popular mnemonic length is/was. I would guess 4-6 would be the easiest to crack, and there might be some legacy wallets that are still out there.

I wonder if I should modify the code to generate a random seed between 4-12 words....

@ZaranTheWise
Copy link

ZaranTheWise commented Jan 30, 2020

I am FAR from an expert at any of this, but the code doesn't want to accept any int less than 16 in that line, so the shortest mnemonics list I can make with this is 12 words.

The error I got when trying others:
ValueError: Data length should be one of the following: [16, 20, 24, 28, 32], but it is not (1).

Also, looks like I was wrong above about the ratios, it's

16:12
20:15
24:18
28:21
32:24

@alwaysminingbtc
Copy link
Owner

@ZaranTheWise I got the code from @JohnLockeJr, so he probably knows how to do it. I'm lost on how it even works as is HAHA

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

3 participants