davinci-paper/v2/figures/protocol-flow.drawio
v2/figures/protocol-flow.drawioRaw
1<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0" version="26.3.0">
2 <diagram name="Page-1" id="w7KB5Wdl0Kbl-dEWBDwj">
3 <mxGraphModel dx="2765" dy="1538" 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">
4 <root>
5 <mxCell id="0" />
6 <mxCell id="1" parent="0" />
7 <mxCell id="pK1FVDeCFm6uw4lnA_kY-88" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
8 <mxGeometry width="800" height="1280" as="geometry" />
9 </mxCell>
10 <mxCell id="pK1FVDeCFm6uw4lnA_kY-66" value="Fetch current state root and data" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1">
11 <mxGeometry x="410" y="860" width="140" height="20" as="geometry" />
12 </mxCell>
13 <mxCell id="pK1FVDeCFm6uw4lnA_kY-67" value="Verify individual votes and accumulate" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1">
14 <mxGeometry x="410" y="900" width="140" height="20" as="geometry" />
15 </mxCell>
16 <mxCell id="pK1FVDeCFm6uw4lnA_kY-68" value="Build zkSNARK proof for state transition" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1">
17 <mxGeometry x="400" y="960" width="160" height="20" as="geometry" />
18 </mxCell>
19 <mxCell id="pK1FVDeCFm6uw4lnA_kY-69" value="Send new state root and updated data" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1">
20 <mxGeometry x="410" y="1020" width="140" height="20" as="geometry" />
21 </mxCell>
22 <mxCell id="pK1FVDeCFm6uw4lnA_kY-70" value="Publish shares of EPK after voting ends" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1">
23 <mxGeometry x="400" y="1100" width="160" height="20" as="geometry" />
24 </mxCell>
25 <mxCell id="pK1FVDeCFm6uw4lnA_kY-71" value="Reward for participation" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1">
26 <mxGeometry x="410" y="1140" width="140" height="20" as="geometry" />
27 </mxCell>
28 <mxCell id="pK1FVDeCFm6uw4lnA_kY-45" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=none;" vertex="1" parent="1">
29 <mxGeometry x="120" y="560" width="480" height="520" as="geometry" />
30 </mxCell>
31 <mxCell id="pK1FVDeCFm6uw4lnA_kY-63" value="Generate zkSNARK proof proving the validity of the encrypted vote" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1">
32 <mxGeometry x="160" y="760" width="240" height="20" as="geometry" />
33 </mxCell>
34 <mxCell id="pK1FVDeCFm6uw4lnA_kY-62" value="Encrypt vote choice using the encryption public key" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1">
35 <mxGeometry x="160" y="700" width="240" height="20" as="geometry" />
36 </mxCell>
37 <mxCell id="pK1FVDeCFm6uw4lnA_kY-53" value="Verify encryption shares" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1">
38 <mxGeometry x="560" y="300" width="120" height="20" as="geometry" />
39 </mxCell>
40 <mxCell id="pK1FVDeCFm6uw4lnA_kY-54" value="Create encryption public key" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1">
41 <mxGeometry x="560" y="360" width="120" height="20" as="geometry" />
42 </mxCell>
43 <mxCell id="pK1FVDeCFm6uw4lnA_kY-44" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=none;" vertex="1" parent="1">
44 <mxGeometry x="360" y="200" width="320" height="240" as="geometry" />
45 </mxCell>
46 <mxCell id="pK1FVDeCFm6uw4lnA_kY-55" value="Fetch encryption public key" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1">
47 <mxGeometry x="410" y="460" width="140" height="20" as="geometry" />
48 </mxCell>
49 <mxCell id="pK1FVDeCFm6uw4lnA_kY-1" value="" style="endArrow=none;dashed=1;html=1;rounded=0;" edge="1" parent="1">
50 <mxGeometry width="50" height="50" relative="1" as="geometry">
51 <mxPoint x="80" y="1240" as="sourcePoint" />
52 <mxPoint x="80" y="80" as="targetPoint" />
53 </mxGeometry>
54 </mxCell>
55 <mxCell id="pK1FVDeCFm6uw4lnA_kY-3" value="" style="endArrow=none;dashed=1;html=1;rounded=0;" edge="1" parent="1">
56 <mxGeometry width="50" height="50" relative="1" as="geometry">
57 <mxPoint x="400" y="1240" as="sourcePoint" />
58 <mxPoint x="400" y="80" as="targetPoint" />
59 </mxGeometry>
60 </mxCell>
61 <mxCell id="pK1FVDeCFm6uw4lnA_kY-4" value="" style="endArrow=none;dashed=1;html=1;rounded=0;" edge="1" parent="1">
62 <mxGeometry width="50" height="50" relative="1" as="geometry">
63 <mxPoint x="560" y="1240" as="sourcePoint" />
64 <mxPoint x="560" y="80" as="targetPoint" />
65 </mxGeometry>
66 </mxCell>
67 <mxCell id="pK1FVDeCFm6uw4lnA_kY-5" value="" style="endArrow=none;dashed=1;html=1;rounded=0;" edge="1" parent="1">
68 <mxGeometry width="50" height="50" relative="1" as="geometry">
69 <mxPoint x="720" y="1240" as="sourcePoint" />
70 <mxPoint x="720" y="80" as="targetPoint" />
71 </mxGeometry>
72 </mxCell>
73 <mxCell id="pK1FVDeCFm6uw4lnA_kY-12" value="Ethereum SC" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1" vertex="1" parent="1">
74 <mxGeometry x="520" y="50" width="80" height="20" as="geometry" />
75 </mxCell>
76 <mxCell id="pK1FVDeCFm6uw4lnA_kY-13" value="<div>IPFS</div>" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1" vertex="1" parent="1">
77 <mxGeometry x="680" y="50" width="80" height="20" as="geometry" />
78 </mxCell>
79 <mxCell id="pK1FVDeCFm6uw4lnA_kY-14" value="Sequencer" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1" vertex="1" parent="1">
80 <mxGeometry x="360" y="50" width="80" height="20" as="geometry" />
81 </mxCell>
82 <mxCell id="pK1FVDeCFm6uw4lnA_kY-15" value="Voter" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1" vertex="1" parent="1">
83 <mxGeometry x="120" y="50" width="80" height="20" as="geometry" />
84 </mxCell>
85 <mxCell id="pK1FVDeCFm6uw4lnA_kY-16" value="Organizer" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1" vertex="1" parent="1">
86 <mxGeometry x="40" y="50" width="80" height="20" as="geometry" />
87 </mxCell>
88 <mxCell id="pK1FVDeCFm6uw4lnA_kY-20" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
89 <mxGeometry width="50" height="50" relative="1" as="geometry">
90 <mxPoint x="560" y="480" as="sourcePoint" />
91 <mxPoint x="400" y="480" as="targetPoint" />
92 </mxGeometry>
93 </mxCell>
94 <mxCell id="pK1FVDeCFm6uw4lnA_kY-21" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
95 <mxGeometry width="50" height="50" relative="1" as="geometry">
96 <mxPoint x="560" y="380" as="sourcePoint" />
97 <mxPoint x="560" y="400" as="targetPoint" />
98 <Array as="points">
99 <mxPoint x="600" y="380" />
100 <mxPoint x="640" y="380" />
101 <mxPoint x="640" y="400" />
102 <mxPoint x="600" y="400" />
103 </Array>
104 </mxGeometry>
105 </mxCell>
106 <mxCell id="pK1FVDeCFm6uw4lnA_kY-22" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
107 <mxGeometry width="50" height="50" relative="1" as="geometry">
108 <mxPoint x="560" y="320" as="sourcePoint" />
109 <mxPoint x="560" y="340" as="targetPoint" />
110 <Array as="points">
111 <mxPoint x="600" y="320" />
112 <mxPoint x="640" y="320" />
113 <mxPoint x="640" y="340" />
114 <mxPoint x="600" y="340" />
115 </Array>
116 </mxGeometry>
117 </mxCell>
118 <mxCell id="pK1FVDeCFm6uw4lnA_kY-30" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
119 <mxGeometry width="50" height="50" relative="1" as="geometry">
120 <mxPoint x="160" y="720" as="sourcePoint" />
121 <mxPoint x="160" y="740" as="targetPoint" />
122 <Array as="points">
123 <mxPoint x="240" y="720" />
124 <mxPoint x="240" y="740" />
125 </Array>
126 </mxGeometry>
127 </mxCell>
128 <mxCell id="pK1FVDeCFm6uw4lnA_kY-31" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
129 <mxGeometry width="50" height="50" relative="1" as="geometry">
130 <mxPoint x="160" y="780" as="sourcePoint" />
131 <mxPoint x="160" y="800" as="targetPoint" />
132 <Array as="points">
133 <mxPoint x="240" y="780" />
134 <mxPoint x="240" y="800" />
135 </Array>
136 </mxGeometry>
137 </mxCell>
138 <mxCell id="pK1FVDeCFm6uw4lnA_kY-34" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
139 <mxGeometry width="50" height="50" relative="1" as="geometry">
140 <mxPoint x="400" y="880" as="sourcePoint" />
141 <mxPoint x="560" y="880" as="targetPoint" />
142 </mxGeometry>
143 </mxCell>
144 <mxCell id="pK1FVDeCFm6uw4lnA_kY-37" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
145 <mxGeometry width="50" height="50" relative="1" as="geometry">
146 <mxPoint x="400" y="920" as="sourcePoint" />
147 <mxPoint x="400" y="940" as="targetPoint" />
148 <Array as="points">
149 <mxPoint x="460" y="920" />
150 <mxPoint x="480" y="920" />
151 <mxPoint x="480" y="940" />
152 </Array>
153 </mxGeometry>
154 </mxCell>
155 <mxCell id="pK1FVDeCFm6uw4lnA_kY-38" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
156 <mxGeometry width="50" height="50" relative="1" as="geometry">
157 <mxPoint x="400" y="980" as="sourcePoint" />
158 <mxPoint x="400" y="1000" as="targetPoint" />
159 <Array as="points">
160 <mxPoint x="480" y="980" />
161 <mxPoint x="480" y="1000" />
162 </Array>
163 </mxGeometry>
164 </mxCell>
165 <mxCell id="pK1FVDeCFm6uw4lnA_kY-39" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
166 <mxGeometry width="50" height="50" relative="1" as="geometry">
167 <mxPoint x="400" y="1040" as="sourcePoint" />
168 <mxPoint x="560" y="1040" as="targetPoint" />
169 </mxGeometry>
170 </mxCell>
171 <mxCell id="pK1FVDeCFm6uw4lnA_kY-40" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
172 <mxGeometry width="50" height="50" relative="1" as="geometry">
173 <mxPoint x="400" y="1120" as="sourcePoint" />
174 <mxPoint x="560" y="1120" as="targetPoint" />
175 </mxGeometry>
176 </mxCell>
177 <mxCell id="pK1FVDeCFm6uw4lnA_kY-41" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
178 <mxGeometry width="50" height="50" relative="1" as="geometry">
179 <mxPoint x="560" y="1160" as="sourcePoint" />
180 <mxPoint x="400" y="1160" as="targetPoint" />
181 </mxGeometry>
182 </mxCell>
183 <mxCell id="pK1FVDeCFm6uw4lnA_kY-47" value="Publish census Merkle tree" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1">
184 <mxGeometry x="280" y="100" width="240" height="20" as="geometry" />
185 </mxCell>
186 <mxCell id="pK1FVDeCFm6uw4lnA_kY-50" value="Create new voting process (Merkle tree, details) and pay" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1">
187 <mxGeometry x="180" y="140" width="280" height="20" as="geometry" />
188 </mxCell>
189 <mxCell id="pK1FVDeCFm6uw4lnA_kY-2" value="" style="endArrow=none;dashed=1;html=1;rounded=0;" edge="1" parent="1">
190 <mxGeometry width="50" height="50" relative="1" as="geometry">
191 <mxPoint x="160" y="1240" as="sourcePoint" />
192 <mxPoint x="160" y="80" as="targetPoint" />
193 </mxGeometry>
194 </mxCell>
195 <mxCell id="pK1FVDeCFm6uw4lnA_kY-51" value="Provide collateral for participation" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1">
196 <mxGeometry x="410" y="220" width="140" height="20" as="geometry" />
197 </mxCell>
198 <mxCell id="pK1FVDeCFm6uw4lnA_kY-17" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
199 <mxGeometry width="50" height="50" relative="1" as="geometry">
200 <mxPoint x="80" y="120" as="sourcePoint" />
201 <mxPoint x="720" y="120" as="targetPoint" />
202 </mxGeometry>
203 </mxCell>
204 <mxCell id="pK1FVDeCFm6uw4lnA_kY-18" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
205 <mxGeometry width="50" height="50" relative="1" as="geometry">
206 <mxPoint x="80" y="160" as="sourcePoint" />
207 <mxPoint x="560" y="160" as="targetPoint" />
208 </mxGeometry>
209 </mxCell>
210 <mxCell id="pK1FVDeCFm6uw4lnA_kY-52" value="Generate and publish encryption share" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1">
211 <mxGeometry x="410" y="260" width="140" height="20" as="geometry" />
212 </mxCell>
213 <mxCell id="pK1FVDeCFm6uw4lnA_kY-19" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
214 <mxGeometry width="50" height="50" relative="1" as="geometry">
215 <mxPoint x="400" y="240" as="sourcePoint" />
216 <mxPoint x="560" y="240" as="targetPoint" />
217 </mxGeometry>
218 </mxCell>
219 <mxCell id="pK1FVDeCFm6uw4lnA_kY-23" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
220 <mxGeometry width="50" height="50" relative="1" as="geometry">
221 <mxPoint x="400" y="280" as="sourcePoint" />
222 <mxPoint x="560" y="280" as="targetPoint" />
223 </mxGeometry>
224 </mxCell>
225 <mxCell id="pK1FVDeCFm6uw4lnA_kY-56" value="Download census Merkle tree" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1">
226 <mxGeometry x="490" y="500" width="140" height="20" as="geometry" />
227 </mxCell>
228 <mxCell id="pK1FVDeCFm6uw4lnA_kY-24" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
229 <mxGeometry width="50" height="50" relative="1" as="geometry">
230 <mxPoint x="400" y="520" as="sourcePoint" />
231 <mxPoint x="720" y="520" as="targetPoint" />
232 </mxGeometry>
233 </mxCell>
234 <mxCell id="pK1FVDeCFm6uw4lnA_kY-57" value="<font style="font-size: 8px;">DKG process</font>" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=bottom;fontStyle=1;align=center;" vertex="1" parent="1">
235 <mxGeometry x="360" y="200" width="80" height="20" as="geometry" />
236 </mxCell>
237 <mxCell id="pK1FVDeCFm6uw4lnA_kY-58" value="<font style="font-size: 8px;">voting loop</font>" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=bottom;fontStyle=1;align=center;" vertex="1" parent="1">
238 <mxGeometry x="120" y="560" width="80" height="20" as="geometry" />
239 </mxCell>
240 <mxCell id="pK1FVDeCFm6uw4lnA_kY-59" value="Fetch voting process details" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1">
241 <mxGeometry x="240" y="580" width="240" height="20" as="geometry" />
242 </mxCell>
243 <mxCell id="pK1FVDeCFm6uw4lnA_kY-60" value="Fetch census Merkle proof" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1">
244 <mxGeometry x="200" y="620" width="160" height="20" as="geometry" />
245 </mxCell>
246 <mxCell id="pK1FVDeCFm6uw4lnA_kY-61" value="Fetch encryption public key" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1">
247 <mxGeometry x="240" y="660" width="240" height="20" as="geometry" />
248 </mxCell>
249 <mxCell id="pK1FVDeCFm6uw4lnA_kY-25" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
250 <mxGeometry width="50" height="50" relative="1" as="geometry">
251 <mxPoint x="160" y="600" as="sourcePoint" />
252 <mxPoint x="560" y="600" as="targetPoint" />
253 </mxGeometry>
254 </mxCell>
255 <mxCell id="pK1FVDeCFm6uw4lnA_kY-27" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
256 <mxGeometry width="50" height="50" relative="1" as="geometry">
257 <mxPoint x="160" y="680" as="sourcePoint" />
258 <mxPoint x="560" y="680" as="targetPoint" />
259 </mxGeometry>
260 </mxCell>
261 <mxCell id="pK1FVDeCFm6uw4lnA_kY-26" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
262 <mxGeometry width="50" height="50" relative="1" as="geometry">
263 <mxPoint x="160" y="640" as="sourcePoint" />
264 <mxPoint x="400" y="640" as="targetPoint" />
265 </mxGeometry>
266 </mxCell>
267 <mxCell id="pK1FVDeCFm6uw4lnA_kY-64" value="Send encrypted vote, Merkle proof, and identity proof" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1">
268 <mxGeometry x="180" y="820" width="200" height="20" as="geometry" />
269 </mxCell>
270 <mxCell id="pK1FVDeCFm6uw4lnA_kY-32" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
271 <mxGeometry width="50" height="50" relative="1" as="geometry">
272 <mxPoint x="160" y="840" as="sourcePoint" />
273 <mxPoint x="400" y="840" as="targetPoint" />
274 </mxGeometry>
275 </mxCell>
276 <mxCell id="pK1FVDeCFm6uw4lnA_kY-72" value="Decrypt results once the EPK threshold is reached" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1">
277 <mxGeometry x="200" y="1180" width="240" height="20" as="geometry" />
278 </mxCell>
279 <mxCell id="pK1FVDeCFm6uw4lnA_kY-42" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1">
280 <mxGeometry width="50" height="50" relative="1" as="geometry">
281 <mxPoint x="560" y="1200" as="sourcePoint" />
282 <mxPoint x="80" y="1200" as="targetPoint" />
283 </mxGeometry>
284 </mxCell>
285 </root>
286 </mxGraphModel>
287 </diagram>
288</mxfile>