mirror of
https://github.com/JoinMarket-Org/joinmarket-clientserver.git
synced 2026-08-13 12:33:40 +02:00
fix old wallet conversion with mnemonic extension
This commit is contained in:
parent
6a26e48def
commit
d3a6dd0722
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue