mirror of https://github.com/zcash/zips.git
ZIP 244: Reverse order of value and script_code in txin_sig_digest
This matches the order in which they are committed to in BIP 341 (and also at the transaction level in S.2).
This commit is contained in:
parent
89f46c2d99
commit
68b6147c02
|
@ -617,8 +617,8 @@ transparent input being signed, initialized with the personalization field value
|
|||
``Zcash___TxInHash`` (3 underscores)::
|
||||
|
||||
S.2g.i: prevout (field encoding)
|
||||
S.2g.ii: script_code (field encoding)
|
||||
S.2g.iii: value (8-byte signed little-endian)
|
||||
S.2g.ii: value (8-byte signed little-endian)
|
||||
S.2g.iii: script_code (field encoding)
|
||||
S.2g.iv: nSequence (4-byte unsigned little-endian)
|
||||
|
||||
Note: ``value`` is defined in the consensus rules to be a nonnegative value <=
|
||||
|
|
Loading…
Reference in New Issue