Browse Source

remove sigtype in update_signature

2.9.x
ThomasV 8 years ago
parent
commit
183af4ae3a
  1. 2
      lib/transaction.py

2
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):

Loading…
Cancel
Save