Fixed signature issue

This commit is contained in:
Chris Sulmone 2018-02-25 15:50:48 -06:00
parent b4b05d2560
commit f65ef5e3ea
1 changed files with 1 additions and 1 deletions

View File

@ -936,7 +936,7 @@ class Transaction:
public_key = private_key.get_verifying_key()
sig = private_key.sign_digest_deterministic(pre_hash, hashfunc=hashlib.sha256, sigencode = ecdsa.util.sigencode_der)
assert public_key.verify_digest(sig, pre_hash, sigdecode = ecdsa.util.sigdecode_der)
txin['signatures'][j] = bh2u(sig) + '01'
txin['signatures'][j] = bh2u(sig) + '41'
#txin['x_pubkeys'][j] = pubkey
txin['pubkeys'][j] = pubkey # needed for fd keys
self._inputs[i] = txin