Browse Source

check message length in mnemonic encode

283
ThomasV 11 years ago
parent
commit
274c67f984
  1. 1
      lib/mnemonic.py

1
lib/mnemonic.py

@ -1657,6 +1657,7 @@ n = 1626
# Instead, the digit represented by a word is variable, it depends on the previous word.
def mn_encode( message ):
assert len(message) % 8 == 0
out = []
for i in range(len(message)/8):
word = message[8*i:8*i+8]

Loading…
Cancel
Save