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:
Jack Grigg 2022-01-04 00:52:07 +00:00
parent 89f46c2d99
commit 68b6147c02
1 changed files with 2 additions and 2 deletions

View File

@ -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 <=