diff --git a/zips/zip-0244.rst b/zips/zip-0244.rst index a553f7045..8da39ee16 100644 --- a/zips/zip-0244.rst +++ b/zips/zip-0244.rst @@ -688,8 +688,8 @@ The personalization field of this hash is set to:: A.1: transparent_scripts_digest ``````````````````````````````` In the case that the transaction contains transparent inputs, this is a BLAKE2b-256 hash -of the field encoding of the concatenated values of the Bitcoin script values associated -with each transparent input belonging to the transaction. +of the concatenation of the field encoding of the Bitcoin script value associated with +each transparent input belonging to the transaction, in transaction order. The personalization field of this hash is set to:: @@ -702,11 +702,13 @@ In the case that the transaction has no transparent inputs, ``transparent_script A.2: sapling_auth_digest ```````````````````````` In the case that Sapling Spends or Sapling Outputs are present, this is a BLAKE2b-256 hash -of the field encoding of the Sapling ``zkproof`` value of each Sapling Spend Description, -followed by the field encoding of the ``spend_auth_sig`` value of each Sapling Spend -Description belonging to the transaction, followed by the field encoding of the -``zkproof`` field of each Sapling Output Description belonging to the transaction, -followed by the field encoding of the binding signature:: +of the concatenation of the field encoding of the Sapling ``zkproof`` value for each +Sapling Spend Description belonging to the transaction in transaction order, followed by +the concatenation of the field encoding of the ``spend_auth_sig`` value for each Sapling +Spend Description belonging to the transaction in transaction order, followed by the +concatenation of the field encoding of the ``zkproof`` field for each Sapling Output +Description belonging to the transaction in transaction order, followed by the field +encoding of the binding signature:: A.2a: spend_zkproofs (field encoding bytes) A.2b: spend_auth_sigs (field encoding bytes) diff --git a/zips/zip-0246.rst b/zips/zip-0246.rst index b53fc797d..c0a971516 100644 --- a/zips/zip-0246.rst +++ b/zips/zip-0246.rst @@ -529,7 +529,7 @@ Note that while the structure of ``sapling_auth_digest`` remains the same as in A.1: transparent_auth_digest ```````````````````````````` -In the case that the transaction contains transparent inputs, this is a BLAKE2b-256 hash of the following values for each transparent input:: +In the case that the transaction contains transparent inputs, this is a BLAKE2b-256 hash of the concatenation of the field encoding of the ``TransparentSighashInfo`` value for each transparent input in transaction order, followed by the concatenation of the field encoding of the Bitcoin ``scriptSig`` value for each transparent input in transaction order:: A.1a: TransparentSighashInfo (field encoding bytes) A.1b: scriptSig (field encoding bytes)