Browse Source

Merge #194: fix old wallet conversion with mnemonic extension

d3a6dd0 fix old wallet conversion with mnemonic extension (undeath)
master
AdamISZ 7 years ago
parent
commit
ff96426ac9
No known key found for this signature in database
GPG Key ID: B3AE09F1E9A3197A
  1. 2
      scripts/convert_old_wallet.py

2
scripts/convert_old_wallet.py

@ -35,7 +35,7 @@ def decrypt_entropy_extension(enc_data, key):
if data[-9] != b'\xff':
raise ConvertException("Wrong password.")
chunks = data.split(b'\xff')
if len(chunks) < 3 or data[-8:] != double_sha256(chunks[1])[:8]:
if len(chunks) < 3 or data[-8:] != hexlify(double_sha256(chunks[1])[:4]):
raise ConvertException("Wrong password.")
return chunks[1]

Loading…
Cancel
Save