ZIP 244: Reverse order of value and script_code in txin_sig_digest
This commit is contained in:
parent
fe666c2b94
commit
9a666e4a29
|
@ -324,8 +324,8 @@ def txin_sig_digest(tx, txin):
|
|||
digest = blake2b(digest_size=32, person=b'Zcash___TxInHash')
|
||||
if txin is not None:
|
||||
digest.update(bytes(tx.vin[txin.nIn].prevout))
|
||||
digest.update(bytes(txin.scriptCode))
|
||||
digest.update(struct.pack('<Q', txin.amount))
|
||||
digest.update(bytes(txin.scriptCode))
|
||||
digest.update(struct.pack('<I', tx.vin[txin.nIn].nSequence))
|
||||
return digest.digest()
|
||||
|
||||
|
|
Loading…
Reference in New Issue