mirror of
https://github.com/tcsenpai/hmywallet.git
synced 2025-06-06 19:05:20 +00:00
fixed 23 to 24 words
This commit is contained in:
parent
66d1bc01cb
commit
44fa2c7c59
@ -16,7 +16,7 @@ def gen_from_data(data):
|
||||
wordlist = [w.strip() for w in f.readlines()]
|
||||
# Generating a seed from the binary data
|
||||
seed = []
|
||||
for i in range(len(bindata)//11):
|
||||
for i in range((len(bindata)//11)+1):
|
||||
index = int(bindata[11*i:11*(i+1)],2)
|
||||
seed.append(wordlist[index])
|
||||
return seed
|
Loading…
x
Reference in New Issue
Block a user