tremove sigtype in update_signature - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 183af4ae3a505160108c9504939b2ce4fa2ea2f9
DIR parent 6fc6d1ec7df170df85fde830f2fec170016f5aa1
HTML Author: ThomasV <thomasv@electrum.org>
Date: Wed, 19 Apr 2017 15:00:10 +0200
remove sigtype in update_signature
Diffstat:
M lib/transaction.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/lib/transaction.py b/lib/transaction.py
t@@ -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):