davinci-paper/v3-pq/figures/src/revote-lifecycle.drawio
v3-pq/figures/src/revote-lifecycle.drawioRaw
1<mxfile host="Electron">
2 <diagram id="4kDnWLCIUVykxXE71Rh7" 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 in the voter's ballot STARK" mermaidId="n:STARK" 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 in the voter's ballot STARK" 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="138" width="695" x="861" y="561" as="geometry" />
10 </mxCell>
11 </UserObject>
12 <UserObject label="knows opening of prev package
(same slot, same sk)" mermaidId="n:S1" 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="knows opening of prev package
(same slot, same sk)" 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="73" width="285" x="35" y="45" as="geometry" />
15 </mxCell>
16 </UserObject>
17 <UserObject label="NULL = PRF(sk, prevPkgDigest)" mermaidId="n:S2" 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="NULL = PRF(sk, prevPkgDigest)" 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="290" x="370" y="55" as="geometry" />
20 </mxCell>
21 </UserObject>
22 <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="5">
23 <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">
24 <mxGeometry height="286" width="357" x="1030" y="314" as="geometry" />
25 </mxCell>
26 </UserObject>
27 <UserObject label="prev admitted:
voteID → pkgDigest inclusion
proof under current root" mermaidId="n:B1" 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="prev admitted:
voteID → pkgDigest inclusion
proof under current root" id="6">
28 <mxCell parent="5" 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">
29 <mxGeometry height="93" width="269" x="44" y="84" as="geometry" />
30 </mxCell>
31 </UserObject>
32 <UserObject label="NULL not in nullifier tree
→ insert (once ever)" mermaidId="n:B2" 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="NULL not in nullifier tree
→ insert (once ever)" id="7">
33 <mxCell parent="5" 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="73" width="231" x="63" y="45" as="geometry" />
35 </mxCell>
36 </UserObject>
37 <UserObject label="empty slot → first package only;
occupied slot → must consume
exactly one predecessor" mermaidId="n:B3" 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="empty slot → first package only;
occupied slot → must consume
exactly one predecessor" id="8">
38 <mxCell parent="5" 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">
39 <mxGeometry height="93" width="287" x="35" y="168" as="geometry" />
40 </mxCell>
41 </UserObject>
42 <UserObject label="P0 — first package
prevPkgDigest = 0" 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="P0 — first package
prevPkgDigest = 0" id="9">
43 <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">
44 <mxGeometry height="73" width="195" x="8" y="347" as="geometry" />
45 </mxCell>
46 </UserObject>
47 <UserObject label="P1 — live package
references pkgDigest(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="P1 — live package
references pkgDigest(P0)" id="10">
48 <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">
49 <mxGeometry height="73" width="241" x="399" y="408" as="geometry" />
50 </mxCell>
51 </UserObject>
52 <UserObject label="P2 — live package" mermaidId="n:P2" 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="P2 — live package" id="11">
53 <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">
54 <mxGeometry height="54" width="193" x="1112" y="8" as="geometry" />
55 </mxCell>
56 </UserObject>
57 <UserObject label="P0 consumed (dead):
its E removed from A" mermaidId="n:D0" 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="P0 consumed (dead):
its E removed from A" id="12">
58 <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">
59 <mxGeometry height="73" width="213" x="413" y="285" as="geometry" />
60 </mxCell>
61 </UserObject>
62 <UserObject label="nullifier tree (depth-256 SMT)
public, unlinkable keys" mermaidId="n:N" 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="nullifier tree (depth-256 SMT)
public, unlinkable keys" 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="73" width="268" x="1631" y="359" as="geometry" />
65 </mxCell>
66 </UserObject>
67 <UserObject label="revote consumes P0" mermaidId="e:P0->P1#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);html=1;fontSize=16;labelBackgroundColor=light-dark(#E8E8E88D,#2a2a2a8D);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.92;entryX=0;entryY=0.51;" mermaidBaseValue="revote consumes P0" id="14">
68 <mxCell edge="1" parent="1" source="9" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);html=1;fontSize=16;labelBackgroundColor=light-dark(#E8E8E88D,#2a2a2a8D);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.92;entryX=0;entryY=0.51;" target="10">
69 <mxGeometry relative="1" as="geometry">
70 <Array as="points">
71 <mxPoint x="301" y="445" />
72 </Array>
73 </mxGeometry>
74 </mxCell>
75 </UserObject>
76 <UserObject label="revote consumes P1" mermaidId="e:P1->P2#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);html=1;fontSize=16;labelBackgroundColor=light-dark(#E8E8E88D,#2a2a2a8D);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontColor=light-dark(#333333,#cccccc);exitX=0.58;exitY=0;entryX=0;entryY=0.5;" mermaidBaseValue="revote consumes P1" id="15">
77 <mxCell edge="1" parent="1" source="10" style="curved=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);html=1;fontSize=16;labelBackgroundColor=light-dark(#E8E8E88D,#2a2a2a8D);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontColor=light-dark(#333333,#cccccc);exitX=0.58;exitY=0;entryX=0;entryY=0.5;" target="11">
78 <mxGeometry relative="1" as="geometry">
79 <Array as="points">
80 <mxPoint x="738" y="35" />
81 <mxPoint x="836" y="35" />
82 </Array>
83 </mxGeometry>
84 </mxCell>
85 </UserObject>
86 <UserObject label="after consumption" mermaidId="e:P0->D0#0" mermaidBaseStyle="curved=1;dashed=1;dashPattern=2 3;fixDash=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);html=1;fontSize=16;labelBackgroundColor=light-dark(#E8E8E88D,#2a2a2a8D);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.07;entryX=0;entryY=0.51;" mermaidBaseValue="after consumption" id="16">
87 <mxCell edge="1" parent="1" source="9" style="curved=1;dashed=1;dashPattern=2 3;fixDash=1;startArrow=none;endArrow=block;endSize=7;strokeColor=light-dark(#333333,#cccccc);html=1;fontSize=16;labelBackgroundColor=light-dark(#E8E8E88D,#2a2a2a8D);fontFamily=Trebuchet MS,Verdana,Arial,sans-serif;fontColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.07;entryX=0;entryY=0.51;" target="12">
88 <mxGeometry relative="1" as="geometry">
89 <Array as="points">
90 <mxPoint x="301" y="322" />
91 </Array>
92 </mxGeometry>
93 </mxCell>
94 </UserObject>
95 <UserObject label="" mermaidId="e:P1->STARK#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=none;curved=1;strokeColor=light-dark(#333333,#cccccc);exitX=0.68;exitY=1;entryX=0;entryY=0.5;" mermaidBaseValue="" id="17">
96 <mxCell edge="1" parent="1" source="10" style="curved=1;startArrow=none;endArrow=none;strokeColor=light-dark(#333333,#cccccc);exitX=0.68;exitY=1;entryX=0;entryY=0.5;" target="2">
97 <mxGeometry relative="1" as="geometry">
98 <Array as="points">
99 <mxPoint x="738" y="630" />
100 <mxPoint x="836" y="630" />
101 </Array>
102 </mxGeometry>
103 </mxCell>
104 </UserObject>
105 <UserObject label="" mermaidId="e:P1->BATCH#0" mermaidBaseStyle="curved=1;startArrow=none;endArrow=none;curved=1;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.46;" mermaidBaseValue="" id="18">
106 <mxCell edge="1" parent="1" source="10" style="curved=1;startArrow=none;endArrow=none;strokeColor=light-dark(#333333,#cccccc);exitX=1;exitY=0.51;entryX=0;entryY=0.46;" target="5">
107 <mxGeometry relative="1" as="geometry">
108 <Array as="points" />
109 </mxGeometry>
110 </mxCell>
111 </UserObject>
112 <UserObject label="" mermaidId="e:B2->N#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="19">
113 <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="13">
114 <mxGeometry relative="1" as="geometry">
115 <Array as="points" />
116 </mxGeometry>
117 </mxCell>
118 </UserObject>
119 </root>
120 </mxGraphModel>
121 </diagram>
122</mxfile>