electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 4864c802dd0b82c294d4fd1858047990eb463d1e
parent d940956cfe42339f53b6615a75a2d30ed707b0b1
Author: ThomasV <thomasv@electrum.org>
Date:   Wed, 27 Sep 2017 07:47:41 +0200

fix message signing #2939

Diffstat:
Mlib/bitcoin.py | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/bitcoin.py b/lib/bitcoin.py @@ -561,9 +561,8 @@ from ecdsa.util import string_to_number, number_to_string def msg_magic(message): - varint = var_int(len(message)) - encoded_varint = varint.encode('ascii') - return b"\x18Bitcoin Signed Message:\n" + encoded_varint + message + length = bfh(var_int(len(message))) + return b"\x18Bitcoin Signed Message:\n" + length + message def verify_message(address, sig, message):