mirror of
https://github.com/tcsenpai/hmywallet.git
synced 2025-06-07 03:15:19 +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()]
|
wordlist = [w.strip() for w in f.readlines()]
|
||||||
# Generating a seed from the binary data
|
# Generating a seed from the binary data
|
||||||
seed = []
|
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)
|
index = int(bindata[11*i:11*(i+1)],2)
|
||||||
seed.append(wordlist[index])
|
seed.append(wordlist[index])
|
||||||
return seed
|
return seed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user