davinci-paper/v3-pq/figures/src/revote-lifecycle.drawio
v3-pq/figures/src/revote-lifecycle.drawioRaw
1<mxfile host="Electron">
2 <diagram id="kVxJiN1A3E72qDSdMYCW" 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="checked by the batch program" mermaidId="n:BATCH" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;verticalAlign=top;fillColor=light-dark(#ffffde,#1f2020);strokeColor=light-dark(#aaaa33,#cccccc);fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="checked by the batch program" id="2">
8 <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;verticalAlign=top;fillColor=light-dark(#ffffde,#1f2020);strokeColor=light-dark(#aaaa33,#cccccc);fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1">
9 <mxGeometry height="119" width="1002" x="8" y="8" as="geometry" />
10 </mxCell>
11 </UserObject>
12 <UserObject label="census: this voter owns slot s" mermaidId="n:C1" 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="census: this voter owns slot s" id="3">
13 <mxCell parent="2" 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="54" width="268" x="35" y="45" as="geometry" />
15 </mxCell>
16 </UserObject>
17 <UserObject label="at most 1 ballot per slot per batch" mermaidId="n:C2" 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="at most 1 ballot per slot per batch" id="4">
18 <mxCell parent="2" 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">
19 <mxGeometry height="54" width="297" x="353" y="45" as="geometry" />
20 </mxCell>
21 </UserObject>
22 <UserObject label="log entry = the package's slot" mermaidId="n:C3" 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="log entry = the package's slot" id="5">
23 <mxCell parent="2" 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="54" width="267" x="700" y="45" as="geometry" />
25 </mxCell>
26 </UserObject>
27 <UserObject label="first package P0
(fresh randomness)" mermaidId="n:P0" 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="first package P0
(fresh randomness)" id="6">
28 <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">
29 <mxGeometry height="73" width="199" x="410" y="177" as="geometry" />
30 </mxCell>
31 </UserObject>
32 <UserObject label="batch 7 publishes:
P0 · slot s marked OCCUPIED" mermaidId="n:B1" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#fff2cc;strokeColor=#d6b656;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="batch 7 publishes:
P0 · slot s marked OCCUPIED" id="7">
33 <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#fff2cc;strokeColor=#d6b656;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1">
34 <mxGeometry height="73" width="278" x="1060" y="177" as="geometry" />
35 </mxCell>
36 </UserObject>
37 <UserObject label="revote: fresh package P1
(no reference to P0)" mermaidId="n:P1" 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="revote: fresh package P1
(no reference to P0)" id="8">
38 <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">
39 <mxGeometry height="73" width="238" x="390" y="367" as="geometry" />
40 </mxCell>
41 </UserObject>
42 <UserObject label="batch 12 publishes:
P1 · nothing about slot s" mermaidId="n:B2" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#fff2cc;strokeColor=#d6b656;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="batch 12 publishes:
P1 · nothing about slot s" id="9">
43 <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#fff2cc;strokeColor=#d6b656;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1">
44 <mxGeometry height="73" width="233" x="1083" y="367" as="geometry" />
45 </mxCell>
46 </UserObject>
47 <UserObject label="write log of batch 7 (encrypted):
P0 wrote slot s" mermaidId="n:L1" 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="write log of batch 7 (encrypted):
P0 wrote slot s" id="10">
48 <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">
49 <mxGeometry height="73" width="284" x="1412" y="177" as="geometry" />
50 </mxCell>
51 </UserObject>
52 <UserObject label="write log of batch 12 (encrypted):
P1 wrote slot s" mermaidId="n:L2" 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="write log of batch 12 (encrypted):
P1 wrote slot s" id="11">
53 <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">
54 <mxGeometry height="73" width="293" x="1408" y="300" as="geometry" />
55 </mxCell>
56 </UserObject>
57 <UserObject label="at tally, θ wardens open the logs:
slot s → its package in the
highest batch = P1 (last write wins)" mermaidId="n:T" 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="at tally, θ wardens open the logs:
slot s → its package in the
highest batch = P1 (last write wins)" id="12">
58 <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">
59 <mxGeometry height="93" width="308" x="1770" y="229" as="geometry" />
60 </mxCell>
61 </UserObject>
62 <UserObject label="the public sees: one more package,
one more overwrite in the batch count,
never which slot" mermaidId="n:O" mermaidBaseStyle="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#fff2cc;strokeColor=#d6b656;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" mermaidBaseValue="the public sees: one more package,
one more overwrite in the batch count,
never which slot" id="13">
63 <mxCell parent="1" style="html=1;whiteSpace=wrap;strokeWidth=1;fillColor=#fff2cc;strokeColor=#d6b656;fontColor=light-dark(#333333,#cccccc);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontSize=16;" vertex="1">
64 <mxGeometry height="93" width="332" x="1388" y="423" as="geometry" />
65 </mxCell>
66 </UserObject>
67 <UserObject label="" mermaidId="e:P0->B1#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">
68 <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.51;entryX=0;entryY=0.51;" target="7">
69 <mxGeometry relative="1" as="geometry">
70 <Array as="points" />
71 </mxGeometry>
72 </mxCell>
73 </UserObject>
74 <UserObject label="" mermaidId="e:P1->B2#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.49;entryX=0;entryY=0.49;" mermaidBaseValue="" id="15">
75 <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.49;entryX=0;entryY=0.49;" target="9">
76 <mxGeometry relative="1" as="geometry">
77 <Array as="points" />
78 </mxGeometry>
79 </mxCell>
80 </UserObject>
81 <UserObject label="" mermaidId="e:B1->L1#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="16">
82 <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.51;entryX=0;entryY=0.51;" target="10">
83 <mxGeometry relative="1" as="geometry">
84 <Array as="points" />
85 </mxGeometry>
86 </mxCell>
87 </UserObject>
88 <UserObject label="" mermaidId="e:B2->L2#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.88;exitY=0;entryX=0;entryY=0.51;" mermaidBaseValue="" id="17">
89 <mxCell edge="1" parent="1" source="9" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=0.88;exitY=0;entryX=0;entryY=0.51;" target="11">
90 <mxGeometry relative="1" as="geometry">
91 <Array as="points">
92 <mxPoint x="1363" y="337" />
93 </Array>
94 </mxGeometry>
95 </mxCell>
96 </UserObject>
97 <UserObject label="" mermaidId="e:L1->T#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0.06;entryY=0;" mermaidBaseValue="" id="18">
98 <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.06;entryY=0;" target="12">
99 <mxGeometry relative="1" as="geometry">
100 <Array as="points">
101 <mxPoint x="1745" y="214" />
102 </Array>
103 </mxGeometry>
104 </mxCell>
105 </UserObject>
106 <UserObject label="" mermaidId="e:L2->T#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0.06;entryY=1;" mermaidBaseValue="" id="19">
107 <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.51;entryX=0.06;entryY=1;" target="12">
108 <mxGeometry relative="1" as="geometry">
109 <Array as="points">
110 <mxPoint x="1745" y="337" />
111 </Array>
112 </mxGeometry>
113 </mxCell>
114 </UserObject>
115 <UserObject label="" mermaidId="e:B2->O#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=none;strokeColor=light-dark(#333333,#cccccc);exitX=0.88;exitY=1;entryX=0;entryY=0.51;" mermaidBaseValue="" id="20">
116 <mxCell edge="1" parent="1" source="9" style="curved=1;startArrow=none;endArrow=none;strokeColor=light-dark(#333333,#cccccc);exitX=0.88;exitY=1;entryX=0;entryY=0.51;" target="13">
117 <mxGeometry relative="1" as="geometry">
118 <Array as="points">
119 <mxPoint x="1363" y="470" />
120 </Array>
121 </mxGeometry>
122 </mxCell>
123 </UserObject>
124 </root>
125 </mxGraphModel>
126 </diagram>
127</mxfile>