dash-docs/img/dev/en-nbits-overview.svg
David A. Harding a8f8f750c8
Dev Docs: Describe Serialized Block Header And Block Format
* Replace current description of the block header with a better
description.

    * Describe the various version numbers.

    * Describe how the merkle root is constructed.

    * Describe how nBits is parsed and how to correctly create it to
      avoid negative values.

* Describe the serialized block format used to calculate max block size.
2014-11-07 22:50:27 -05:00

83 lines
5.2 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.26.3 (20100126.1600)
-->
<!-- Title: _anonymous_0 Pages: 1 -->
<svg width="450pt" height="136pt"
viewBox="0.00 0.00 450.00 135.93" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph1" class="graph" transform="scale(0.844278 0.844278) rotate(0) translate(4 157)">
<title>_anonymous_0</title>
<polygon fill="white" stroke="white" points="-4,5 -4,-157 530,-157 530,5 -4,5"/>
<text text-anchor="middle" x="262.5" y="-8.4" font-family="Sans" font-size="14.00">Converting nBits Into A Target Threshold</text>
<!-- nbits -->
<g id="node1" class="node"><title>nbits</title>
<text text-anchor="middle" x="62" y="-135.9" font-family="Sans" font-size="14.00">0x181bc330 → </text>
<text text-anchor="middle" x="62" y="-118.9" font-family="Sans" font-size="14.00"> </text>
<text text-anchor="middle" x="62" y="-101.9" font-family="Sans" font-size="14.00">nBits In</text>
<text text-anchor="middle" x="62" y="-84.9" font-family="Sans" font-size="14.00">Big&#45;Endian</text>
<text text-anchor="middle" x="62" y="-67.9" font-family="Sans" font-size="14.00">Order</text>
</g>
<!-- significand -->
<g id="node2" class="node"><title>significand</title>
<text text-anchor="middle" x="170" y="-135.9" font-family="Sans" font-size="14.00">0x1bc330</text>
<text text-anchor="middle" x="170" y="-118.9" font-family="Sans" font-size="14.00"> </text>
<text text-anchor="middle" x="170" y="-101.9" font-family="Sans" font-size="14.00">Significand</text>
<text text-anchor="middle" x="170" y="-84.9" font-family="Sans" font-size="14.00">(Mantissa)</text>
<text text-anchor="middle" x="170" y="-67.9" font-family="Sans" font-size="14.00"> </text>
</g>
<!-- times -->
<g id="node3" class="node"><title>times</title>
<text text-anchor="middle" x="228" y="-135.9" font-family="Sans" font-size="14.00">*</text>
<text text-anchor="middle" x="228" y="-118.9" font-family="Sans" font-size="14.00"> </text>
<text text-anchor="middle" x="228" y="-101.9" font-family="Sans" font-size="14.00"> </text>
<text text-anchor="middle" x="228" y="-84.9" font-family="Sans" font-size="14.00"> </text>
<text text-anchor="middle" x="228" y="-67.9" font-family="Sans" font-size="14.00"> </text>
</g>
<!-- base -->
<g id="node4" class="node"><title>base</title>
<text text-anchor="middle" x="266" y="-135.9" font-family="Sans" font-size="14.00">256</text>
<text text-anchor="middle" x="266" y="-118.9" font-family="Sans" font-size="14.00"> </text>
<text text-anchor="middle" x="266" y="-101.9" font-family="Sans" font-size="14.00">Base</text>
<text text-anchor="middle" x="266" y="-84.9" font-family="Sans" font-size="14.00"> </text>
<text text-anchor="middle" x="266" y="-67.9" font-family="Sans" font-size="14.00"> </text>
</g>
<!-- result -->
<g id="node10" class="node"><title>result</title>
<text text-anchor="middle" x="266" y="-33.9" font-family="Sans" font-size="14.00">Result: 0x1bc330000000000000000000000000000000000000000000 </text>
</g>
<!-- base&#45;&gt;result -->
<!-- exp -->
<g id="node5" class="node"><title>exp</title>
<text text-anchor="middle" x="306" y="-135.9" font-family="Sans" font-size="14.00">^</text>
<text text-anchor="middle" x="306" y="-118.9" font-family="Sans" font-size="14.00"> </text>
<text text-anchor="middle" x="306" y="-101.9" font-family="Sans" font-size="14.00"> </text>
<text text-anchor="middle" x="306" y="-84.9" font-family="Sans" font-size="14.00"> </text>
<text text-anchor="middle" x="306" y="-67.9" font-family="Sans" font-size="14.00"> </text>
</g>
<!-- exponent -->
<g id="node6" class="node"><title>exponent</title>
<text text-anchor="middle" x="362" y="-135.9" font-family="Sans" font-size="14.00">(0x18</text>
<text text-anchor="middle" x="362" y="-118.9" font-family="Sans" font-size="14.00"> </text>
<text text-anchor="middle" x="362" y="-101.9" font-family="Sans" font-size="14.00">Exponent</text>
<text text-anchor="middle" x="362" y="-84.9" font-family="Sans" font-size="14.00"> </text>
<text text-anchor="middle" x="362" y="-67.9" font-family="Sans" font-size="14.00"> </text>
</g>
<!-- minus -->
<g id="node7" class="node"><title>minus</title>
<text text-anchor="middle" x="415" y="-135.9" font-family="Sans" font-size="14.00">&#45;</text>
<text text-anchor="middle" x="415" y="-118.9" font-family="Sans" font-size="14.00"> </text>
<text text-anchor="middle" x="415" y="-101.9" font-family="Sans" font-size="14.00"> </text>
<text text-anchor="middle" x="415" y="-84.9" font-family="Sans" font-size="14.00"> </text>
<text text-anchor="middle" x="415" y="-67.9" font-family="Sans" font-size="14.00"> </text>
</g>
<!-- negative -->
<g id="node8" class="node"><title>negative</title>
<text text-anchor="middle" x="472" y="-135.9" font-family="Sans" font-size="14.00">3)</text>
<text text-anchor="middle" x="472" y="-118.9" font-family="Sans" font-size="14.00"> </text>
<text text-anchor="middle" x="472" y="-101.9" font-family="Sans" font-size="14.00">Bytes</text>
<text text-anchor="middle" x="472" y="-84.9" font-family="Sans" font-size="14.00">In</text>
<text text-anchor="middle" x="472" y="-67.9" font-family="Sans" font-size="14.00">Significand</text>
</g>
</g>
</svg>