Skip to content

Commit

Permalink
Fixed signature issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sulmone committed Feb 25, 2018
1 parent 712117f commit 63b30a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ def sign(self, keypairs):
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
Expand Down

0 comments on commit 63b30a9

Please sign in to comment.