From 68b6147c02bc5412948b9411cb38e0ab4d5f5ffc Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Tue, 4 Jan 2022 00:52:07 +0000 Subject: [PATCH] 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). --- zip-0244.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zip-0244.rst b/zip-0244.rst index e5fda9d7..59612be3 100644 --- a/zip-0244.rst +++ b/zip-0244.rst @@ -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 <=