Fixed signature issue
This commit is contained in:
parent
b4b05d2560
commit
f65ef5e3ea
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue