alwaysminingbtc / plutushybrid

59 stars 37 forks source link

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

Open BaxterChi opened 4 years ago

BaxterChi commented 4 years ago

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

ZaranTheWise commented 4 years ago

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 commented 4 years ago

@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 commented 4 years ago

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 commented 4 years ago

@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