ZIP 221: fix rst formatting.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2021-03-31 13:37:49 +01:00
parent 31e8b03491
commit c9f9d0b36b
2 changed files with 30 additions and 44 deletions

View File

@ -329,34 +329,24 @@ License: MIT</pre>
</dl>
<p>Serialized as <code>CompactSize uint</code>.</p>
</li>
<li>[NU5 onward] <code>hashEarliestOrchardRoot</code></li>
</ol>
<blockquote>
<dl>
<dt>Leaf node</dt>
<dd>Calculated as the note commitment root of the final Orchard treestate (similar to <code>hashEarliestSaplingRoot</code> in Sapling).</dd>
<dt>Internal or root node</dt>
<dd>Inherited from the left child.</dd>
</dl>
<p>Serialized as <code>char[32]</code>.</p>
</blockquote>
<ol start="13" type="1">
<li>[NU5 onward] <code>hashLatestOrchardRoot</code></li>
</ol>
<div>
<h1>System Message: INFO/1 (zip-0221.rst line 169)</h1>
<p>Enumerated list start value not ordinal-1: "13" (ordinal 13)</p>
</div>
<blockquote>
<dl>
<dt>Leaf node</dt>
<dd>Calculated as the note commitment root of the final Orchard treestate (similar to <code>hashLatestSaplingRoot</code> in Sapling).</dd>
<dt>Internal or root node</dt>
<dd>Inherited from the right child.</dd>
</dl>
<p>Serialized as <code>char[32]</code>.</p>
</blockquote>
<ol start="14" type="1">
<li>[NU5 onward] <code>hashEarliestOrchardRoot</code>
<dl>
<dt>Leaf node</dt>
<dd>Calculated as the note commitment root of the final Orchard treestate (similar to <code>hashEarliestSaplingRoot</code> in Sapling).</dd>
<dt>Internal or root node</dt>
<dd>Inherited from the left child.</dd>
</dl>
<p>Serialized as <code>char[32]</code>.</p>
</li>
<li>[NU5 onward] <code>hashLatestOrchardRoot</code>
<dl>
<dt>Leaf node</dt>
<dd>Calculated as the note commitment root of the final Orchard treestate (similar to <code>hashLatestSaplingRoot</code> in Sapling).</dd>
<dt>Internal or root node</dt>
<dd>Inherited from the right child.</dd>
</dl>
<p>Serialized as <code>char[32]</code>.</p>
</li>
<li>[NU5 onward] <code>nOrchardTxCount</code>
<dl>
<dt>Leaf node</dt>
@ -367,10 +357,6 @@ License: MIT</pre>
<p>Serialized as <code>CompactSize uint</code>.</p>
</li>
</ol>
<div>
<h1>System Message: INFO/1 (zip-0221.rst line 169)</h1>
<p>Enumerated list start value not ordinal-1: "14" (ordinal 14)</p>
</div>
<p>The fields marked "[NU5 onward]" are omitted before NU5 activation <a id="id9" class="footnote_reference" href="#zip-0252">11</a>.</p>
<p>Each node, when serialized, is between 147 and 171 bytes long (between 212 and 244 bytes after NU5 activation). The canonical serialized representation of a node is used whenever creating child commitments for future nodes. Other than the metadata commitments, the MMR tree's construction is standard.</p>
<p>Once the MMR has been generated, we produce <code>hashChainHistoryRoot</code>, which we define as the BLAKE2b-256 digest of the serialization of the root node.</p>

View File

@ -330,25 +330,25 @@ Each MMR node is defined as follows:
12. [NU5 onward] ``hashEarliestOrchardRoot``
Leaf node
Calculated as the note commitment root of the final Orchard treestate
(similar to ``hashEarliestSaplingRoot`` in Sapling).
Leaf node
Calculated as the note commitment root of the final Orchard treestate
(similar to ``hashEarliestSaplingRoot`` in Sapling).
Internal or root node
Inherited from the left child.
Internal or root node
Inherited from the left child.
Serialized as ``char[32]``.
Serialized as ``char[32]``.
13. [NU5 onward] ``hashLatestOrchardRoot``
Leaf node
Calculated as the note commitment root of the final Orchard treestate
(similar to ``hashLatestSaplingRoot`` in Sapling).
Leaf node
Calculated as the note commitment root of the final Orchard treestate
(similar to ``hashLatestSaplingRoot`` in Sapling).
Internal or root node
Inherited from the right child.
Internal or root node
Inherited from the right child.
Serialized as ``char[32]``.
Serialized as ``char[32]``.
14. [NU5 onward] ``nOrchardTxCount``