-
Notifications
You must be signed in to change notification settings - Fork 2
/
Diagram.drawio
181 lines (181 loc) · 13.2 KB
/
Diagram.drawio
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<mxfile host="app.diagrams.net" modified="2023-09-10T12:43:14.784Z" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0" etag="uC3GK4pM_SGzHq4ixjI8" version="21.6.8" type="device">
<diagram name="Page-1" id="-kKM8zejYT_rb-ZdzzkC">
<mxGraphModel dx="3123" dy="2425" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-14" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="d3mJjCoJPCVwa2tYq_Rv-1" target="d3mJjCoJPCVwa2tYq_Rv-12">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="-20" y="460" />
<mxPoint x="-20" y="281" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-1" value="Transaction hash #1" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="190" y="433" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-10" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="d3mJjCoJPCVwa2tYq_Rv-2" target="d3mJjCoJPCVwa2tYq_Rv-1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="250" y="930" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-2" value="<div><b>hash256 of...<br></b></div><div><b><br></b></div><div><b>Seal open data:</b><br></div><div>block merkle proof</div><div>transaction merkle proof</div><div>seal merkle proof</div><div><br></div><div><b>Seal close data:</b><br></div><div>scriptPubKey</div><div>scriptSig (also signs opened seals merkle root)<br></div><div>dataCommitment</div>" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="300" y="832" width="140" height="200" as="geometry" />
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="d3mJjCoJPCVwa2tYq_Rv-3" target="d3mJjCoJPCVwa2tYq_Rv-1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="250" y="573" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-3" value="opened seals merkle root" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="310" y="543" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-18" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="d3mJjCoJPCVwa2tYq_Rv-4" target="d3mJjCoJPCVwa2tYq_Rv-3">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="370" y="663" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-4" value="<div>New seal #1</div><div>hash256(scriptPubKey)<br></div>" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;" vertex="1" parent="1">
<mxGeometry x="502" y="633" width="170" height="60" as="geometry" />
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-19" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="d3mJjCoJPCVwa2tYq_Rv-6" target="d3mJjCoJPCVwa2tYq_Rv-3">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="370" y="770" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-6" value="<div>New seal #M</div><div>hash256(scriptPubKey)<br></div>" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;" vertex="1" parent="1">
<mxGeometry x="502" y="736" width="170" height="60" as="geometry" />
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-15" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="d3mJjCoJPCVwa2tYq_Rv-11" target="d3mJjCoJPCVwa2tYq_Rv-12">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="-19" y="350" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-11" value="Transaction hash #N" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="190" y="325" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-22" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="d3mJjCoJPCVwa2tYq_Rv-12" target="d3mJjCoJPCVwa2tYq_Rv-20">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="-128" y="251" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-12" value="txs merkle root" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="-79" y="221" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-21" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="d3mJjCoJPCVwa2tYq_Rv-16" target="d3mJjCoJPCVwa2tYq_Rv-20">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="-128" y="-30" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-16" value="<div>blocks merkle root</div>" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="-79" y="-60" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-31" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="d3mJjCoJPCVwa2tYq_Rv-20" target="d3mJjCoJPCVwa2tYq_Rv-28">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="-237" y="-140" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-20" value="blocks+txs merkle root" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="-189" y="-170" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-30" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="d3mJjCoJPCVwa2tYq_Rv-23" target="d3mJjCoJPCVwa2tYq_Rv-28">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="-237" y="-440" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-23" value="header+block body merkle root" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="-189" y="-470" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-26" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="d3mJjCoJPCVwa2tYq_Rv-24" target="d3mJjCoJPCVwa2tYq_Rv-23">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="-128" y="-327" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-24" value="<div><b>hash256 of...</b><br></div><div>block timestamp</div><div>mining nonce</div><div>tlv data<br></div>" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="-79" y="-357" width="230" height="60" as="geometry" />
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-27" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="d3mJjCoJPCVwa2tYq_Rv-25" target="d3mJjCoJPCVwa2tYq_Rv-23">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="-128" y="-250" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-25" value="<div><b>hash256 of....</b></div><div>array of sequences of closed seals<br></div><div>STARK proof<br></div>" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="-79" y="-277" width="230" height="60" as="geometry" />
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-28" value="<div>Block hash</div><div>height: B<br></div>" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="-298" y="-570" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-36" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" target="d3mJjCoJPCVwa2tYq_Rv-16">
<mxGeometry relative="1" as="geometry">
<mxPoint x="139" as="targetPoint" />
<mxPoint x="190" y="60.05882352941171" as="sourcePoint" />
</mxGeometry>
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-33" value="<div>Block hash</div><div>height: B-1<br></div>" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="191" y="30" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-35" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" target="d3mJjCoJPCVwa2tYq_Rv-16">
<mxGeometry relative="1" as="geometry">
<mxPoint x="190" y="170.0588235294117" as="sourcePoint" />
<Array as="points">
<mxPoint x="-20" y="170" />
<mxPoint x="-20" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-34" value="<div>Block hash</div><div>height: 0<br></div>" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="191" y="140" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-37" value="" style="endArrow=none;dashed=1;html=1;dashPattern=1 3;strokeWidth=2;rounded=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="250" y="100" as="sourcePoint" />
<mxPoint x="250" y="130" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-39" value="" style="endArrow=none;dashed=1;html=1;dashPattern=1 3;strokeWidth=2;rounded=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="249.76" y="396" as="sourcePoint" />
<mxPoint x="249.76" y="426" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-41" value="" style="endArrow=none;dashed=1;html=1;dashPattern=1 3;strokeWidth=2;rounded=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="586.66" y="700" as="sourcePoint" />
<mxPoint x="586.66" y="730" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-44" value="<div>Block data</div>" style="swimlane;horizontal=0;whiteSpace=wrap;html=1;dashed=1;dashPattern=8 8;" vertex="1" parent="1">
<mxGeometry x="-338" y="-490" width="508" height="810" as="geometry">
<mxRectangle x="-338" y="-490" width="40" height="150" as="alternateBounds" />
</mxGeometry>
</mxCell>
<mxCell id="d3mJjCoJPCVwa2tYq_Rv-46" value="Transaction data" style="swimlane;horizontal=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="170" y="520" width="300" height="540" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>