Skip to content

Commit

Permalink
Merge pull request #496 from nuttycom/zip-244/fix_outputs_hash
Browse files Browse the repository at this point in the history
Correct the description of the outputs_digest hash.
  • Loading branch information
daira authored Apr 23, 2021
2 parents 1e955a8 + 89f5a20 commit 9a1334a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion zip-0244.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
<pre>"ZTxIdSequencHash"</pre>
</section>
<section id="t-2c-outputs-digest"><h7><span class="section-heading">T.2c: outputs_digest</span><span class="section-anchor"> <a rel="bookmark" href="#t-2c-outputs-digest"><img width="24" height="24" src="assets/images/section-anchor.png" alt=""></a></span></h7>
<p>A BLAKE2b-256 hash of the field encodings of all <code>prevout</code> field values of transparent inputs belonging to the transaction.</p>
<p>A BLAKE2b-256 hash of the concatenated field encodings of all transparent output values of the transaction. The field encoding of such an output consists of the encoded output <code>amount</code> (8-byte little endian) followed by the <code>scriptPubKey</code> byte array (serialized as Bitcoin script).</p>
<p>The personalization field of this hash is set to:</p>
<pre>"ZTxIdOutputsHash"</pre>
</section>
Expand Down
6 changes: 4 additions & 2 deletions zip-0244.rst
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,10 @@ The personalization field of this hash is set to::

T.2c: outputs_digest
''''''''''''''''''''
A BLAKE2b-256 hash of the field encodings of all ``prevout`` field values of
transparent inputs belonging to the transaction.
A BLAKE2b-256 hash of the concatenated field encodings of all transparent
output values of the transaction. The field encoding of such an output consists
of the encoded output ``amount`` (8-byte little endian) followed by
the ``scriptPubKey`` byte array (serialized as Bitcoin script).

The personalization field of this hash is set to::

Expand Down

0 comments on commit 9a1334a

Please sign in to comment.