electrum

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

commit 183af4ae3a505160108c9504939b2ce4fa2ea2f9
parent 6fc6d1ec7df170df85fde830f2fec170016f5aa1
Author: ThomasV <thomasv@electrum.org>
Date:   Wed, 19 Apr 2017 15:00:10 +0200

remove sigtype in update_signature

Diffstat:
Mlib/transaction.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/transaction.py b/lib/transaction.py @@ -556,7 +556,7 @@ class Transaction: pre_hash = Hash(self.serialize_preimage(i).decode('hex')) # der to string order = ecdsa.ecdsa.generator_secp256k1.order() - r, s = ecdsa.util.sigdecode_der(sig.decode('hex'), order) + r, s = ecdsa.util.sigdecode_der(sig.decode('hex')[:-1], order) sig_string = ecdsa.util.sigencode_string(r, s, order) compressed = True for recid in range(4):