update circuits, update census section, fix bn254 prime parameters
@@ -20,7 +20,7 @@ ├── README.md
├── v1/ # Early draft version └── v2/ # Main paper source (current version) ├── build/ # Compiled files and LaTeX class/style files - ├── figures/ # Diagrams and illustrations (.png, .drawio, .mmd) + ├── figures/ # Diagrams and illustrations (.png, .drawio, .mmd, .pdf) ├── sections/ # Individual .tex files for each section ├── bibliography/ # References (bibtex.bib) └── misc/ # Miscellaneous materials (links, notes)
@@ -6,6 +6,10 @@ \input{preamble-packages}
\input{preamble-macros} \input{acronyms.tex} + +\usepackage{caption} +\usepackage{pdflscape} + %% to avoid `Package hyperref Warning: Token not allowed in a PDF string (Unicode): removing `\\' on input line` error. In any case, `\\` should not be used outside tables. %\title{\Davinci: Decentralized autonomous vote integrity network\\ with cryptographic inference} \title{\Davinci: Decentralized autonomous vote integrity network \texorpdfstring{\\ with cryptographic inference}{}}@@ -132,7 +136,7 @@ \section*{Acknowledgments}
\addcontentsline{toc}{section}{\protect\numberline{}Acknowledgments} \label{sec:acknowledgments} -The authors would like to thank the following reviewers and contributors for their valuable feedback and support: all team members from the Vocdoni association, Jordi Baylina (from Iden3 and Polygon), Adrià Massanet (Privacy Scaling Explorations, Ethereum Foundation), Arnaucube (0xPARC), Alex Kampa (AZKR), Roger Baig (Polytechnic University of Catalonia), Javier Herranz (Polytechnic University of Catalonia), Jordi Puiggali (Secrets Vault), and Carla Ràfols (Pompeu Fabra University). +The authors would like to thank the following reviewers and contributors for their valuable feedback and support: all team members from the Vocdoni association, Jordi Baylina (Iden3 and Polygon), Adrià Massanet (Privacy Scaling Explorations, Ethereum Foundation), Arnaucube (0xPARC), Alex Kampa (AZKR), Javier Herranz (Polytechnic University of Catalonia), Jordi Puiggali (Secrets Vault), and Carla Ràfols (Pompeu Fabra University). % ---- Bibliography ----
@@ -34,6 +34,8 @@ \setlength{\skip\footins}{20pt} % space between text and footnotes
\setlength{\footnotesep}{1em} % space between individual footnotes % Table of contents style +\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}} % it works like p{} but centered + % Make section entries bold in ToC \makeatletter \renewcommand{\@dotsep}{4.5}
@@ -1,4 +1,4 @@
-<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:145.0) Gecko/20100101 Firefox/145.0" version="29.2.1" pages="6"> +<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:145.0) Gecko/20100101 Firefox/145.0" version="29.2.3" pages="6"> <diagram name="1. voter" id="-BY3RIMELlOST2Ke_Soi"> <mxGraphModel dx="1112" dy="554" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> <root>@@ -638,58 +638,63 @@ </mxCell>
</root> </mxGraphModel> </diagram> - <diagram name="4. state-transition" id="SfqXgv12DMmRO-l3Q4tj"> - <mxGraphModel dx="4250" dy="2420" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> + <diagram name="4. state-transition" id="coUTCLDVTvdId3xbbYyp"> + <mxGraphModel dx="4244" dy="2818" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> <root> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-0" /> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-1" parent="ZHVPnpmu-zi4kkNDXHjC-0" /> - <mxCell id="rbifxSStxaFz5T3WB4gI-0" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" value="<div><br></div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-0" /> + <mxCell id="r3nBc7xwnwC-NH75l-WN-1" parent="r3nBc7xwnwC-NH75l-WN-0" /> + <mxCell id="r3nBc7xwnwC-NH75l-WN-2" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" value="<div><br></div>" vertex="1"> <mxGeometry height="1410" width="2330" x="-730" y="-350" as="geometry" /> </mxCell> - <mxCell id="rbifxSStxaFz5T3WB4gI-1" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" value="<div><br></div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-3" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" value="<div><br></div>" vertex="1"> <mxGeometry height="980" width="2120" x="-580" y="-60" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-7" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;" value="" vertex="1"> + <mxCell id="JqfVqbhJbVo-5skbpuph-1" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" source="r3nBc7xwnwC-NH75l-WN-4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;" target="r3nBc7xwnwC-NH75l-WN-25" value=""> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="240" y="-195" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="r3nBc7xwnwC-NH75l-WN-4" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;" value="" vertex="1"> <mxGeometry height="230" width="380" x="320" y="-310" as="geometry" /> </mxCell> - <mxCell id="UHoIRV_9THWay56M9Opq-5" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-39" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.501;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=0;" target="ZHVPnpmu-zi4kkNDXHjC-42" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-5" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" source="r3nBc7xwnwC-NH75l-WN-32" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.501;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=0;" target="r3nBc7xwnwC-NH75l-WN-100" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points" /> <mxPoint x="640" y="-270" as="sourcePoint" /> <mxPoint x="640" y="59" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-4" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fontStyle=1;dashed=1;" value="" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-6" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fontStyle=1;dashed=1;" value="" vertex="1"> <mxGeometry height="550" width="1040" x="280" y="330" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-5" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fontStyle=1;dashed=1;" value="" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-7" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fontStyle=1;dashed=1;" value="" vertex="1"> <mxGeometry height="60" width="160" x="290" y="480" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-6" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fontStyle=1;dashed=1;" value="" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-8" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fontStyle=1;dashed=1;" value="" vertex="1"> <mxGeometry height="113" width="355" x="915" y="347" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-8" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{voteID}_i$$" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-9" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{voteID}_i$$" vertex="1"> <mxGeometry height="40" width="100" x="470" y="-190" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-11" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{stateRoot}^{\text{old}}$$" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-10" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{stateRoot}^{\text{old}}$$" vertex="1"> <mxGeometry height="40" width="80" x="1160" y="-120" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-12" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" target="ZHVPnpmu-zi4kkNDXHjC-65" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-11" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" target="r3nBc7xwnwC-NH75l-WN-55" value=""> <mxGeometry relative="1" as="geometry"> <mxPoint x="779.67" y="230" as="sourcePoint" /> <mxPoint x="779.67" y="620" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-13" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-66" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.737;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;" target="ZHVPnpmu-zi4kkNDXHjC-79" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-12" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" source="r3nBc7xwnwC-NH75l-WN-56" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.737;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;" target="r3nBc7xwnwC-NH75l-WN-70" value=""> <mxGeometry relative="1" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-14" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-13" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;"> <mxGeometry relative="1" as="geometry"> <mxPoint x="505" y="1220" as="sourcePoint" /> <mxPoint x="505" y="1220" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-15" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-20" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.513;entryDx=0;entryDy=0;entryPerimeter=0;" target="ZHVPnpmu-zi4kkNDXHjC-6" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-14" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" source="r3nBc7xwnwC-NH75l-WN-19" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.513;entryDx=0;entryDy=0;entryPerimeter=0;" target="r3nBc7xwnwC-NH75l-WN-8" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points"> <mxPoint x="1390" y="830" />@@ -698,158 +703,158 @@ </Array>
<mxPoint x="1280" y="405" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-16" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{stateRoot}^{\text{new}}$$" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-15" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{stateRoot}^{\text{new}}$$" vertex="1"> <mxGeometry height="40" width="80" x="1040" y="810" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-17" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-18" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-16" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" source="r3nBc7xwnwC-NH75l-WN-17" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> <mxGeometry relative="1" as="geometry"> <mxPoint x="680" y="960" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-18" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div><div>$$\text{numVotes}^{\text{new}}$$</div></div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-17" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div><div>$$\text{numVotes}^{\text{new}}$$</div></div>" vertex="1"> <mxGeometry height="40" width="120" x="620" y="810" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-19" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-20" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-18" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" source="r3nBc7xwnwC-NH75l-WN-19" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;"> <mxGeometry relative="1" as="geometry"> <mxPoint x="540" y="960" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-20" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div><div>$$\text{numOverwrites}^{\text{new}}$$</div></div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-19" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div><div>$$\text{numOverwrites}^{\text{new}}$$</div></div>" vertex="1"> <mxGeometry height="40" width="120" x="480" y="810" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-21" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div><div>$$\text{resultsAdd}^{\text{new}}$$</div></div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-20" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div><div>$$\text{resultsAdd}^{\text{new}}$$</div></div>" vertex="1"> <mxGeometry height="40" width="120" x="900" y="810" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-22" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div><div>$$\text{resultsSub}^{\text{new}}$$</div></div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-21" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div><div>$$\text{resultsSub}^{\text{new}}$$</div></div>" vertex="1"> <mxGeometry height="40" width="120" x="760" y="810" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-23" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{stateRoot}^{\text{new}}$$" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-22" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{stateRoot}^{\text{new}}$$" vertex="1"> <mxGeometry height="40" width="80" x="1040" y="960" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-24" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-25" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" target="ZHVPnpmu-zi4kkNDXHjC-26" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-23" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" source="r3nBc7xwnwC-NH75l-WN-24" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" target="r3nBc7xwnwC-NH75l-WN-25" value=""> <mxGeometry relative="1" as="geometry"> <mxPoint x="-525" y="-10" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-25" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div style="font-size: 11px;">$$\text{aggregationProof}_i$$</div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-24" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div style="font-size: 11px;">$$\text{aggregationProof}_i$$</div>" vertex="1"> <mxGeometry height="40" width="130" x="-528" y="-120" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-26" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" value="recursive SNARK batch verifier" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-25" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" value="recursive SNARK batch verifier" vertex="1"> <mxGeometry height="220" width="390" x="-560" y="80" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-27" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-8" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-26" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" source="r3nBc7xwnwC-NH75l-WN-9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points" /> <mxPoint x="520.09" y="-60" as="sourcePoint" /> <mxPoint x="520" y="80" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-32" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-45" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-27" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" source="r3nBc7xwnwC-NH75l-WN-37" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points" /> <mxPoint x="898.95" y="-80" as="sourcePoint" /> <mxPoint x="900" y="80" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-33" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-46" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-28" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" source="r3nBc7xwnwC-NH75l-WN-38" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points" /> <mxPoint x="1059.47" y="-80" as="sourcePoint" /> <mxPoint x="1060" y="80" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-34" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-29" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points" /> <mxPoint x="1199.47" y="-80" as="sourcePoint" /> <mxPoint x="1199" y="80" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-36" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-26" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" target="ZHVPnpmu-zi4kkNDXHjC-37" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-30" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" source="r3nBc7xwnwC-NH75l-WN-25" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" target="r3nBc7xwnwC-NH75l-WN-31" value=""> <mxGeometry relative="1" as="geometry"> <mxPoint x="-380" y="240" as="sourcePoint" /> <mxPoint x="-380" y="310" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-37" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="true" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-31" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="true" vertex="1"> <mxGeometry height="40" width="80" x="-405" y="959" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-39" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{censusRoot}$$" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-32" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{censusRoot}$$" vertex="1"> <mxGeometry height="40" width="80" x="600" y="-290" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-40" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div>$$\text{ballotMode}$$</div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-33" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div>$$\text{ballotMode}$$</div>" vertex="1"> <mxGeometry height="40" width="80" x="600" y="-240" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-41" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$EPK$$" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-34" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$EPK$$" vertex="1"> <mxGeometry height="40" width="80" x="600" y="-190" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-43" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{encryptedBallot}_i$$" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-35" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{encryptedBallot}_i$$" vertex="1"> <mxGeometry height="40" width="100" x="470" y="-140" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-44" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="<div>$$\text{numVotes}^{\text{old}}$$</div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-36" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="<div>$$\text{numVotes}^{\text{old}}$$</div>" vertex="1"> <mxGeometry height="40" width="120" x="840" y="-120" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-45" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="<div>$$\text{numOverwrites}^{\text{old}}$$</div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-37" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="<div>$$\text{numOverwrites}^{\text{old}}$$</div>" vertex="1"> <mxGeometry height="40" width="120" x="840" y="-170" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-46" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div>$$\text{resultsAdd}^{\text{old}}$$</div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-38" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div>$$\text{resultsAdd}^{\text{old}}$$</div>" vertex="1"> <mxGeometry height="40" width="120" x="1000" y="-170" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-47" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div>$$\text{resultsSub}^{\text{old}}$$</div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-39" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div>$$\text{resultsSub}^{\text{old}}$$</div>" vertex="1"> <mxGeometry height="40" width="120" x="1000" y="-120" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-50" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$k$$" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-40" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$k$$" vertex="1"> <mxGeometry height="40" width="60" x="-680" y="490" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-51" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-52" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" target="ZHVPnpmu-zi4kkNDXHjC-79" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-41" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" source="r3nBc7xwnwC-NH75l-WN-42" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" target="r3nBc7xwnwC-NH75l-WN-70" value=""> <mxGeometry relative="1" as="geometry"> <mxPoint x="440" y="730" as="sourcePoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-52" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{Hash}(k)$$" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-42" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{Hash}(k)$$" vertex="1"> <mxGeometry height="40" width="80" x="360" y="490" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-53" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="text;whiteSpace=wrap;html=1;" value="" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-43" parent="r3nBc7xwnwC-NH75l-WN-1" style="text;whiteSpace=wrap;html=1;" value="" vertex="1"> <mxGeometry height="50" width="60" x="880" y="1020" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-54" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-63" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.222;exitY=1.002;exitDx=0;exitDy=0;exitPerimeter=0;" target="ZHVPnpmu-zi4kkNDXHjC-67" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-44" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" source="r3nBc7xwnwC-NH75l-WN-53" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.222;exitY=1.002;exitDx=0;exitDy=0;exitPerimeter=0;" target="r3nBc7xwnwC-NH75l-WN-58" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points" /> <mxPoint x="512" y="320" as="sourcePoint" /> <mxPoint x="560" y="580" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-55" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-63" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.317;exitY=1.002;exitDx=0;exitDy=0;exitPerimeter=0;" target="ZHVPnpmu-zi4kkNDXHjC-66" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-45" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" source="r3nBc7xwnwC-NH75l-WN-53" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.317;exitY=1.002;exitDx=0;exitDy=0;exitPerimeter=0;" target="r3nBc7xwnwC-NH75l-WN-56" value=""> <mxGeometry relative="1" as="geometry"> <mxPoint x="596.5" y="300" as="sourcePoint" /> <mxPoint x="596.5" y="550" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-56" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="ZHVPnpmu-zi4kkNDXHjC-64" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-46" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="r3nBc7xwnwC-NH75l-WN-54" value=""> <mxGeometry relative="1" as="geometry"> <mxPoint x="870" y="300" as="sourcePoint" /> <mxPoint x="870" y="550" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-57" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="ZHVPnpmu-zi4kkNDXHjC-72" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-47" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="r3nBc7xwnwC-NH75l-WN-63" value=""> <mxGeometry relative="1" as="geometry"> <mxPoint x="979.5" y="250" as="sourcePoint" /> <mxPoint x="979.5" y="500" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-58" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="ZHVPnpmu-zi4kkNDXHjC-73" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-48" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="r3nBc7xwnwC-NH75l-WN-64" value=""> <mxGeometry relative="1" as="geometry"> <mxPoint x="1109" y="250" as="sourcePoint" /> <mxPoint x="1109" y="500" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-59" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" target="ZHVPnpmu-zi4kkNDXHjC-74" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-49" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" target="r3nBc7xwnwC-NH75l-WN-65" value=""> <mxGeometry relative="1" as="geometry"> <mxPoint x="1219.5" y="300" as="sourcePoint" /> <mxPoint x="1219.5" y="550" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-60" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-50" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points"> <mxPoint x="779" y="520" />@@ -859,34 +864,34 @@ <mxPoint x="779.29" y="440" as="sourcePoint" />
<mxPoint x="779" y="610" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-61" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-51" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> <mxGeometry relative="1" as="geometry"> <mxPoint x="979.41" y="350" as="sourcePoint" /> <mxPoint x="980" y="610" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-62" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;" value="<div><div><div><div><div><div><div><div><div><div>$$\text{stateRoot}^{\text{old}} = \text{stateRoot}^{\text{new}}$$</div><div><br></div></div></div></div>$$\text{numVotes}^{\text{old}} = \text{numVotes}^{\text{new}}$$</div></div></div>$$\text{numOverwrites}^{\text{old}} = \text{numOverwrites}^{\text{new}}$$</div><div><br></div><div><div><div><div><div><div><div>$$\text{resultsAdd}^{\text{old}} = \text{resultsAdd}^{\text{new}}$$</div></div></div>$$\text{resultsSub}^{\text{old}} = \text{resultsSub}^{\text{new}}$$</div></div></div></div></div></div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-52" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;" value="<div><div><div><div><div><div><div><div><div><div>$$\text{stateRoot}^{\text{old}} = \text{stateRoot}^{\text{new}}$$</div><div><br></div></div></div></div>$$\text{numVotes}^{\text{old}} = \text{numVotes}^{\text{new}}$$</div></div></div>$$\text{numOverwrites}^{\text{old}} = \text{numOverwrites}^{\text{new}}$$</div><div><br></div><div><div><div><div><div><div><div>$$\text{resultsAdd}^{\text{old}} = \text{resultsAdd}^{\text{new}}$$</div></div></div>$$\text{resultsSub}^{\text{old}} = \text{resultsSub}^{\text{new}}$$</div></div></div></div></div></div>" vertex="1"> <mxGeometry height="230" width="240" x="1270" y="490" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-63" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" value="<div><u><b>VERIFY INITIAL STATE</b><b><br><br></b></u></div><div><b><br></b></div><div align="left"><b>1.</b> Verify the MTProofs that prove that the first leafs of the tree store the public parameters of the voting process:<br><br>&nbsp;&nbsp; 0x0 = <b>processID</b>, 0x1 = <b>censusRoot</b>, 0x2 = <b>ballotMode</b>, 0x3 = <b>EPK</b>, 0x4 = <b>resultsAdd^{old}</b>, 0x5 = <b>resultsAdd^{sub}</b>. <br><br></div><div align="left"><b>2.</b> Verify the MTProofs that prove that none of the <b>voteIDs</b> belong to the tree.<br><b><br>3.</b> Verify the MTProofs of each <b>address</b>:<br><br>&nbsp;&nbsp; - If it is an inclusion proof: consider the vote <b>(c1, c2)</b> an <b>overwrite</b>.</div><div align="left">&nbsp;&nbsp; - If it is a non-inclusion proof: consider the vote <b>(c1, c2)</b> a <b>newVote</b>.</div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-53" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" value="<div><u><b>VERIFY INITIAL STATE</b><b><br><br></b></u></div><div><b><br></b></div><div align="left"><b>1.</b> Verify the MTProofs that prove that the first leafs of the tree store the public parameters of the voting process:<br><br>&nbsp;&nbsp; 0x0 = <b>processID</b>, 0x1 = <b>censusRoot</b>, 0x2 = <b>ballotMode</b>, 0x3 = <b>EPK</b>, 0x4 = <b>resultsAdd^{old}</b>, 0x5 = <b>resultsAdd^{sub}</b>. <br><br></div><div align="left"><b>2.</b> Verify the MTProofs that prove that none of the <b>voteIDs</b> belong to the tree.<br><b><br>3.</b> Verify the MTProofs of each <b>address</b>:<br><br>&nbsp;&nbsp; - If it is an inclusion proof: consider the vote <b>(c1, c2)</b> an <b>overwrite</b>.</div><div align="left">&nbsp;&nbsp; - If it is a non-inclusion proof: consider the vote <b>(c1, c2)</b> a <b>newVote</b>.</div>" vertex="1"> <mxGeometry height="220" width="1040" x="280" y="80" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-64" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#f8cecc;strokeColor=#b85450;" value="$$\text{address}_i$$" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-54" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#f8cecc;strokeColor=#b85450;" value="$$\text{address}_i$$" vertex="1"> <mxGeometry height="40" width="80" x="830" y="410" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-65" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{voteID}_i$$" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-55" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{voteID}_i$$" vertex="1"> <mxGeometry height="40" width="80" x="740" y="410" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-66" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{encryptedBallot}_i$$" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-56" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{encryptedBallot}_i$$" vertex="1"> <mxGeometry height="40" width="100" x="560" y="410" as="geometry" /> </mxCell> - <mxCell id="pnmM_wexEI5E3oBj83wp-11" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-67" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.216;entryY=-0.005;entryDx=0;entryDy=0;entryPerimeter=0;" target="ZHVPnpmu-zi4kkNDXHjC-79" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-57" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" source="r3nBc7xwnwC-NH75l-WN-58" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.216;entryY=-0.005;entryDx=0;entryDy=0;entryPerimeter=0;" target="r3nBc7xwnwC-NH75l-WN-70" value=""> <mxGeometry relative="1" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-67" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$EPK$$" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-58" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$EPK$$" vertex="1"> <mxGeometry height="40" width="82" x="470" y="410" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-68" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-59" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points"> <mxPoint x="869.66" y="530" />@@ -896,7 +901,7 @@ <mxPoint x="869.9499999999999" y="450" as="sourcePoint" />
<mxPoint x="870" y="610" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-69" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-78" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-60" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" source="r3nBc7xwnwC-NH75l-WN-69" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points"> <mxPoint x="549.71" y="550" />@@ -906,13 +911,13 @@ <mxPoint x="550" y="520" as="sourcePoint" />
<mxPoint x="550" y="570" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-70" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-61" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> <mxGeometry relative="1" as="geometry"> <mxPoint x="1109.41" y="350" as="sourcePoint" /> <mxPoint x="1110" y="610" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-71" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-62" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points"> <mxPoint x="1219.12" y="530" />@@ -922,171 +927,171 @@ <mxPoint x="1219.4099999999999" y="450" as="sourcePoint" />
<mxPoint x="1219" y="610" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-72" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div><div>$$\text{numOverwrites}^{\text{old}}$$</div></div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-63" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div><div>$$\text{numOverwrites}^{\text{old}}$$</div></div>" vertex="1"> <mxGeometry height="40" width="120" x="920" y="360" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-73" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div><div>$$\text{resultsAdd}^{\text{old}}$$</div></div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-64" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div><div>$$\text{resultsAdd}^{\text{old}}$$</div></div>" vertex="1"> <mxGeometry height="40" width="120" x="1050" y="360" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-74" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{stateRoot}^{\text{old}}$$" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-65" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{stateRoot}^{\text{old}}$$" vertex="1"> <mxGeometry height="40" width="80" x="1180" y="410" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-75" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div><div>$$\text{numVotes}^{\text{old}}$$</div></div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-66" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div><div>$$\text{numVotes}^{\text{old}}$$</div></div>" vertex="1"> <mxGeometry height="40" width="120" x="920" y="410" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-76" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div><div>$$\text{resultsSub}^{\text{old}}$$</div></div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-67" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div><div>$$\text{resultsSub}^{\text{old}}$$</div></div>" vertex="1"> <mxGeometry height="40" width="120" x="1050" y="410" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-77" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-68" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points" /> <mxPoint x="550" y="520" as="sourcePoint" /> <mxPoint x="550" y="610" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-78" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="$$\text{reEncryptedBallot}'_i$$" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-69" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="$$\text{reEncryptedBallot}'_i$$" vertex="1"> <mxGeometry height="40" width="80" x="510" y="543" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-79" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" value="$$\mathsf{ReEnc}_{EPK}(C_1, C_2)_i$$" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-70" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" value="$$\mathsf{ReEnc}_{EPK}(C_1, C_2)_i$$" vertex="1"> <mxGeometry height="40" width="190" x="470" y="490" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-80" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-71" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points" /> <mxPoint x="539.41" y="720" as="sourcePoint" /> <mxPoint x="539.41" y="810" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-81" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-72" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points" /> <mxPoint x="679.6" y="720" as="sourcePoint" /> <mxPoint x="679.6" y="810" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-82" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-73" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points" /> <mxPoint x="820" y="720" as="sourcePoint" /> <mxPoint x="820" y="810" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-83" connectable="0" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="group" value="" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-74" connectable="0" parent="r3nBc7xwnwC-NH75l-WN-1" style="group" value="" vertex="1"> <mxGeometry height="160" width="880" x="360" y="610" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-84" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-83" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-75" edge="1" parent="r3nBc7xwnwC-NH75l-WN-74" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points" /> <mxPoint x="600" y="110" as="sourcePoint" /> <mxPoint x="600" y="200" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-85" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-83" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-76" edge="1" parent="r3nBc7xwnwC-NH75l-WN-74" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points" /> <mxPoint x="720" y="110" as="sourcePoint" /> <mxPoint x="720" y="200" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-86" parent="ZHVPnpmu-zi4kkNDXHjC-83" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=left;" value="<div align="center"><b><u>APPLY STATE TRANSITIONS<br><br></u></b></div><div align="left"><b><br></b></div><div align="left"><b>&nbsp;&nbsp;&nbsp; </b>If the vote is a <b>newVote: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </b>If the vote is an <b>overwrite</b>:<b> <br></b></div><div align="left"><br></div><div align="left">&nbsp; &nbsp; <b>1.</b> Include <b>address</b>, <b>voteID</b>, and <b>(C1', C2')</b>.&nbsp;&nbsp; <span style="white-space: pre;">	</span><b>&nbsp;&nbsp;&nbsp; 1.</b> Update vote associated to <b>address</b> to<b> (C1', C2')</b> and include <b>voteID</b>.</div><div align="left">&nbsp; &nbsp; <b>2.</b> Update <b>numVotes</b>.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>2.</b> Update <b>numVotes</b> and <b>numOverwrites</b>.<div align="left">&nbsp; &nbsp; <b>3.</b> Update <b>resultsAdd</b>.&nbsp; &nbsp; <span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span>&nbsp;&nbsp;&nbsp; <b>3.</b> Update <b>resultsAdd</b> and <b>resultsSub</b>.<br>&nbsp;&nbsp;&nbsp; <b>4.</b> Update <b>stateRoot</b>.<span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span>&nbsp;&nbsp;&nbsp; <b>4.</b> Update <b>stateRoot</b>.</div></div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-77" parent="r3nBc7xwnwC-NH75l-WN-74" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=left;" value="<div align="center"><b><u>APPLY STATE TRANSITIONS<br><br></u></b></div><div align="left"><b><br></b></div><div align="left"><b>&nbsp;&nbsp;&nbsp; </b>If the vote is a <b>newVote: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </b>If the vote is an <b>overwrite</b>:<b> <br></b></div><div align="left"><br></div><div align="left">&nbsp; &nbsp; <b>1.</b> Include <b>address</b>, <b>voteID</b>, and <b>(C1', C2')</b>.&nbsp;&nbsp; <span style="white-space: pre;">	</span><b>&nbsp;&nbsp;&nbsp; 1.</b> Update vote associated to <b>address</b> to<b> (C1', C2')</b> and include <b>voteID</b>.</div><div align="left">&nbsp; &nbsp; <b>2.</b> Update <b>numVotes</b>.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>2.</b> Update <b>numVotes</b> and <b>numOverwrites</b>.<div align="left">&nbsp; &nbsp; <b>3.</b> Update <b>resultsAdd</b>.&nbsp; &nbsp; <span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span>&nbsp;&nbsp;&nbsp; <b>3.</b> Update <b>resultsAdd</b> and <b>resultsSub</b>.<br>&nbsp;&nbsp;&nbsp; <b>4.</b> Update <b>stateRoot</b>.<span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span>&nbsp;&nbsp;&nbsp; <b>4.</b> Update <b>stateRoot</b>.</div></div>" vertex="1"> <mxGeometry height="160" width="880" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-87" parent="ZHVPnpmu-zi4kkNDXHjC-83" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;strokeColor=#9673a6;fontFamily=Courier New;align=left;" value="" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-78" parent="r3nBc7xwnwC-NH75l-WN-74" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;strokeColor=#9673a6;fontFamily=Courier New;align=left;" value="" vertex="1"> <mxGeometry height="100" width="350" x="10" y="50" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-88" parent="ZHVPnpmu-zi4kkNDXHjC-83" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;strokeColor=#9673a6;fontFamily=Courier New;align=left;" value="" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-79" parent="r3nBc7xwnwC-NH75l-WN-74" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;strokeColor=#9673a6;fontFamily=Courier New;align=left;" value="" vertex="1"> <mxGeometry height="100" width="495" x="375" y="50" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-91" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;align=center;spacingBottom=-4;" value="$$\text{Iterate over } i$$" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-80" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;align=center;spacingBottom=-4;" value="$$\text{Iterate over } i$$" vertex="1"> <mxGeometry height="53" width="130" x="290" y="340" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-92" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-91" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" target="ZHVPnpmu-zi4kkNDXHjC-91"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-81" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" source="r3nBc7xwnwC-NH75l-WN-80" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" target="r3nBc7xwnwC-NH75l-WN-80"> <mxGeometry relative="1" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-93" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-82" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> <mxGeometry relative="1" as="geometry"> <mxPoint x="1079.38" y="850" as="sourcePoint" /> <mxPoint x="1079.38" y="960" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-94" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="<div><div>$$\text{numVotes}^{\text{new}}$$</div></div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-83" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="<div><div>$$\text{numVotes}^{\text{new}}$$</div></div>" vertex="1"> <mxGeometry height="40" width="120" x="620" y="960" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-95" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="<div><div>$$\text{numOverwrites}^{\text{new}}$$</div></div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-84" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="<div><div>$$\text{numOverwrites}^{\text{new}}$$</div></div>" vertex="1"> <mxGeometry height="40" width="120" x="480" y="960" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-96" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-85" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points" /> <mxPoint x="760" y="-130" as="sourcePoint" /> <mxPoint x="760" y="80" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-97" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div>$$\text{MTProofs}_i$$</div><div>(inclusion or non-inclusion)</div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-86" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div>$$\text{MTProofs}_i$$</div><div>(inclusion or non-inclusion)</div>" vertex="1"> <mxGeometry height="120" width="80" x="720" y="-200" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-98" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#647687;strokeColor=#314354;fontFamily=Courier New;align=left;fontColor=#ffffff;" value="<div align="left"><b>&nbsp;&nbsp; MISSING</b></div><div align="left"><b><br></b></div><div align="left">&nbsp;&nbsp; <b>1.</b> For <i>some</i> existing leafs, also reencrypt the votes.</div><div align="left">&nbsp;&nbsp; <b>2.</b> Data blobs.</div><div align="left">&nbsp;&nbsp; <b>3.</b> Add some details, like specifics of resultsAdd.</div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-87" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#647687;strokeColor=#314354;fontFamily=Courier New;align=left;fontColor=#ffffff;" value="<div align="left"><b>&nbsp;&nbsp; MISSING</b></div><div align="left"><b><br></b></div><div align="left">&nbsp;&nbsp; <b>1.</b> For <i>some</i> existing leafs, also reencrypt the votes.</div><div align="left">&nbsp;&nbsp; <b>2.</b> Data blobs.</div><div align="left">&nbsp;&nbsp; <b>3.</b> Add some details, like specifics of resultsAdd.</div>" vertex="1"> <mxGeometry height="150" width="380" x="-705" y="-330" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-99" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" value="AGGREGATION VERIFICATION" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-88" parent="r3nBc7xwnwC-NH75l-WN-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" value="AGGREGATION VERIFICATION" vertex="1"> <mxGeometry height="40" width="440" x="-580" y="1117.18" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-100" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-89" parent="r3nBc7xwnwC-NH75l-WN-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> <mxGeometry height="435" width="20" x="-367.82000000000005" y="880" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-101" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=11;" value="TRANSITION VERIFICATION" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-90" parent="r3nBc7xwnwC-NH75l-WN-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=11;" value="TRANSITION VERIFICATION" vertex="1"> <mxGeometry height="40" width="1120" x="280" y="1117.18" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-102" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-91" parent="r3nBc7xwnwC-NH75l-WN-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> <mxGeometry height="1127.5" width="20" x="828.75" y="533.75" as="geometry" /> </mxCell> - <mxCell id="VEDIWXK7rKS1DhhC90V1-0" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" value="CENSUS MEMBERSHIP" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-92" parent="r3nBc7xwnwC-NH75l-WN-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" value="CENSUS MEMBERSHIP" vertex="1"> <mxGeometry height="40" width="350" x="-110" y="1117.19" as="geometry" /> </mxCell> - <mxCell id="VEDIWXK7rKS1DhhC90V1-1" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-93" parent="r3nBc7xwnwC-NH75l-WN-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> <mxGeometry height="360.24" width="20" x="58.88" y="917.38" as="geometry" /> </mxCell> - <mxCell id="pnmM_wexEI5E3oBj83wp-6" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="UHoIRV_9THWay56M9Opq-0" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.163;entryY=0.002;entryDx=0;entryDy=0;entryPerimeter=0;" target="UHoIRV_9THWay56M9Opq-2" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-94" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" source="r3nBc7xwnwC-NH75l-WN-95" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.163;entryY=0.002;entryDx=0;entryDy=0;entryPerimeter=0;" target="r3nBc7xwnwC-NH75l-WN-98" value=""> <mxGeometry relative="1" as="geometry"> <mxPoint x="-70" y="-10" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="UHoIRV_9THWay56M9Opq-0" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{censusProof}_i$$" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-95" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{censusProof}_i$$" vertex="1"> <mxGeometry height="40" width="80" x="-110" y="-120" as="geometry" /> </mxCell> - <mxCell id="pnmM_wexEI5E3oBj83wp-4" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="UHoIRV_9THWay56M9Opq-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.431;entryY=-0.004;entryDx=0;entryDy=0;entryPerimeter=0;" target="UHoIRV_9THWay56M9Opq-2" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-96" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" source="r3nBc7xwnwC-NH75l-WN-97" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.431;entryY=-0.004;entryDx=0;entryDy=0;entryPerimeter=0;" target="r3nBc7xwnwC-NH75l-WN-98" value=""> <mxGeometry relative="1" as="geometry"> <mxPoint x="30" y="-10" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="UHoIRV_9THWay56M9Opq-1" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{censusRoot}$$" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-97" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{censusRoot}$$" vertex="1"> <mxGeometry height="40" width="80" x="-10" y="-120" as="geometry" /> </mxCell> - <mxCell id="UHoIRV_9THWay56M9Opq-2" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" value="<div>$$\text{MT.verify}((\text{weight, address}), \text{censusProof, censusRoot})$$</div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-98" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" value="<div>$$\text{MT.verify}((\text{weight, address}), \text{censusProof, censusRoot})$$</div>" vertex="1"> <mxGeometry height="220" width="370" x="-130" y="80" as="geometry" /> </mxCell> - <mxCell id="pnmM_wexEI5E3oBj83wp-9" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-42" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.346;entryY=-0.013;entryDx=0;entryDy=0;entryPerimeter=0;" target="ZHVPnpmu-zi4kkNDXHjC-63" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-99" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" source="r3nBc7xwnwC-NH75l-WN-100" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.346;entryY=-0.013;entryDx=0;entryDy=0;entryPerimeter=0;" target="r3nBc7xwnwC-NH75l-WN-53" value=""> <mxGeometry relative="1" as="geometry"> <mxPoint x="640" y="-30" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-42" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div>$$\text{processID}$$</div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-100" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div>$$\text{processID}$$</div>" vertex="1"> <mxGeometry height="40" width="80" x="600" y="-140" as="geometry" /> </mxCell> - <mxCell id="UHoIRV_9THWay56M9Opq-6" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-101" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points" /> <mxPoint x="400.40999999999997" y="-150" as="sourcePoint" /> <mxPoint x="400.40999999999997" y="80" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="UHoIRV_9THWay56M9Opq-3" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;fontStyle=0" value="$$\text{weight}_i$$" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-102" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;fontStyle=0" value="$$\text{weight}_i$$" vertex="1"> <mxGeometry height="40" width="80" x="360" y="-190" as="geometry" /> </mxCell> - <mxCell id="UHoIRV_9THWay56M9Opq-4" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{address}_i$$" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-103" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{address}_i$$" vertex="1"> <mxGeometry height="40" width="80" x="360" y="-140" as="geometry" /> </mxCell> - <mxCell id="UHoIRV_9THWay56M9Opq-10" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;startArrow=oval;startFill=1;" target="ZHVPnpmu-zi4kkNDXHjC-63" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-104" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;startArrow=oval;startFill=1;" target="r3nBc7xwnwC-NH75l-WN-53" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points"> <mxPoint x="360" />@@ -1095,54 +1100,40 @@ <mxPoint x="130" as="sourcePoint" />
<mxPoint x="360.00000000000045" y="40" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="UHoIRV_9THWay56M9Opq-8" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="<div>$$\text{censusOrigin}$$</div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-105" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="<div>$$\text{censusOrigin}$$</div>" vertex="1"> <mxGeometry height="40" width="80" x="90" y="-120" as="geometry" /> </mxCell> - <mxCell id="5hAzbrJOQIkqeWhDGd8Z-4" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-106" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" value=""> <mxGeometry relative="1" as="geometry"> <mxPoint x="129.74" y="-80" as="sourcePoint" /> <mxPoint x="129.74" y="80" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="pnmM_wexEI5E3oBj83wp-1" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="UHoIRV_9THWay56M9Opq-2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" target="pnmM_wexEI5E3oBj83wp-2" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-107" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" source="r3nBc7xwnwC-NH75l-WN-98" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" target="r3nBc7xwnwC-NH75l-WN-108" value=""> <mxGeometry relative="1" as="geometry"> <mxPoint x="30" y="310" as="sourcePoint" /> <mxPoint x="20" y="320" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="pnmM_wexEI5E3oBj83wp-2" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="true" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-108" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="true" vertex="1"> <mxGeometry height="40" width="80" x="15" y="959" as="geometry" /> </mxCell> - <mxCell id="UHoIRV_9THWay56M9Opq-7" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="endArrow=classic;html=1;rounded=0;startArrow=oval;startFill=1;jumpStyle=arc;" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-109" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" style="endArrow=classic;html=1;rounded=0;startArrow=oval;startFill=1;jumpStyle=arc;" value=""> <mxGeometry height="50" relative="1" width="50" as="geometry"> <Array as="points"> - <mxPoint x="320" y="-40" /> - <mxPoint x="320" y="40" /> + <mxPoint x="200" y="-30" /> <mxPoint x="200" y="40" /> </Array> - <mxPoint x="400" y="-40" as="sourcePoint" /> + <mxPoint x="400" y="-30" as="sourcePoint" /> <mxPoint x="200" y="80" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-28" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-7" style="endArrow=classic;html=1;rounded=0;entryX=0.75;entryY=0;entryDx=0;entryDy=0;startArrow=oval;startFill=1;jumpStyle=arc;exitX=0;exitY=0.5;exitDx=0;exitDy=0;" target="ZHVPnpmu-zi4kkNDXHjC-26" value=""> - <mxGeometry height="50" relative="1" width="50" as="geometry"> - <Array as="points"> - <mxPoint x="240" y="-195" /> - <mxPoint x="240" y="-40" /> - <mxPoint x="170" y="-40" /> - <mxPoint x="-80" y="-40" /> - <mxPoint x="-268" y="-40" /> - </Array> - <mxPoint x="320" y="-120" as="sourcePoint" /> - <mxPoint x="570" y="-110" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-49" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-50" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;jumpStyle=arc;" target="ZHVPnpmu-zi4kkNDXHjC-52" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-111" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" source="r3nBc7xwnwC-NH75l-WN-40" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;jumpStyle=arc;" target="r3nBc7xwnwC-NH75l-WN-42" value=""> <mxGeometry relative="1" as="geometry"> <mxPoint x="320" y="730" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-89" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-52" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;endArrow=none;startFill=0;endFill=1;" value=""> + <mxCell id="r3nBc7xwnwC-NH75l-WN-112" edge="1" parent="r3nBc7xwnwC-NH75l-WN-1" source="r3nBc7xwnwC-NH75l-WN-42" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;endArrow=none;startFill=0;endFill=1;" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points"> <mxPoint x="400" y="570" />@@ -1153,11 +1144,11 @@ <mxPoint x="-430" y="604.47" as="sourcePoint" />
<mxPoint x="200" y="510" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-90" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;" value="<div><div><div><div><div><div><div><div><div><div>$$k = \text{Hash}(k)$$</div></div></div></div></div></div></div></div><div><div><div></div></div></div></div></div>" vertex="1"> + <mxCell id="r3nBc7xwnwC-NH75l-WN-113" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;" value="<div><div><div><div><div><div><div><div><div><div>$$k = \text{Hash}(k)$$</div></div></div></div></div></div></div></div><div><div><div></div></div></div></div></div>" vertex="1"> <mxGeometry height="40" width="100" x="230" y="550" as="geometry" /> </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-35" parent="ZHVPnpmu-zi4kkNDXHjC-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=light-dark(#ffffff, #ededed);strokeWidth=2;" value="public inputs" vertex="1"> - <mxGeometry height="40" width="100" x="190" y="-120" as="geometry" /> + <mxCell id="r3nBc7xwnwC-NH75l-WN-114" parent="r3nBc7xwnwC-NH75l-WN-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=light-dark(#ffffff, #ededed);strokeWidth=2;" value="public inputs" vertex="1"> + <mxGeometry height="40" width="100" x="-318" y="-120" as="geometry" /> </mxCell> </root> </mxGraphModel>
@@ -1,23 +1,70 @@
% !TeX root = ../build/main.tex -The census defines the set of eligible voters and their associated voting weights. Throughout the protocol, the census is represented by a lean incremental Merkle tree of fixed depth, as defined in Section~\ref{sec:cryptographic-primitives:merkle-trees}, and denoted by $\hlset{\censusTree}$. Voters are inserted sequentially into the tree: each new eligible voter occupies the next available leaf, and that leaf stores both their Ethereum address (or another unique identifier) and their voting weight. While the default weight is one, the protocol also supports weighted voting, where different participants may have different voting power. +The census defines the set of eligible voters and their associated voting weights. At its core, a census is simply a dataset that, for each voter, contains a unique identifier (typically an Ethereum address), a voting weight, and a means to produce a membership proof that can be verified inside a \ac{ZK} circuit. \Davinci supports two mechanisms for generating such proofs: +\begin{itemize} + \item \textit{Credential-based membership proofs}: eligibility is certified by a digital signature issued by a \ac{CSP}. + \item \textit{Merkle-tree-based membership proofs}: the census is organized as a lean incremental Merkle tree (see Section~\ref{sec:cryptographic-primitives:merkle-trees}) and denoted by $\hlset{\censusTree}$. Each voter is assigned a sequential index in the tree, and their identifier and weight are stored in the corresponding leaf. Only the Merkle root is kept on-chain, and sequencers supply Merkle proofs to attest membership. +\end{itemize} % -To ensure verifiability, only a commitment to the census (the Merkle root) is required on-chain. During the voting period, sequencers provide Merkle membership proofs showing that voters addresses and weights are included in the committed census. These proofs are verified inside \ac{ZK} circuits, ensuring that eligibility checks occur privately. This approach provides a compact and scalable mechanism for attesting voter eligibility while keeping on-chain storage minimal. - -\Davinci does not prescribe how the census must be constructed. Organizers may derive it from internal membership lists (e.g., CSV files or databases), self-sovereign identity credentials, or Ethereum-based tokens (e.g., ERC-20 or NFTs) whose balances define eligibility. In token-based settings, the census may be built using an optimistic snapshot at a chosen block or via a \ac{ZK} proof that validates balances using Ethereum storage proofs. This flexibility allows the \davinci protocol to accommodate a wide range of use cases, from private associations to decentralized communities, while maintaining the same security and verifiability guarantees. - -In practice, the protocol distinguishes Merkle-tree-based census configurations according to their origin (off-chain or on-chain) and whether they are static or dynamic (i.e., allow adding new members during the voting period). Beyond these, \davinci also offers a credential-based census model in which eligibility is certified by a signature issued by a \ac{CSP} rather than a Merkle proof. To support all these configurations, the \hlget{\electionregistry} smart contract defines the following parameters: +To support different census models, the \hlget{\electionregistry} smart contract stores the following three parameters: \begin{itemize} - \item \censusorigin: the deployment model (off-chain static, off-chain dynamic, on-chain dynamic, or CSP). + \item \censusorigin: the deployment model (off-chain static, off-chain dynamic, on-chain dynamic, or \ac{CSP}). \item \censusuri: a \ac{URI} pointing to an external reference (URL, GraphQL endpoint, CDN path, IPFS/IPNS, etc.) from which sequencers can download or query the census data. - \item \censusroot: the on-chain commitment whose meaning depends on the census model (Merkle root, census contract address, or \ac{CSP}'s public key). + \item \censusroot: the on-chain commitment used for membership verification. Its interpretation depends on the type of census. In the \ac{CSP} model, this parameter corresponds to the \ac{CSP}’s public key, and in the case of Merkle trees, it corresponds to a Merkle root (off-chain static/dynamic) or a census contract address (on-chain dynamic). \end{itemize} -Below, we describe each census model. +% +Organizers are free to construct the census from various data sources, such as private membership registries, self-sovereign identity credentials, or Ethereum-based tokens (e.g. ERC-20 or NFTs) whose balances define eligibility. Token-based censuses may be built from an optimistic snapshot at a chosen block or via a ZK proof that validates balances using Ethereum storage proofs. This flexibility supports a broad range of use cases and governance scenarios. +% +The supported census models are summarized in Table~\ref{tab:census-models} and described in detail below. -\paragraph{Off-chain static census.} In this model, the organizer constructs a fixed census before the election begins. The incremental Merkle tree is built locally, its root is stored in \censusroot, and \censusuri provides a \ac{URI} from which sequencers can download the full tree. Since the census is static, no updates occur during the voting period. +\paragraph{Credential-based census.} Voter eligibility is certified by a digital signature issued by a \ac{CSP}. A voter obtains a signed credential from the \ac{CSP}, and sequencers verify the signature inside the \ac{ZK} circuits. In this case, \censusroot stores the \ac{CSP}’s public key, and \censusuri specifies the endpoint where voters obtain their credential. This model is suitable when eligibility is managed externally through attested identities rather than by maintaining a Merkle-tree dataset. -\paragraph{Off-chain dynamic census.} Here the Merkle tree remains off-chain, but the organizer may append new voters during the voting period (never deleting voters or modifying weights, as this would allow double voting). Each update produces a new Merkle root, which the organizer must publish to the \hlget{\electionregistry} contract by updating the parameter \censusroot. As in the off-chain static model, \censusuri provides a \ac{URI} from which sequencers can download the current version of the tree. Sequencers verify membership proofs against the most recently published root, ensuring consistency with the organizer’s commitment. +\paragraph{Off-chain static census.} The organizer constructs a fixed census prior to the election. The Merkle tree is built locally, its root is stored in \censusroot, and \censusuri specifies the endpoint from which sequencers can retrieve the full tree. Since the census is static, no updates occur during the voting period. -\paragraph{On-chain dynamic census.} In this configuration, the census is managed by a dedicated on-chain contract (\hlget{\censusmanagement}) that allows adding new members during the voting period. The address of this contract is stored in \censusroot, while \censusuri points to an external representation of the tree (e.g., a GraphQL endpoint or CDN). The \hlget{\censusmanagement} contract maintains a history of valid Merkle roots. Sequencers may therefore use membership proofs referencing older roots, and during state transitions the \hlget{\electionregistry} contract queries the \hlget{\censusmanagement} contract to verify that the root used in the proof is recognized as valid. As in all dynamic models, only additions to the census are permitted. +\paragraph{Off-chain dynamic census.} The Merkle tree remains off-chain, but the organizer may append new voters during the voting period (never deleting voters or modifying weights, as this would enable double voting). Each new insertion produces a new Merkle root, which the organizer must publish to the \hlget{\electionregistry} contract by updating the \censusroot parameter. As in the static model, GraphQL provides the endpoint from which sequencers download the current version of the tree. Sequencers verify membership proofs against the most recently published root. -\paragraph{Credential service providers.} This model replaces the Merkle-tree-based census with eligibility credentials issued by a trusted entity. Instead of a Merkle proof, the voter presents a digital signature from a \ac{CSP} attesting to their membership. In this case, \censusroot stores the \ac{CSP}’s public key, and \censusuri specifies the endpoint where voters can obtain their credential. Sequencers verify eligibility by checking the \ac{CSP} signature directly. This model applies when eligibility is managed externally through attested identities.+\paragraph{On-chain dynamic census.} In this configuration, the census is managed by a dedicated on-chain contract (\hlget{\censusmanagement}) that supports adding new members during the voting period. The address of this contract is stored in \censusroot, while \censusuri points to an external representation of the tree (e.g., a GraphQL endpoint). The \hlget{\censusmanagement} contract maintains a history of valid Merkle roots. Sequencers may therefore generate membership proofs using older roots, and during state transitions the \hlget{\electionregistry} contract queries the \hlget{\censusmanagement} contract to verify that the root used in the proof is still valid. As in all dynamic models, only additions to the census are permitted during the voting period. + +\begin{table}[H] + \centering + \renewcommand{\arraystretch}{1.25} + \begin{tabular}{|P{1.6cm}|P{2.1cm}|P{3.3cm}|P{4.1cm}|P{4.8cm}|} + + \hline + \multicolumn{2}{|c|}{\censusorigin} & + \censusuri & + \censusroot & + Membership proof \\ + \hline + + \multicolumn{2}{|P{3.5cm}|}{Credential service provider (CSP)} + & \multirow{2}{*}{CSP's public key} + & Endpoint to obtain an eligibility credential + & \multirow{2}{*}{Digital signature verification}\\ + \hline + + \multirow{4}{*}{Off-chain} + & \multirow{2}{*}{\centering Static} + & \multirow{2}{*}{Fixed Merkle root} + & Endpoint to obtain the census tree + & Merkle proof verified against the Merkle root \\ + \cline{2-5} + + & \centering Dynamic (add-only) + & \multirow{2}{*}{Latest Merkle root} + & Endpoint to obtain the latest version of the tree + & Merkle proof verified against the latest Merkle root\\ + \hline + + \multirow{2}{*}{On-chain} + & \centering Dynamic (add-only) + & \censusmanagement contract address + & Endpoint to obtain the latest version of the tree + & Merkle proof verified against most recent roots \\ + \hline + + \end{tabular} + \vspace{0.5cm} + \caption{Summary of census configurations supported by the \davinci protocol.} + \label{tab:census-models} +\end{table}
@@ -218,18 +218,21 @@
\subsubsection{Results circuit} \label{sec:vocdoni-protocol:circuits:results} -\begin{figure}[h] - \centerline{\includegraphics[width=400pt,draft=false]{\figs/circuit5.pdf}} - \caption{Results circuit. All public values are framed in green. {\color{red}The figure is not right.}} - \label{fig:circuit-results} -\end{figure} - %%% STATE-TRANSITION CIRCUIT \begin{landscape} - %\thispagestyle{empty} % removes the page number - \begin{figure}[H] - \centerline{\includegraphics[width=700pt,draft=false]{\figs/circuit4.pdf}} - \caption{State transition circuit. All public values are framed in green.} - \label{fig:circuit-state-transition-v2} - \end{figure} + \centering + {\setkeys{Gin}{draft=false}%shows image even in draft mode + \includegraphics[width=\linewidth]{\figs/circuit4.pdf}} + \captionof{figure}{State transition circuit. All public values are framed in green.} + \label{fig:circuit-state-transition-v2} \end{landscape} + +%\begin{landscape} +%% %\thispagestyle{empty} % removes the page number +% \begin{figure}[H] +% \centerline{\includegraphics[width=700pt,draft=false]{\figs/circuit4.pdf}} +% \captionof{figure}{State transition circuit. All public values are framed in green.} +% \caption{State transition circuit. All public values are framed in green.} +% \label{fig:circuit-state-transition-v2} +% \end{figure} +%\end{landscape}
@@ -15,7 +15,7 @@
\subsection{Elliptic curves} \label{sec:cryptographic-primitives:elliptic-curves} -\Davinci relies on multiple elliptic curves to ensure interoperability with Ethereum, compatibility with available cryptographic primitives, and efficient in-circuit operations. On the one hand, SECP256K1~\cite{brown2010sec} is used because Ethereum public keys are elements of this curve. As \Davinci assumes each voter holds a standard Ethereum address, cryptographic operations such as digital signatures and identity verification rely on SECP256K1 to match the Ethereum ecosystem. On the other hand, BN254~\cite{jancar2020bn256} is chosen because it is the curve supported by Ethereum's precompiled contracts for ZK proof verification, which makes it the optimal choice for verifying SNARK proofs on-chain with minimal gas cost. Then, BabyJubjub~\cite{belles2021twisted} is used as an inner curve for elliptic curve operations within arithmetic circuits. Finally, BLS12-377~\cite{bowe2020zexe} and BW6-761~\cite{elhousni2020optimized} are used to enable recursive proof composition. More specifically, BLS12-377 acts as the inner curve for constructing proofs, while BW6-761 serves as the outer curve that verifies those proofs within larger ZK-SNARK circuits. This pairing enables succinct verification and composability of ZK-SNARKs within other ZK-SNARKs, which we use for \davinci’s aggregation and state transition logic. Below, we give the details of these curves. +\Davinci relies on multiple elliptic curves to ensure interoperability with Ethereum, compatibility with available cryptographic primitives, and efficient in-circuit operations. On the one hand, SECP256K1~\cite{brown2010sec} is used because Ethereum public keys are elements of this curve. As \Davinci assumes each voter holds a standard Ethereum address, cryptographic operations such as digital signatures and identity verification rely on SECP256K1 to match the Ethereum ecosystem. On the other hand, BN254~\cite{wood2014ethereum} is chosen because it is the curve supported by Ethereum's precompiled contracts for ZK proof verification, which makes it the optimal choice for verifying SNARK proofs on-chain with minimal gas cost. Then, BabyJubjub~\cite{belles2021twisted} is used as an inner curve for elliptic curve operations within arithmetic circuits. Finally, BLS12-377~\cite{bowe2020zexe} and BW6-761~\cite{elhousni2020optimized} are used to enable recursive proof composition. More specifically, BLS12-377 acts as the inner curve for constructing proofs, while BW6-761 serves as the outer curve that verifies those proofs within larger ZK-SNARK circuits. This pairing enables succinct verification and composability of ZK-SNARKs within other ZK-SNARKs, which we use for \davinci’s aggregation and state transition logic. Below, we give the details of these curves. \paragraph{Parameters.}@@ -24,9 +24,9 @@ %
\item[$\bullet$] $p = \tt{\hspace{0.04cm}0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f}$ (256-bit prime). \item[$\bullet$] $q = \tt{\hspace{0.01cm}0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141}$ (256-bit prime). % - \item[$\bullet$] $r = \tt{0x2523648240000001ba344d80000000086121000000000013a700000000000013}$ (254-bit prime). - \item[$\bullet$] $s = \tt{\hspace{0.04cm}0x2523648240000001ba344d8000000007ff9f800000000010a10000000000000d}$ (254-bit prime). - \item[$\bullet$] $t = \tt{\hspace{0.01cm}0x60c89ce5c263405370a08b6d0302b0bab3eedb83920ee0a677297dc392126f1}$ (251-bit prime). + \item[$\bullet$] $r = \tt{0x30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47}$ (254-bit prime). + \item[$\bullet$] $s = \tt{\hspace{0.03cm}0x30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001}$ (254-bit prime). + \item[$\bullet$] $t = \tt{\hspace{0.07cm}0x60c89ce5c263405370a08b6d0302b0bab3eedb83920ee0a677297dc392126f1}$ (251-bit prime). % \item[$\bullet$] $u = \tt{0x122e824fb83ce0ad187c94004faff3eb926186a81d14688528275ef8087be41707ba638e584e9190}$ \item[] \hspace{0.53cm} $\tt{3cebaff25b423048689c8ed12f9fd9071dcd3dc73ebff2e98a116c25667a8f8160cf8aeeaf0a437e69}$
@@ -2,7 +2,6 @@ % !TeX root = ../build/main.tex
% \noi Merkle trees are used to create a cryptographic representation of both the voter census registry and the election state. - The state Merkle tree, denoted by $\hlset{\stateTree}$, represents the evolving state of the election. It is implemented as a \ac{SMT} of fixed depth, as described in Section~\ref{sec:cryptographic-primitives:merkle-trees}, and is dynamic: it is updated throughout the election as new votes are cast, validated, and incorporated by the sequencers. The leaves of the state tree store the global election parameters, the encrypted ballots, and the set of vote identifiers, as illustrated in Figure~\ref{fig:mt-state} and described below. \paragraph{Reserved addresses for metadata.} The first six addresses are reserved for the process parameters as follows: