davinci-paper/v3-pq/figures/src/batch-flow.drawio
v3-pq/figures/src/batch-flow.drawioRaw
1<mxfile host="Electron">
2 <diagram id="xDI58kzrqHpc6wOEHIs5" name="pageWithNumber">
3 <mxGraphModel grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="0" page="0" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
4 <root>
5 <mxCell id="0" />
6 <mxCell id="1" parent="0" />
7 <UserObject label="K packages
+ ballot STARKs" mermaidId="n:I1" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="K packages
+ ballot STARKs" id="2">
8 <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1">
9 <mxGeometry height="73" width="177" x="9" y="151" as="geometry" />
10 </mxCell>
11 </UserObject>
12 <UserObject label="verify K ballot STARKs in-guest
(Blake3 precompile,
2.5M steps each)" mermaidId="n:V" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="verify K ballot STARKs in-guest
(Blake3 precompile,
2.5M steps each)" id="3">
13 <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1">
14 <mxGeometry height="93" width="282" x="249" y="141" as="geometry" />
15 </mxCell>
16 </UserObject>
17 <UserObject label="census path +
PQ key-map lookup" mermaidId="n:I2" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="census path +
PQ key-map lookup" id="4">
18 <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1">
19 <mxGeometry height="73" width="201" x="290" y="8" as="geometry" />
20 </mxCell>
21 </UserObject>
22 <UserObject label="eligibility, slot and key binding
(hybrid: + ECDSA over pkgDigest)" mermaidId="n:CE" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="eligibility, slot and key binding
(hybrid: + ECDSA over pkgDigest)" id="5">
23 <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1">
24 <mxGeometry height="73" width="302" x="594" y="8" as="geometry" />
25 </mxCell>
26 </UserObject>
27 <UserObject label="state witnesses" mermaidId="n:I3" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="state witnesses" id="6">
28 <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1">
29 <mxGeometry height="54" width="169" x="13" y="313" as="geometry" />
30 </mxCell>
31 </UserObject>
32 <UserObject label="state transitions:
insert voteID→pkgDigest ·
mark first-write slots OCCUPIED ·
slots pairwise distinct" mermaidId="n:ST" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="state transitions:
insert voteID→pkgDigest ·
mark first-write slots OCCUPIED ·
slots pairwise distinct" id="7">
33 <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1">
34 <mxGeometry height="112" width="301" x="240" y="284" as="geometry" />
35 </mxCell>
36 </UserObject>
37 <UserObject label="fresh batch seed" mermaidId="n:I4" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="fresh batch seed" id="8">
38 <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1">
39 <mxGeometry height="54" width="178" x="8" y="475" as="geometry" />
40 </mxCell>
41 </UserObject>
42 <UserObject label="warden payload:
write log (slot of each package)
encrypted under k_b; k_b θ-shared
via ν in-guest encapsulations" mermaidId="n:WP" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="warden payload:
write log (slot of each package)
encrypted under k_b; k_b θ-shared
via ν in-guest encapsulations" id="9">
43 <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1">
44 <mxGeometry height="112" width="308" x="236" y="446" as="geometry" />
45 </mxCell>
46 </UserObject>
47 <UserObject label="column views:
one record per package
per warden → viewsRoot" mermaidId="n:CV" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="column views:
one record per package
per warden → viewsRoot" id="10">
48 <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1">
49 <mxGeometry height="93" width="239" x="626" y="131" as="geometry" />
50 </mxCell>
51 </UserObject>
52 <UserObject label="blobs:
packages (voteID order) ·
first-write slots · payload" mermaidId="n:BL" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="blobs:
packages (voteID order) ·
first-write slots · payload" id="11">
53 <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1">
54 <mxGeometry height="93" width="241" x="625" y="294" as="geometry" />
55 </mxCell>
56 </UserObject>
57 <UserObject label="public outputs:
ok, failMask, roots, counters,
censusRoot, pqKeyRoot, blobsDigest" mermaidId="n:OUT" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="public outputs:
ok, failMask, roots, counters,
censusRoot, pqKeyRoot, blobsDigest" id="12">
58 <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1">
59 <mxGeometry height="93" width="325" x="946" y="131" as="geometry" />
60 </mxCell>
61 </UserObject>
62 <UserObject label="" mermaidId="e:I1->V#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.51;" mermaidBaseValue="" id="13">
63 <mxCell edge="1" parent="1" source="2" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.51;" target="3">
64 <mxGeometry relative="1" as="geometry">
65 <Array as="points" />
66 </mxGeometry>
67 </mxCell>
68 </UserObject>
69 <UserObject label="" mermaidId="e:I2->CE#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.51;" mermaidBaseValue="" id="14">
70 <mxCell edge="1" parent="1" source="4" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.51;" target="5">
71 <mxGeometry relative="1" as="geometry">
72 <Array as="points" />
73 </mxGeometry>
74 </mxCell>
75 </UserObject>
76 <UserObject label="" mermaidId="e:I3->ST#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0;entryY=0.5;" mermaidBaseValue="" id="15">
77 <mxCell edge="1" parent="1" source="6" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0;entryY=0.5;" target="7">
78 <mxGeometry relative="1" as="geometry">
79 <Array as="points" />
80 </mxGeometry>
81 </mxCell>
82 </UserObject>
83 <UserObject label="" mermaidId="e:I4->WP#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0;entryY=0.5;" mermaidBaseValue="" id="16">
84 <mxCell edge="1" parent="1" source="8" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0;entryY=0.5;" target="9">
85 <mxGeometry relative="1" as="geometry">
86 <Array as="points" />
87 </mxGeometry>
88 </mxCell>
89 </UserObject>
90 <UserObject label="" mermaidId="e:V->CV#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.42;entryX=0;entryY=0.51;" mermaidBaseValue="" id="17">
91 <mxCell edge="1" parent="1" source="3" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.42;entryX=0;entryY=0.51;" target="10">
92 <mxGeometry relative="1" as="geometry">
93 <Array as="points">
94 <mxPoint x="569" y="178" />
95 </Array>
96 </mxGeometry>
97 </mxCell>
98 </UserObject>
99 <UserObject label="" mermaidId="e:V->BL#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.95;exitY=1;entryX=0.1;entryY=0;" mermaidBaseValue="" id="18">
100 <mxCell edge="1" parent="1" source="3" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.95;exitY=1;entryX=0.1;entryY=0;" target="11">
101 <mxGeometry relative="1" as="geometry">
102 <Array as="points">
103 <mxPoint x="569" y="254" />
104 </Array>
105 </mxGeometry>
106 </mxCell>
107 </UserObject>
108 <UserObject label="" mermaidId="e:ST->BL#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0;entryY=0.49;" mermaidBaseValue="" id="19">
109 <mxCell edge="1" parent="1" source="7" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0;entryY=0.49;" target="11">
110 <mxGeometry relative="1" as="geometry">
111 <Array as="points" />
112 </mxGeometry>
113 </mxCell>
114 </UserObject>
115 <UserObject label="" mermaidId="e:WP->BL#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0.29;entryY=1;" mermaidBaseValue="" id="20">
116 <mxCell edge="1" parent="1" source="9" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.5;entryX=0.29;entryY=1;" target="11">
117 <mxGeometry relative="1" as="geometry">
118 <Array as="points">
119 <mxPoint x="569" y="502" />
120 </Array>
121 </mxGeometry>
122 </mxCell>
123 </UserObject>
124 <UserObject label="" mermaidId="e:CE->OUT#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0.3;entryY=0;" mermaidBaseValue="" id="21">
125 <mxCell edge="1" parent="1" source="5" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0.3;entryY=0;" target="12">
126 <mxGeometry relative="1" as="geometry">
127 <Array as="points">
128 <mxPoint x="921" y="45" />
129 </Array>
130 </mxGeometry>
131 </mxCell>
132 </UserObject>
133 <UserObject label="" mermaidId="e:CV->OUT#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.51;" mermaidBaseValue="" id="22">
134 <mxCell edge="1" parent="1" source="10" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.51;" target="12">
135 <mxGeometry relative="1" as="geometry">
136 <Array as="points" />
137 </mxGeometry>
138 </mxCell>
139 </UserObject>
140 <UserObject label="" mermaidId="e:BL->OUT#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.49;entryX=0.34;entryY=1;" mermaidBaseValue="" id="23">
141 <mxCell edge="1" parent="1" source="11" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.49;entryX=0.34;entryY=1;" target="12">
142 <mxGeometry relative="1" as="geometry">
143 <Array as="points">
144 <mxPoint x="921" y="340" />
145 </Array>
146 </mxGeometry>
147 </mxCell>
148 </UserObject>
149 </root>
150 </mxGraphModel>
151 </diagram>
152</mxfile>