From d3a6dd0722bbeb04323744ca76b3e07617085c39 Mon Sep 17 00:00:00 2001 From: undeath Date: Fri, 28 Sep 2018 19:44:39 +0200 Subject: [PATCH] fix old wallet conversion with mnemonic extension --- scripts/convert_old_wallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/convert_old_wallet.py b/scripts/convert_old_wallet.py index 390418d..23bc5da 100644 --- a/scripts/convert_old_wallet.py +++ b/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]