arnaucube
arnaucube/davinci-paperPublic Self-hosted repository
fix circuits, notation, and new temporary appendix with circuits info
bellesmarta belles.mm@gmail.com
Wed, 14 May 2025 17:41:53 +0200
commit

7eb2096710d5a35a064658013c874f49e6d93b19

parent

3ff4eb6be2d55e747d4cd106fec5bd2682537fce

M v2/bibliography/bibtex.bib → v2/bibliography/bibtex.bib

@@ -5,7 +5,7 @@ url = {http://www.bitcoin.org/bitcoin.pdf},

year = 2009 } -@inproceedings{grassi2021poseidon, +@inproceedings{grassi21poseidon, title={Poseidon: A New Hash Function for Zero-Knowledge Proof Systems}, author={Grassi, Lorenzo and Khovratovich, Dmitry and Rechberger, Christian and Roy, Arnab and Schofnegger, Markus}, booktitle={30th USENIX Security Symposium (USENIX Security 21)},
M v2/build/main.tex → v2/build/main.tex

@@ -22,7 +22,7 @@ \thispagestyle{plain}

\addcontentsline{toc}{section}{\protect\numberline{}Abstract} \begin{abstract} - \Davinci is the evolution of the Vocdoni voting protocol, designed to empower civil society by providing essential tools for secure, verifiable, and anonymous digital voting. Leveraging recent advancements in zero-knowledge (ZK) proof systems and blockchain technology, \davinci transitions to a specialized ZK-rollup system that inherits network security from settlement layers like Ethereum mainnet. The system relies on cryptographic proofs to ensure integrity and security, eliminating the need for centralized authorities. By integrating ZK-SNARKs and threshold homomorphic encryption, \davinci enables end-to-end verifiability, privacy, and trustlessness in the voting process. The protocol employs a distributed key generation among sequencers, coordinated via Ethereum smart contracts, and utilizes Ethereum data blobs for data availability. With a focus on accessibility, scalability, receipt-freeness, and automation, \davinci aims to facilitate high-frequency, low-cost voting, fostering mass adoption of e-voting and simplifying civil participation. Finally, the introduction of the Vocdoni token (VOC) aligns incentives among participants, ensuring the system's sustainability and enabling decentralized governance. + \Davinci is the evolution of the Vocdoni voting protocol, designed to empower civil society by providing essential tools for secure, verifiable, and anonymous digital voting. Leveraging recent advancements in zero-knowledge (ZK) proof systems and blockchain technology, \davinci transitions to a specialized ZK-rollup system that inherits network security from settlement layers like Ethereum mainnet. The system relies on cryptographic proofs to ensure integrity and security, eliminating the need for centralized authorities. By integrating ZK-SNARKs and threshold homomorphic encryption, \davinci enables end-to-end verifiability, privacy, and trustlessness in the voting process. The protocol employs a distributed key generation among sequencers, coordinated via Ethereum smart contracts, and utilizes Ethereum data blobs for data availability. With a focus on accessibility, scalability, receipt-freeness, and automation, \davinci aims to facilitate high-frequency, low-cost voting, fostering mass adoption of e-voting and simplifying civil participation. Finally, the introduction of the Vocdoni token (\token) aligns incentives among participants, ensuring the system's sustainability and enabling decentralized governance. Moreover, the design of \davinci is grounded in practicality; all components have been implemented using current technologies and have undergone proof-of-concept testing. This ensures that the proposed architecture is not merely theoretical but a viable solution ready for short-term deployment.

@@ -32,6 +32,8 @@

\martai{Change Vocdoni to DAVINCI.} \martai{We should decide which kind of document we want: an specification (e.g. include technical details such as the sets each element belongs to), a whitepaper (e.g. include the vision and mission), or an academic paper (e.g. include an extensive state of the art section).} + +\martai{Mention that the spec can be tailored to the needs of the specific vote. So, here we present some default configuration, but some of the pieces can be changed (specially the cryptographic schemes or curves). For this reason, we tried to make this document modular (like the code), to facilitate the changes and the analysis of the consequences.} \setcounter{tocdepth}{3} \makeatletter

@@ -92,5 +94,11 @@ % ---- Bibliography ----

\bibliographystyle{splncs04} \bibliography{\bib/bibtex} + +% ---- Temporary section: circuit details ---- + +\newpage +\section*{Temporary appendix} +\input{\secs/tmp} \end{document}
M v2/build/preamble-macros.tex → v2/build/preamble-macros.tex

@@ -68,6 +68,10 @@ \newcommand{\BW}[1]{\ensuremath{{#1}^{\text{\tiny \sf BW}}}\xspace}

\newcommand{\BLS}[1]{\ensuremath{{#1}^{\text{\tiny \sf BLS}}}\xspace} \newcommand{\BN}[1]{\ensuremath{{#1}^{\text{\tiny \sf BN}}}\xspace} +% Circuits +\newcommand{\public}{{\sf\color{teal}public}\xspace} +\newcommand{\private}{{\sf\color{red}private}\xspace} + % Ballot protocol \newcommand{\ballotstyle}[1]{\texttt{#1}\xspace} \newcommand{\maxcount}{\ballotstyle{maxCount}}

@@ -88,6 +92,7 @@ \newcommand{\nullifier}{\variablestyle{nullifier}}

\newcommand{\encryptedballot}{\variablestyle{encryptedBallot}} \newcommand{\zkproof}{\variablestyle{ZKproof}} \newcommand{\signature}{\variablestyle{signature}} +\newcommand{\address}{\variablestyle{address}} % State Merkle tree \newcommand{\censusroot}{\variablestyle{censusRoot}}

@@ -98,7 +103,7 @@ \newcommand{\addaccumulator}{\variablestyle{addedResultsAccumulator}}

\newcommand{\substractaccumulator}{\variablestyle{substractResultsAccumulator}} \newcommand{\addresses}{\variablestyle{addresses}} \newcommand{\nullifiers}{\variablestyle{nullifiers}} - +\newcommand{\weight}{\variablestyle{weight}} % Others \newcommand{\noi}{\noindent}

@@ -110,6 +115,7 @@ \newcommand{\hlget}[1]{\hyperlink{\detokenize{#1}}{#1}}

% Cryptographic primitives \newcommand{\methodstyle}[1]{{\sf{#1}}\xspace} +\newcommand{\Hash}{\methodstyle{Hash}} \newcommand{\Enc}{\methodstyle{Enc}} \newcommand{\Dec}{\methodstyle{Dec}} \newcommand{\GenerateShares}{\methodstyle{GenerateShares}}

@@ -125,8 +131,8 @@ \newcommand{\enc}[1][]{{\sf{ciphertext}^{#1}}}

\newcommand{\sample}{\xleftarrow{\$}} % VOC token +\newcommand{\token}{VOC\xspace} \newcommand{\vocstyle}[1]{{\sf{#1}}\xspace} - \newcommand{\baseCost}{\vocstyle{baseCost}} \newcommand{\capacityCost}{\vocstyle{capacityCost}} \newcommand{\durationCost}{\vocstyle{durationCost}}
D v2/figures/authenticate-circuit.drawio

@@ -1,217 +0,0 @@

-<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" version="25.0.1"> - <diagram name="Copy of Copy of Copy of Page-1" id="FocDNK0yRkmTtnVSRizj"> - <mxGraphModel dx="1687" dy="886" 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="U726NmcKOxkLk4yX-4My-0" /> - <mxCell id="U726NmcKOxkLk4yX-4My-1" parent="U726NmcKOxkLk4yX-4My-0" /> - <mxCell id="-n0zQNNrxNN8dLtkatG7-26" value="&lt;div&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="150" y="39.88" width="1270" height="590.12" as="geometry" /> - </mxCell> - <mxCell id="-n0zQNNrxNN8dLtkatG7-0" value="&lt;div&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="180" y="139.88" width="1210" height="390.12" as="geometry" /> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-2" value="$$\text{Proof.verify}(\text{vote proof, public inputs})$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="200" y="390" width="200" height="40" as="geometry" /> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-3" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.25;entryY=0;entryDx=0;entryDy=0;fontSize=11;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-5" target="U726NmcKOxkLk4yX-4My-2"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="229.89" y="150" as="sourcePoint" /> - <mxPoint x="229.89" y="200" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-4" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-2" target="U726NmcKOxkLk4yX-4My-7"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="299.58" y="340" as="sourcePoint" /> - <mxPoint x="300" y="820" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-5" value="&lt;div style=&quot;font-size: 11px;&quot;&gt;$$\text{vote proof}$$&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="220" y="70" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-6" value="&lt;div&gt;$$\text{processID}$$&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="340" y="70" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-7" value="&lt;div&gt;$$\text{bool}$$&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="270" y="560" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-8" value="config" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="410" y="70" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-9" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="480" y="70" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-10" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;fontSize=11;startArrow=oval;startFill=1;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" target="U726NmcKOxkLk4yX-4My-2"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="630" y="350" as="sourcePoint" /> - <mxPoint x="830" y="319" as="targetPoint" /> - <Array as="points"> - <mxPoint x="350" y="350" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-11" value="$$N$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="620" y="70" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-12" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" target="U726NmcKOxkLk4yX-4My-24"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="630" y="320" as="sourcePoint" /> - <mxPoint x="630" y="530" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-13" value="$$\text{bool}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="1240" y="560" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-14" value="$$(C_1, C_2)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="550" y="70" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-15" value="$$C$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="690" y="70" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-16" value="$$\text{weight}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="760" y="70" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-17" value="$$\text{public inputs}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="540" y="280" width="180" height="40" as="geometry" /> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-18" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.23;entryY=-0.003;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-19" target="U726NmcKOxkLk4yX-4My-17"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="580" y="280" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-19" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="570.91" y="-87.65" width="21.21" height="419.25" as="geometry" /> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-20" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-21" target="U726NmcKOxkLk4yX-4My-23"> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-21" value="$$pk$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="1120" y="70" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-23" value="$$\text{Hash}(pk)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="1110" y="190" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-24" value="$$\text{Hash}(\text{public inputs})$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="540" y="385" width="180" height="40" as="geometry" /> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-26" value="$$\text{MT proof}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="860" y="70" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-27" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.702;entryY=0.009;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-28" target="U726NmcKOxkLk4yX-4My-32"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1310" y="480" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-28" value="$$\text{signature}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="1280" y="70" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-29" value="$$\text{MT root}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="930" y="70" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-30" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.31;entryY=0.025;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-24" target="U726NmcKOxkLk4yX-4My-32"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="870" y="250" as="sourcePoint" /> - <mxPoint x="940" y="480" as="targetPoint" /> - <Array as="points"> - <mxPoint x="630" y="450" /> - <mxPoint x="1232" y="450" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-31" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-32" target="U726NmcKOxkLk4yX-4My-13"> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-32" value="$$\text{Signature.verify}()$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="1170" y="470" width="200" height="40" as="geometry" /> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-33" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;startArrow=oval;startFill=1;" edge="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1150" y="160" as="sourcePoint" /> - <mxPoint x="1270" y="470" as="targetPoint" /> - <Array as="points"> - <mxPoint x="1270" y="160" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-34" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;startArrow=oval;startFill=1;jumpStyle=arc;entryX=0.797;entryY=0.02;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" target="Alor29dF2PIa9BzgdgEN-0"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1000" y="250" as="sourcePoint" /> - <mxPoint x="1420" y="320" as="targetPoint" /> - <Array as="points"> - <mxPoint x="1000" y="290" /> - <mxPoint x="999" y="290" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="Alor29dF2PIa9BzgdgEN-5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="Alor29dF2PIa9BzgdgEN-0" target="Alor29dF2PIa9BzgdgEN-4"> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="Alor29dF2PIa9BzgdgEN-0" value="&lt;div&gt;$$\text{MT.verify}()$$&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="840" y="320" width="200" height="40" as="geometry" /> - </mxCell> - <mxCell id="Alor29dF2PIa9BzgdgEN-1" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;exitPerimeter=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-19"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="789.58" y="160" as="sourcePoint" /> - <mxPoint x="870" y="320" as="targetPoint" /> - <Array as="points"> - <mxPoint x="791" y="280" /> - <mxPoint x="870" y="280" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="Alor29dF2PIa9BzgdgEN-2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-26"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="890" y="320" as="targetPoint" /> - <mxPoint x="889.71" y="120" as="sourcePoint" /> - </mxGeometry> - </mxCell> - <mxCell id="Alor29dF2PIa9BzgdgEN-3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-29"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="959.9" y="320" as="targetPoint" /> - <mxPoint x="959.61" y="120" as="sourcePoint" /> - </mxGeometry> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-22" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.82;entryY=0.005;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryPerimeter=0;jumpStyle=arc;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-25" target="U726NmcKOxkLk4yX-4My-17"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="880" y="280" as="targetPoint" /> - <Array as="points"> - <mxPoint x="688" y="250" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="Alor29dF2PIa9BzgdgEN-4" value="$$\text{bool}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="910" y="560" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="-n0zQNNrxNN8dLtkatG7-10" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.82;entryY=0.005;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryPerimeter=0;jumpStyle=arc;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-23" target="U726NmcKOxkLk4yX-4My-25"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1150" y="230" as="sourcePoint" /> - <mxPoint x="688" y="280" as="targetPoint" /> - <Array as="points"> - <mxPoint x="1150" y="250" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-25" value="$$\text{address}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=default;strokeColor=none;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="1040" y="230" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="-n0zQNNrxNN8dLtkatG7-13" value="VOTER&#39;S PROOF VERIFICATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="200" y="660.63" width="560" height="40" as="geometry" /> - </mxCell> - <mxCell id="-n0zQNNrxNN8dLtkatG7-14" value="CENSUS MEMBERSHIP" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#f8cecc;strokeColor=#b85450;fontSize=11;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="800" y="660.63" width="307.19" height="40" as="geometry" /> - </mxCell> - <mxCell id="-n0zQNNrxNN8dLtkatG7-15" value="AUTHENTICATION + NON-MALLEABILITY" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=11;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="1150" y="660.63" width="230" height="40" as="geometry" /> - </mxCell> - <mxCell id="-n0zQNNrxNN8dLtkatG7-19" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="470" y="370" width="20" height="561.25" as="geometry" /> - </mxCell> - <mxCell id="-n0zQNNrxNN8dLtkatG7-20" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="942.19" y="497.20000000000005" width="20" height="306.87" as="geometry" /> - </mxCell> - <mxCell id="-n0zQNNrxNN8dLtkatG7-21" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> - <mxGeometry x="1254.19" y="531.88" width="20" height="237.5" as="geometry" /> - </mxCell> - </root> - </mxGraphModel> - </diagram> -</mxfile>
M v2/figures/circuits.drawio → v2/figures/circuits.drawio

@@ -1,6 +1,6 @@

-<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" version="25.0.1" pages="4"> +<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0" version="27.0.5" pages="4"> <diagram id="-JAmnd0uZNJ1_gcuKymy" name="1. voter-circuit"> - <mxGraphModel dx="1434" dy="753" 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"> + <mxGraphModel dx="1106" dy="661" 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="0" /> <mxCell id="1" parent="0" />

@@ -37,7 +37,7 @@ <mxPoint x="299.58" y="230" as="sourcePoint" />

<mxPoint x="300" y="710" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="EW1sCxBa3IzSmhOEwzda-8" value="&lt;div style=&quot;font-size: 11px;&quot;&gt;$$\text{address}$$&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> + <mxCell id="EW1sCxBa3IzSmhOEwzda-8" value="&lt;div style=&quot;font-size: 11px;&quot;&gt;$$\text{address}$$&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="1" vertex="1"> <mxGeometry x="200" y="80" width="60" height="40" as="geometry" /> </mxCell> <mxCell id="EW1sCxBa3IzSmhOEwzda-9" value="$$\text{processID}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1">

@@ -49,13 +49,13 @@ </mxCell>

<mxCell id="EW1sCxBa3IzSmhOEwzda-11" value="$$C$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> <mxGeometry x="270" y="390" width="60" height="40" as="geometry" /> </mxCell> - <mxCell id="EW1sCxBa3IzSmhOEwzda-12" value="$$\text{protocolRulesCompliance}(\text{config}, m)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" parent="1" vertex="1"> + <mxCell id="EW1sCxBa3IzSmhOEwzda-12" value="$$\text{protocolRulesCompliance}(\text{ballotMode}, \text{ballot})$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" parent="1" vertex="1"> <mxGeometry x="520" y="190" width="240" height="40" as="geometry" /> </mxCell> <mxCell id="EW1sCxBa3IzSmhOEwzda-13" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="1" source="EW1sCxBa3IzSmhOEwzda-14" target="EW1sCxBa3IzSmhOEwzda-12" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> - <mxCell id="EW1sCxBa3IzSmhOEwzda-14" value="config" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> + <mxCell id="EW1sCxBa3IzSmhOEwzda-14" value="$$\text{ballotMode}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> <mxGeometry x="550" y="80" width="60" height="40" as="geometry" /> </mxCell> <mxCell id="EW1sCxBa3IzSmhOEwzda-15" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.165;entryY=-0.015;entryDx=0;entryDy=0;entryPerimeter=0;startArrow=oval;startFill=1;fontSize=11;fontFamily=Courier New;" parent="1" target="EW1sCxBa3IzSmhOEwzda-22" edge="1">

@@ -70,7 +70,7 @@ </mxCell>

<mxCell id="EW1sCxBa3IzSmhOEwzda-16" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="1" source="EW1sCxBa3IzSmhOEwzda-17" target="EW1sCxBa3IzSmhOEwzda-12" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> - <mxCell id="EW1sCxBa3IzSmhOEwzda-17" value="$$m$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="1" vertex="1"> + <mxCell id="EW1sCxBa3IzSmhOEwzda-17" value="$$\text{ballot}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="1" vertex="1"> <mxGeometry x="670" y="80" width="60" height="40" as="geometry" /> </mxCell> <mxCell id="EW1sCxBa3IzSmhOEwzda-18" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.445;entryY=0.014;entryDx=0;entryDy=0;entryPerimeter=0;fontSize=11;fontFamily=Courier New;" parent="1" source="EW1sCxBa3IzSmhOEwzda-19" target="EW1sCxBa3IzSmhOEwzda-22" edge="1">

@@ -85,7 +85,7 @@ </mxCell>

<mxCell id="EW1sCxBa3IzSmhOEwzda-21" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> <mxGeometry x="900" y="80" width="60" height="40" as="geometry" /> </mxCell> - <mxCell id="EW1sCxBa3IzSmhOEwzda-22" value="$$\text{Enc}_{EPK}(m, k)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" parent="1" vertex="1"> + <mxCell id="EW1sCxBa3IzSmhOEwzda-22" value="$$\text{Enc}_{EPK}(\text{ballot}, k)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" parent="1" vertex="1"> <mxGeometry x="780" y="190" width="180" height="40" as="geometry" /> </mxCell> <mxCell id="EW1sCxBa3IzSmhOEwzda-23" value="$$\text{Hash}(C || s)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1">

@@ -158,47 +158,47 @@ </root>

</mxGraphModel> </diagram> <diagram name="2. authentication-circuit" id="FocDNK0yRkmTtnVSRizj"> - <mxGraphModel dx="1593" dy="837" 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"> + <mxGraphModel dx="1301" dy="778" 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="U726NmcKOxkLk4yX-4My-0" /> <mxCell id="U726NmcKOxkLk4yX-4My-1" parent="U726NmcKOxkLk4yX-4My-0" /> - <mxCell id="-n0zQNNrxNN8dLtkatG7-26" value="&lt;div&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="-n0zQNNrxNN8dLtkatG7-26" value="&lt;div&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="150" y="39.88" width="1270" height="590.12" as="geometry" /> </mxCell> - <mxCell id="-n0zQNNrxNN8dLtkatG7-0" value="&lt;div&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="-n0zQNNrxNN8dLtkatG7-0" value="&lt;div&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="180" y="139.88" width="1210" height="390.12" as="geometry" /> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-2" value="$$\text{Proof.verify}(\text{vote proof, public inputs})$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="U726NmcKOxkLk4yX-4My-2" value="$$\text{Proof.verify}(\text{vote proof, public inputs})$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="200" y="390" width="200" height="40" as="geometry" /> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-3" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.25;entryY=0;entryDx=0;entryDy=0;fontSize=11;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-5" target="U726NmcKOxkLk4yX-4My-2"> + <mxCell id="U726NmcKOxkLk4yX-4My-3" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.25;entryY=0;entryDx=0;entryDy=0;fontSize=11;" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-5" target="U726NmcKOxkLk4yX-4My-2" edge="1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="229.89" y="150" as="sourcePoint" /> <mxPoint x="229.89" y="200" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-4" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-2" target="U726NmcKOxkLk4yX-4My-7"> + <mxCell id="U726NmcKOxkLk4yX-4My-4" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-2" target="U726NmcKOxkLk4yX-4My-7" edge="1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="299.58" y="340" as="sourcePoint" /> <mxPoint x="300" y="820" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-5" value="&lt;div style=&quot;font-size: 11px;&quot;&gt;$$\text{vote proof}$$&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="U726NmcKOxkLk4yX-4My-5" value="&lt;div style=&quot;font-size: 11px;&quot;&gt;$$\text{vote proof}$$&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="220" y="70" width="60" height="40" as="geometry" /> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-6" value="&lt;div&gt;$$\text{processID}$$&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="U726NmcKOxkLk4yX-4My-6" value="&lt;div&gt;$$\text{processID}$$&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="340" y="70" width="60" height="40" as="geometry" /> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-7" value="&lt;div&gt;$$\text{bool}$$&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="U726NmcKOxkLk4yX-4My-7" value="&lt;div&gt;$$\text{bool}$$&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="270" y="560" width="60" height="40" as="geometry" /> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-8" value="config" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="U726NmcKOxkLk4yX-4My-8" value="$$\text{ballotMode}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="410" y="70" width="60" height="40" as="geometry" /> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-9" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="U726NmcKOxkLk4yX-4My-9" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="480" y="70" width="60" height="40" as="geometry" /> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-10" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;fontSize=11;startArrow=oval;startFill=1;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" target="U726NmcKOxkLk4yX-4My-2"> + <mxCell id="U726NmcKOxkLk4yX-4My-10" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;fontSize=11;startArrow=oval;startFill=1;" parent="U726NmcKOxkLk4yX-4My-1" target="U726NmcKOxkLk4yX-4My-2" edge="1"> <mxGeometry relative="1" as="geometry"> <mxPoint x="630" y="350" as="sourcePoint" /> <mxPoint x="830" y="319" as="targetPoint" />

@@ -207,65 +207,65 @@ <mxPoint x="350" y="350" />

</Array> </mxGeometry> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-11" value="$$N$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="U726NmcKOxkLk4yX-4My-11" value="$$N$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="620" y="70" width="60" height="40" as="geometry" /> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-12" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" target="U726NmcKOxkLk4yX-4My-24"> + <mxCell id="U726NmcKOxkLk4yX-4My-12" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="U726NmcKOxkLk4yX-4My-1" target="U726NmcKOxkLk4yX-4My-24" edge="1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="630" y="320" as="sourcePoint" /> <mxPoint x="630" y="530" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-13" value="$$\text{bool}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="U726NmcKOxkLk4yX-4My-13" value="$$\text{bool}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="1240" y="560" width="60" height="40" as="geometry" /> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-14" value="$$(C_1, C_2)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="U726NmcKOxkLk4yX-4My-14" value="$$(C_1, C_2)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="550" y="70" width="60" height="40" as="geometry" /> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-15" value="$$C$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="U726NmcKOxkLk4yX-4My-15" value="$$C$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="690" y="70" width="60" height="40" as="geometry" /> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-16" value="$$\text{weight}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="U726NmcKOxkLk4yX-4My-16" value="$$\text{weight}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="760" y="70" width="60" height="40" as="geometry" /> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-17" value="$$\text{public inputs}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="U726NmcKOxkLk4yX-4My-17" value="$$\text{public inputs}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="540" y="280" width="180" height="40" as="geometry" /> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-18" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.23;entryY=-0.003;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-19" target="U726NmcKOxkLk4yX-4My-17"> + <mxCell id="U726NmcKOxkLk4yX-4My-18" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.23;entryY=-0.003;entryDx=0;entryDy=0;entryPerimeter=0;" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-19" target="U726NmcKOxkLk4yX-4My-17" edge="1"> <mxGeometry relative="1" as="geometry"> <mxPoint x="580" y="280" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-19" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="U726NmcKOxkLk4yX-4My-19" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="570.91" y="-87.65" width="21.21" height="419.25" as="geometry" /> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-20" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-21" target="U726NmcKOxkLk4yX-4My-23"> + <mxCell id="U726NmcKOxkLk4yX-4My-20" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-21" target="U726NmcKOxkLk4yX-4My-23" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-21" value="$$pk$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="U726NmcKOxkLk4yX-4My-21" value="$$pk$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="1120" y="70" width="60" height="40" as="geometry" /> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-23" value="$$\text{Hash}(pk)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="U726NmcKOxkLk4yX-4My-23" value="$$\text{Hash}(pk)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="1110" y="190" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-24" value="$$\text{Hash}(\text{public inputs})$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="U726NmcKOxkLk4yX-4My-24" value="$$\text{Hash}(\text{public inputs})$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="540" y="385" width="180" height="40" as="geometry" /> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-26" value="$$\text{MT proof}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="U726NmcKOxkLk4yX-4My-26" value="$$\text{censusProof}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="860" y="70" width="60" height="40" as="geometry" /> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-27" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.702;entryY=0.009;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-28" target="U726NmcKOxkLk4yX-4My-32"> + <mxCell id="U726NmcKOxkLk4yX-4My-27" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.702;entryY=0.009;entryDx=0;entryDy=0;entryPerimeter=0;" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-28" target="U726NmcKOxkLk4yX-4My-32" edge="1"> <mxGeometry relative="1" as="geometry"> <mxPoint x="1310" y="480" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-28" value="$$\text{signature}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="U726NmcKOxkLk4yX-4My-28" value="$$\text{signature}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="1280" y="70" width="60" height="40" as="geometry" /> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-29" value="$$\text{MT root}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="U726NmcKOxkLk4yX-4My-29" value="$$\text{censusRoot}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="930" y="70" width="60" height="40" as="geometry" /> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-30" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.31;entryY=0.025;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-24" target="U726NmcKOxkLk4yX-4My-32"> + <mxCell id="U726NmcKOxkLk4yX-4My-30" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.31;entryY=0.025;entryDx=0;entryDy=0;entryPerimeter=0;" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-24" target="U726NmcKOxkLk4yX-4My-32" edge="1"> <mxGeometry relative="1" as="geometry"> <mxPoint x="870" y="250" as="sourcePoint" /> <mxPoint x="940" y="480" as="targetPoint" />

@@ -275,13 +275,13 @@ <mxPoint x="1232" y="450" />

</Array> </mxGeometry> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-31" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-32" target="U726NmcKOxkLk4yX-4My-13"> + <mxCell id="U726NmcKOxkLk4yX-4My-31" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-32" target="U726NmcKOxkLk4yX-4My-13" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-32" value="$$\text{Signature.verify}()$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="U726NmcKOxkLk4yX-4My-32" value="$$\text{Signature.verify}()$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="1170" y="470" width="200" height="40" as="geometry" /> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-33" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;startArrow=oval;startFill=1;" edge="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="U726NmcKOxkLk4yX-4My-33" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;startArrow=oval;startFill=1;" parent="U726NmcKOxkLk4yX-4My-1" edge="1"> <mxGeometry relative="1" as="geometry"> <mxPoint x="1150" y="160" as="sourcePoint" /> <mxPoint x="1270" y="470" as="targetPoint" />

@@ -290,7 +290,7 @@ <mxPoint x="1270" y="160" />

</Array> </mxGeometry> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-34" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;startArrow=oval;startFill=1;jumpStyle=arc;entryX=0.797;entryY=0.02;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" target="Alor29dF2PIa9BzgdgEN-0"> + <mxCell id="U726NmcKOxkLk4yX-4My-34" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;startArrow=oval;startFill=1;jumpStyle=arc;entryX=0.797;entryY=0.02;entryDx=0;entryDy=0;entryPerimeter=0;" parent="U726NmcKOxkLk4yX-4My-1" target="Alor29dF2PIa9BzgdgEN-0" edge="1"> <mxGeometry relative="1" as="geometry"> <mxPoint x="1000" y="250" as="sourcePoint" /> <mxPoint x="1420" y="320" as="targetPoint" />

@@ -300,13 +300,13 @@ <mxPoint x="999" y="290" />

</Array> </mxGeometry> </mxCell> - <mxCell id="Alor29dF2PIa9BzgdgEN-5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="Alor29dF2PIa9BzgdgEN-0" target="Alor29dF2PIa9BzgdgEN-4"> + <mxCell id="Alor29dF2PIa9BzgdgEN-5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="U726NmcKOxkLk4yX-4My-1" source="Alor29dF2PIa9BzgdgEN-0" target="Alor29dF2PIa9BzgdgEN-4" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> - <mxCell id="Alor29dF2PIa9BzgdgEN-0" value="&lt;div&gt;$$\text{MT.verify}()$$&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="Alor29dF2PIa9BzgdgEN-0" value="&lt;div&gt;$$\text{MT.verify}()$$&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="840" y="320" width="200" height="40" as="geometry" /> </mxCell> - <mxCell id="Alor29dF2PIa9BzgdgEN-1" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;exitPerimeter=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-19"> + <mxCell id="Alor29dF2PIa9BzgdgEN-1" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;exitPerimeter=0;" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-19" edge="1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="789.58" y="160" as="sourcePoint" /> <mxPoint x="870" y="320" as="targetPoint" />

@@ -316,19 +316,19 @@ <mxPoint x="870" y="280" />

</Array> </mxGeometry> </mxCell> - <mxCell id="Alor29dF2PIa9BzgdgEN-2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-26"> + <mxCell id="Alor29dF2PIa9BzgdgEN-2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-26" edge="1"> <mxGeometry relative="1" as="geometry"> <mxPoint x="890" y="320" as="targetPoint" /> <mxPoint x="889.71" y="120" as="sourcePoint" /> </mxGeometry> </mxCell> - <mxCell id="Alor29dF2PIa9BzgdgEN-3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-29"> + <mxCell id="Alor29dF2PIa9BzgdgEN-3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-29" edge="1"> <mxGeometry relative="1" as="geometry"> <mxPoint x="959.9" y="320" as="targetPoint" /> <mxPoint x="959.61" y="120" as="sourcePoint" /> </mxGeometry> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-22" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.82;entryY=0.005;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryPerimeter=0;jumpStyle=arc;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-25" target="U726NmcKOxkLk4yX-4My-17"> + <mxCell id="U726NmcKOxkLk4yX-4My-22" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.82;entryY=0.005;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryPerimeter=0;jumpStyle=arc;" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-25" target="U726NmcKOxkLk4yX-4My-17" edge="1"> <mxGeometry relative="1" as="geometry"> <mxPoint x="880" y="280" as="targetPoint" /> <Array as="points">

@@ -336,10 +336,10 @@ <mxPoint x="688" y="250" />

</Array> </mxGeometry> </mxCell> - <mxCell id="Alor29dF2PIa9BzgdgEN-4" value="$$\text{bool}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="Alor29dF2PIa9BzgdgEN-4" value="$$\text{bool}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="910" y="560" width="60" height="40" as="geometry" /> </mxCell> - <mxCell id="-n0zQNNrxNN8dLtkatG7-10" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.82;entryY=0.005;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryPerimeter=0;jumpStyle=arc;" edge="1" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-23" target="U726NmcKOxkLk4yX-4My-25"> + <mxCell id="-n0zQNNrxNN8dLtkatG7-10" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.82;entryY=0.005;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryPerimeter=0;jumpStyle=arc;" parent="U726NmcKOxkLk4yX-4My-1" source="U726NmcKOxkLk4yX-4My-23" target="U726NmcKOxkLk4yX-4My-25" edge="1"> <mxGeometry relative="1" as="geometry"> <mxPoint x="1150" y="230" as="sourcePoint" /> <mxPoint x="688" y="280" as="targetPoint" />

@@ -348,39 +348,39 @@ <mxPoint x="1150" y="250" />

</Array> </mxGeometry> </mxCell> - <mxCell id="U726NmcKOxkLk4yX-4My-25" value="$$\text{address}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=default;strokeColor=none;fontFamily=Courier New;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="U726NmcKOxkLk4yX-4My-25" value="$$\text{address}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=default;strokeColor=none;fontFamily=Courier New;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="1040" y="230" width="60" height="40" as="geometry" /> </mxCell> - <mxCell id="-n0zQNNrxNN8dLtkatG7-13" value="VOTER&#39;S PROOF VERIFICATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="-n0zQNNrxNN8dLtkatG7-13" value="VOTER&#39;S PROOF VERIFICATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="200" y="660.63" width="560" height="40" as="geometry" /> </mxCell> - <mxCell id="-n0zQNNrxNN8dLtkatG7-14" value="CENSUS MEMBERSHIP" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#f8cecc;strokeColor=#b85450;fontSize=11;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="-n0zQNNrxNN8dLtkatG7-14" value="CENSUS MEMBERSHIP" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#f8cecc;strokeColor=#b85450;fontSize=11;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="800" y="660.63" width="307.19" height="40" as="geometry" /> </mxCell> - <mxCell id="-n0zQNNrxNN8dLtkatG7-15" value="AUTHENTICATION + NON-MALLEABILITY" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=11;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="-n0zQNNrxNN8dLtkatG7-15" value="AUTHENTICATION + NON-MALLEABILITY" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=11;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="1150" y="660.63" width="230" height="40" as="geometry" /> </mxCell> - <mxCell id="-n0zQNNrxNN8dLtkatG7-19" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="-n0zQNNrxNN8dLtkatG7-19" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="470" y="370" width="20" height="561.25" as="geometry" /> </mxCell> - <mxCell id="-n0zQNNrxNN8dLtkatG7-20" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="-n0zQNNrxNN8dLtkatG7-20" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="942.19" y="497.20000000000005" width="20" height="306.87" as="geometry" /> </mxCell> - <mxCell id="-n0zQNNrxNN8dLtkatG7-21" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="U726NmcKOxkLk4yX-4My-1"> + <mxCell id="-n0zQNNrxNN8dLtkatG7-21" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="U726NmcKOxkLk4yX-4My-1" vertex="1"> <mxGeometry x="1254.19" y="531.88" width="20" height="237.5" as="geometry" /> </mxCell> </root> </mxGraphModel> </diagram> <diagram name="3. aggregate-circuit" id="_ty1DUuqyEsH5p35itna"> - <mxGraphModel dx="1195" dy="628" 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"> + <mxGraphModel dx="1106" dy="661" 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="4ZG6TFl4bt9_09IySAMJ-0" /> <mxCell id="4ZG6TFl4bt9_09IySAMJ-1" parent="4ZG6TFl4bt9_09IySAMJ-0" /> - <mxCell id="Dlp71_iiWKCkKO4_XMIA-3" value="&lt;div&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="4ZG6TFl4bt9_09IySAMJ-1"> + <mxCell id="Dlp71_iiWKCkKO4_XMIA-3" value="&lt;div&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1"> <mxGeometry x="160" y="90" width="840" height="270" as="geometry" /> </mxCell> - <mxCell id="LftYdsKY6RAl3PnCzTcV-0" value="&lt;div&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="4ZG6TFl4bt9_09IySAMJ-1"> + <mxCell id="LftYdsKY6RAl3PnCzTcV-0" value="&lt;div&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1"> <mxGeometry x="180" y="170" width="800" height="100" as="geometry" /> </mxCell> <mxCell id="4ZG6TFl4bt9_09IySAMJ-7" value="&lt;div style=&quot;font-size: 11px;&quot;&gt;$$\text{authentication proof}_i$$&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1">

@@ -404,7 +404,7 @@ <mxPoint x="579.83" y="200" as="sourcePoint" />

<mxPoint x="579.83" y="320" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="IjRa-welPacgwPaz64jX-7" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-16" target="4ZG6TFl4bt9_09IySAMJ-19"> + <mxCell id="IjRa-welPacgwPaz64jX-7" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-16" target="4ZG6TFl4bt9_09IySAMJ-19" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> <mxCell id="4ZG6TFl4bt9_09IySAMJ-16" value="$$(C_1, C_2)_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1">

@@ -413,13 +413,13 @@ </mxCell>

<mxCell id="4ZG6TFl4bt9_09IySAMJ-19" value="recursive SNARK batch verifier" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1"> <mxGeometry x="200" y="200" width="760" height="40" as="geometry" /> </mxCell> - <mxCell id="4ZG6TFl4bt9_09IySAMJ-23" value="&lt;div&gt;$$\text{config}$$&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1"> + <mxCell id="4ZG6TFl4bt9_09IySAMJ-23" value="&lt;div&gt;$$\text{ballotMode}$$&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1"> <mxGeometry x="829.19" y="110" width="60" height="40" as="geometry" /> </mxCell> <mxCell id="4ZG6TFl4bt9_09IySAMJ-26" value="&lt;div&gt;$$\text{processID}$$&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1"> <mxGeometry x="689.19" y="110" width="60" height="40" as="geometry" /> </mxCell> - <mxCell id="4ZG6TFl4bt9_09IySAMJ-28" value="$$\text{MT root}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1"> + <mxCell id="4ZG6TFl4bt9_09IySAMJ-28" value="$$\text{censusRoot}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1"> <mxGeometry x="899.19" y="110" width="60" height="40" as="geometry" /> </mxCell> <mxCell id="4ZG6TFl4bt9_09IySAMJ-29" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1">

@@ -431,40 +431,40 @@ </mxCell>

<mxCell id="4ZG6TFl4bt9_09IySAMJ-48" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1"> <mxGeometry x="809.6400000000001" y="240.75" width="20" height="278.52" as="geometry" /> </mxCell> - <mxCell id="IjRa-welPacgwPaz64jX-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.959;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-28" target="4ZG6TFl4bt9_09IySAMJ-19"> + <mxCell id="IjRa-welPacgwPaz64jX-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.959;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-28" target="4ZG6TFl4bt9_09IySAMJ-19" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> - <mxCell id="IjRa-welPacgwPaz64jX-3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.868;entryY=0.011;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-23" target="4ZG6TFl4bt9_09IySAMJ-19"> + <mxCell id="IjRa-welPacgwPaz64jX-3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.868;entryY=0.011;entryDx=0;entryDy=0;entryPerimeter=0;" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-23" target="4ZG6TFl4bt9_09IySAMJ-19" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> - <mxCell id="IjRa-welPacgwPaz64jX-4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.775;entryY=-0.01;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-29" target="4ZG6TFl4bt9_09IySAMJ-19"> + <mxCell id="IjRa-welPacgwPaz64jX-4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.775;entryY=-0.01;entryDx=0;entryDy=0;entryPerimeter=0;" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-29" target="4ZG6TFl4bt9_09IySAMJ-19" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> - <mxCell id="IjRa-welPacgwPaz64jX-5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.684;entryY=-0.024;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-26" target="4ZG6TFl4bt9_09IySAMJ-19"> + <mxCell id="IjRa-welPacgwPaz64jX-5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.684;entryY=-0.024;entryDx=0;entryDy=0;entryPerimeter=0;" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-26" target="4ZG6TFl4bt9_09IySAMJ-19" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> - <mxCell id="IjRa-welPacgwPaz64jX-6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.592;entryY=0.004;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-13" target="4ZG6TFl4bt9_09IySAMJ-19"> + <mxCell id="IjRa-welPacgwPaz64jX-6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.592;entryY=0.004;entryDx=0;entryDy=0;entryPerimeter=0;" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-13" target="4ZG6TFl4bt9_09IySAMJ-19" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> - <mxCell id="IjRa-welPacgwPaz64jX-8" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.408;entryY=0.025;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-11" target="4ZG6TFl4bt9_09IySAMJ-19"> + <mxCell id="IjRa-welPacgwPaz64jX-8" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.408;entryY=0.025;entryDx=0;entryDy=0;entryPerimeter=0;" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-11" target="4ZG6TFl4bt9_09IySAMJ-19" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> - <mxCell id="IjRa-welPacgwPaz64jX-9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.316;entryY=0.011;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-10" target="4ZG6TFl4bt9_09IySAMJ-19"> + <mxCell id="IjRa-welPacgwPaz64jX-9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.316;entryY=0.011;entryDx=0;entryDy=0;entryPerimeter=0;" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-10" target="4ZG6TFl4bt9_09IySAMJ-19" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> - <mxCell id="IjRa-welPacgwPaz64jX-10" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.224;entryY=0.032;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-8" target="4ZG6TFl4bt9_09IySAMJ-19"> + <mxCell id="IjRa-welPacgwPaz64jX-10" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.224;entryY=0.032;entryDx=0;entryDy=0;entryPerimeter=0;" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-8" target="4ZG6TFl4bt9_09IySAMJ-19" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> - <mxCell id="IjRa-welPacgwPaz64jX-11" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.085;entryY=0.018;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-7" target="4ZG6TFl4bt9_09IySAMJ-19"> + <mxCell id="IjRa-welPacgwPaz64jX-11" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.085;entryY=0.018;entryDx=0;entryDy=0;entryPerimeter=0;" parent="4ZG6TFl4bt9_09IySAMJ-1" source="4ZG6TFl4bt9_09IySAMJ-7" target="4ZG6TFl4bt9_09IySAMJ-19" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> - <mxCell id="gPXCQdP4MjgRAV3BPEsE-0" value="VOTES AGGREGATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" vertex="1" parent="4ZG6TFl4bt9_09IySAMJ-1"> + <mxCell id="gPXCQdP4MjgRAV3BPEsE-0" value="VOTES AGGREGATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1"> <mxGeometry x="199.19" y="394.01" width="440" height="40" as="geometry" /> </mxCell> - <mxCell id="gPXCQdP4MjgRAV3BPEsE-1" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="4ZG6TFl4bt9_09IySAMJ-1"> + <mxCell id="gPXCQdP4MjgRAV3BPEsE-1" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1"> <mxGeometry x="409.19" y="160" width="20" height="440" as="geometry" /> </mxCell> - <mxCell id="iyqm4_-RWh7QM2yxefPn-0" value="$$\text{}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="4ZG6TFl4bt9_09IySAMJ-1"> + <mxCell id="iyqm4_-RWh7QM2yxefPn-0" value="$$\text{true}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="4ZG6TFl4bt9_09IySAMJ-1" vertex="1"> <mxGeometry x="520" y="300" width="120" height="40" as="geometry" /> </mxCell> </root>
D v2/figures/voter-circuit.drawio

@@ -1,160 +0,0 @@

-<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" version="25.0.1"> - <diagram name="Page-1" id="vCdj5PMNbiW-dyhMuqKx"> - <mxGraphModel dx="1434" dy="753" 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="0" /> - <mxCell id="1" parent="0" /> - <mxCell id="NDshzNdX3U-lBisqk44h-9" value="" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;" vertex="1" parent="1"> - <mxGeometry x="130" y="60" width="890" height="400" as="geometry" /> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-40" value="" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;" parent="1" vertex="1"> - <mxGeometry x="160" y="140" width="840" height="230" as="geometry" /> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-2" value="$$\text{Hash}(\text{address} || \text{processID} || s)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1"> - <mxGeometry x="200" y="190" width="200" height="40" as="geometry" /> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-8" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.849;entryY=-0.009;entryDx=0;entryDy=0;entryPerimeter=0;fontSize=11;fontFamily=Courier New;" parent="1" source="CFx7_840UiJ9a2tUSkKx-17" target="CFx7_840UiJ9a2tUSkKx-2" edge="1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="370" y="160" as="sourcePoint" /> - <mxPoint x="369.89" y="200" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-9" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="1" source="CFx7_840UiJ9a2tUSkKx-16" target="CFx7_840UiJ9a2tUSkKx-2" edge="1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="300" y="160" as="sourcePoint" /> - <mxPoint x="299.89" y="200" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-10" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.149;entryY=-0.005;entryDx=0;entryDy=0;entryPerimeter=0;fontSize=11;fontFamily=Courier New;" parent="1" source="CFx7_840UiJ9a2tUSkKx-15" target="CFx7_840UiJ9a2tUSkKx-2" edge="1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="229.89" y="150" as="sourcePoint" /> - <mxPoint x="229.89" y="200" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-11" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;fontFamily=Courier New;" parent="1" source="CFx7_840UiJ9a2tUSkKx-2" target="CFx7_840UiJ9a2tUSkKx-18" edge="1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="299.58" y="230" as="sourcePoint" /> - <mxPoint x="300" y="710" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-15" value="&lt;div style=&quot;font-size: 11px;&quot;&gt;$$\text{address}$$&lt;/div&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> - <mxGeometry x="200" y="80" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-16" value="$$\text{processID}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> - <mxGeometry x="270" y="80" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-17" value="$$s$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="1" vertex="1"> - <mxGeometry x="340" y="80" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-18" value="$$C$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> - <mxGeometry x="270" y="390" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-19" value="$$\text{protocolRulesCompliance}(\text{config}, m)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" parent="1" vertex="1"> - <mxGeometry x="520" y="190" width="240" height="40" as="geometry" /> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-33" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="1" source="CFx7_840UiJ9a2tUSkKx-20" target="CFx7_840UiJ9a2tUSkKx-19" edge="1"> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-20" value="config" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> - <mxGeometry x="550" y="80" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-26" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.165;entryY=-0.015;entryDx=0;entryDy=0;entryPerimeter=0;startArrow=oval;startFill=1;fontSize=11;fontFamily=Courier New;" parent="1" target="CFx7_840UiJ9a2tUSkKx-24" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="700" y="160" as="sourcePoint" /> - <Array as="points"> - <mxPoint x="700" y="160" /> - <mxPoint x="810" y="160" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-32" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="1" source="CFx7_840UiJ9a2tUSkKx-21" target="CFx7_840UiJ9a2tUSkKx-19" edge="1"> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-21" value="$$m$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="1" vertex="1"> - <mxGeometry x="670" y="80" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-28" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.445;entryY=0.014;entryDx=0;entryDy=0;entryPerimeter=0;fontSize=11;fontFamily=Courier New;" parent="1" source="CFx7_840UiJ9a2tUSkKx-22" target="CFx7_840UiJ9a2tUSkKx-24" edge="1"> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-22" value="$$k$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="1" vertex="1"> - <mxGeometry x="830" y="80" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-29" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.833;entryY=0.003;entryDx=0;entryDy=0;entryPerimeter=0;fontSize=11;fontFamily=Courier New;" parent="1" source="CFx7_840UiJ9a2tUSkKx-23" target="CFx7_840UiJ9a2tUSkKx-24" edge="1"> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-23" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> - <mxGeometry x="900" y="80" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-24" value="$$\text{Enc}_{EPK}(m, k)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" parent="1" vertex="1"> - <mxGeometry x="780" y="190" width="180" height="40" as="geometry" /> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-25" value="$$\text{Hash}(C || s)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="1" vertex="1"> - <mxGeometry x="400" y="310" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-30" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;startArrow=oval;startFill=1;fontSize=11;fontFamily=Courier New;" parent="1" target="CFx7_840UiJ9a2tUSkKx-25" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="370" y="160" as="sourcePoint" /> - <mxPoint x="490" y="189" as="targetPoint" /> - <Array as="points"> - <mxPoint x="490" y="160" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-31" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="1" target="CFx7_840UiJ9a2tUSkKx-25" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="300" y="270" as="sourcePoint" /> - <mxPoint x="830" y="209" as="targetPoint" /> - <Array as="points"> - <mxPoint x="430" y="270" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-34" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="1" source="CFx7_840UiJ9a2tUSkKx-25" target="CFx7_840UiJ9a2tUSkKx-35" edge="1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="460" y="390" as="sourcePoint" /> - <mxPoint x="460" y="710" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-35" value="$$N$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> - <mxGeometry x="430" y="390" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-36" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="1" source="CFx7_840UiJ9a2tUSkKx-19" target="CFx7_840UiJ9a2tUSkKx-37" edge="1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="639.58" y="230" as="sourcePoint" /> - <mxPoint x="639.58" y="390" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-37" value="$$\text{bool}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> - <mxGeometry x="610" y="390" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-38" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="1" source="CFx7_840UiJ9a2tUSkKx-24" target="CFx7_840UiJ9a2tUSkKx-39" edge="1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="880" y="230" as="sourcePoint" /> - <mxPoint x="870" y="510" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="CFx7_840UiJ9a2tUSkKx-39" value="$$(C_1, C_2)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="1" vertex="1"> - <mxGeometry x="840" y="390" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="NDshzNdX3U-lBisqk44h-1" value="VOTE COMMITMENT + NULLIFICATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#ffe6cc;strokeColor=#d79b00;fontSize=11;" vertex="1" parent="1"> - <mxGeometry x="172.35" y="500.63" width="350" height="40" as="geometry" /> - </mxCell> - <mxCell id="NDshzNdX3U-lBisqk44h-2" value="RULES COMPLIANCE" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" vertex="1" parent="1"> - <mxGeometry x="542.35" y="500.63" width="210" height="40" as="geometry" /> - </mxCell> - <mxCell id="NDshzNdX3U-lBisqk44h-3" value="VOTE ENCRYPTION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#f5f5f5;strokeColor=#666666;fontSize=11;fontColor=#333333;" vertex="1" parent="1"> - <mxGeometry x="767.66" y="500.63" width="220" height="40" as="geometry" /> - </mxCell> - <mxCell id="NDshzNdX3U-lBisqk44h-4" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="1"> - <mxGeometry x="336.42" y="315.32" width="20" height="350.63" as="geometry" /> - </mxCell> - <mxCell id="NDshzNdX3U-lBisqk44h-5" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="1"> - <mxGeometry x="637.51" y="384.24" width="20" height="212.8" as="geometry" /> - </mxCell> - <mxCell id="NDshzNdX3U-lBisqk44h-6" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="1"> - <mxGeometry x="867.66" y="381.59" width="20" height="218.11" as="geometry" /> - </mxCell> - </root> - </mxGraphModel> - </diagram> -</mxfile>
M v2/sections/ballot-protocol.tex → v2/sections/ballot-protocol.tex

@@ -2,6 +2,8 @@ % !TeX root = ../build/main.tex

\martai{It is not clear what is the advantage of defining a protocol like this. Is it easy because it is easy to implement as an arithmetic circuit? Make the advantage clear.} +\martai{Yes. The advantage is that we can define many types of voting systems (or recounting) with just these few variables. Moreover, we avoid if-else statements, which makes it very convenient to implement in-circuit. More info here: \url{https://docs.vocdoni.io/architecture/data-schemes/ballot-protocol.html\#vocdoni-results-interpretation} (no multiple question supported).} + The \davinci ballot protocol is a simple and efficient mechanism for casting and tallying votes in any type of election or collective decision-making process. Each voting process consists of one or several fields and voters are required to provide a response for each of these fields in their ballot. The responses in the ballot are represented as a sequence of natural numbers, each corresponding to the voter’s choice for the respective field. Results are accumulated into a single array. Each position in the array corresponds to the sum of all votes cast for that field across all voters.
M v2/sections/cryptographic-primitives.tex → v2/sections/cryptographic-primitives.tex

@@ -14,6 +14,7 @@ \subsection{Merkle trees}

\label{sec:cryptographic-primitives:merkle-trees} \martai{I am not sure a Merkle trees section is needed, but I thought we could use it to specify the hash function used in the trees, the depth, and the -arity. We could also include some functions like \texttt{MT.Root()}, etc.} +\martai{Sparse MTs (binary) with depth $64$. Instantiated with Poseidon hash function.} \subsection{Zero-knowledge proof systems} \label{sec:cryptographic-primitives:zkp}

@@ -43,6 +44,8 @@ \begin{itemize}

\item BW6-761 curve: $\BW{E}/\F_p$ defined by equation $\BW{E}: y^2 = x^3 - 1$, with subgroups $\BW{\G}_1, \BW{\G}_2$ of prime order $q$, and an efficiently computable pairing \({e}:\BW{\G}_1\times\BW{\G}_2 \rightarrow \BW{\G}_T,\) where $\BW{\G}_T \subset \F_{q^{6}}$ and has order $q$ as well. \item BLS12-377 curve: $\BLS{E}/\F_q$ defined by equation \(\BLS{E}: y^2 = x^3 + 1,\) with subgroups $\BLS{\G}_1, \BLS{\G}_2$ of prime order $r$, and an efficiently computable pairing \({e}:\BLS{\G}_1\times\BLS{\G}_2 \rightarrow \BLS{\G}_T,\) where $\BLS{\G}_T \subset \F_{q^{12}}$ and has order $r$. \item BN254 curve: $\BN{E}/\F_s$ defined by equation \( \BN{E}: y^2 = x^3 + 3\), where with subgroups $\BN{\G}_1, \BN{\G}_2$ of prime order $t$, and an efficiently computable pairing \(e:\BN{\G}_1\times\BN{\G}_2 \rightarrow \BN{\G}_T,\) where $\BN{\G}_T \subset \F_{q^{12}}$ and has order $t$. + \item Baby Jubjub. + \item Secp256k1. \end{itemize} \paragraph{Finite fields.}

@@ -59,7 +62,32 @@

\subsection{Hash functions} \label{sec:cryptographic-primitives:hash} -\martai{Poseidon?} +\martai{Poseidon? Specify parameters? And $p$ may actually not be $p$, and probably it will be instantiated with different curves, depending on the circuit.} + +\martai{Yes, Poseidon. But also MiMC-7 for hashing the public inputs and passing them between circuits (for efficiency).} + +We use the Poseidon~\cite{grassi21poseidon} hash function $ \hlset{\Hash} : \F_p \rightarrow \F_p$, where $\F_p$ is the set of tuples of $\F_p$-elements of any length, and $\F_p$ is the field described in Section~\ref{sec:cryptographic-primitives:elliptic-curves}. In particular, we make use of the \textsc{Poseidon-128} permutation \[\pi: \F_p^t\rightarrow \F_p^t,\] where $t=r+c$, with the following parameters: +\begin{table}[H] + \begin{center} + \begin{tabular}{| c | c | c | c | c | } + \hline + Rate & Capacity & Full rounds & Partial rounds & S-box \\ + \hline + $r=4$ & $c=1$ & $R_F=8$ & $R_P=59$ & $S(x)=x^5$ \\ + \hline + \end{tabular} + \end{center} +\end{table} + +% \begin{itemize} + % \item Rate $r=4$. + % \item Capacity $c=1$. + % \item Full rounds $R_F = 8$. + % \item Partial rounds $R_P = 59$. + % \item S-box: $S(x) = x^5$. + % \end{itemize} + +For the sake of clarity, in our notation we admit anything as an input of $\Hash$, although it might not be parsed as a sequence of $\F_p$-elements. Any bitstring can be converted to a tuple of $\F_p$-elements, so this does not change the actual working of the hash computation. In this document, is implied that the proper conversion happens before feeding the input into the actual hash function. \subsection{Encryption schemes} \label{sec:cryptographic-primitives:encryption}

@@ -113,6 +141,8 @@ %Pedersen commitment scheme~\cite{pedersen1991non}.

\subsection{Digital signature schemes} \label{sec:cryptographic-primitives:signatures} + +ECDSA. \subsection{Key generation schemes} \label{sec:cryptographic-primitives:dkg}
A v2/sections/tmp.tex

@@ -0,0 +1,89 @@

+% !TeX root = ../build/main.tex + +\subsection{Voter circuit} + +Figure~\ref{fig:circuit-voter}. + +\begin{figure}[H] + \centerline{\includegraphics[width=400pt,draft=false]{\figs/circuit-voter}} + \caption{Voter circuit. All public values are framed in green.} + \label{fig:circuit-voter} +\end{figure} + +\textbf{Inputs}: + +\begin{itemize} + \setlength\itemsep{1em} + \item \public $\processid$: process identifier. + \item \public $\ballotmode$: ballot protocol configuration. + \item \public $EPK$: encryption public key. + \item \public voter's weight. + \item \public $C$: commitment. + \item \public $N$: nullifier. + \item \public $(C_1, C_2)$: encrypted ballot. +% + \item \private $\address$: voter's address. + \item \private $ballot$: plaintext voter's voting choice. + \item \private $s$: blinder factor (secret). + \item \private $k$: random scalar. +\end{itemize} + + +\newpage +\subsection{Authentication circuit} + +Figure~\ref{fig:circuit-authentication}. + +\begin{figure}[H] + \centerline{\includegraphics[width=400pt,draft=false]{\figs/circuit-authentication}} + \caption{Authentication circuit. All public values are framed in green.} + \label{fig:circuit-authentication} +\end{figure} + +\textbf{Inputs}: + +\begin{itemize} + \setlength\itemsep{1em} + \item \public $\text{voteProof}$: voter's proof. + \item \public $\processid$: process identifier. + \item \public $\ballotmode$: ballot protocol configuration. + \item \public $EPK$: encryption public key. + \item \public $(C_1, C_2)$: encrypted ballot. + \item \public $C$: commitment. + \item \public $N$: nullifier. + \item \public Voter's weight. + \item \public $\text{censusProof}$: census membership proof. + \item \public $\text{censusRoot}$: census Merkle tree root. + \item \public $pk$: voter's address. + \item \public $\signature$: voter's signature. +\end{itemize} + +\newpage +\subsubsection{Aggregation circuit} + +Figure~\ref{fig:circuit-aggregate}. + +\begin{figure}[h] + \centerline{\includegraphics[width=400pt,draft=false]{\figs/circuit-aggregate}} + \caption{Aggregation circuit. All public values are framed in green.} + \label{fig:circuit-aggregate} +\end{figure} + +\textbf{Inputs}: + +\begin{itemize} + \setlength\itemsep{1em} + \item \public $\text{authenticationProof}$: set of authentication proofs. + \item \public $C_i$: set of commitments. + \item \public $N_i$: set of nullifiers. + \item \public $\address_i$: list of voters' addresses. + \item \public $(C_1, C_2)$: list of voters' encrypted ballots. + \item \public $\weight_i$: Voters' weights. + \item \public $\processid$: process identifier. + \item \public $EPK$: encryption public key. + \item \public $\ballotmode$: ballot protocol configuration. + \item \public $\text{censusRoot}$: census Merkle tree root. +\end{itemize} + +\newpage +\subsubsection{State transition circuit}
M v2/sections/token.tex → v2/sections/token.tex

@@ -1,20 +1,20 @@

% !TeX root = ../build/main.tex -\Davinci introduces the Vocdoni token (VOC) as a key element of its decentralized voting ecosystem, playing a crucial role in the protocol's sustainability. +\Davinci introduces the Vocdoni token (\token) as a key element of its decentralized voting ecosystem, playing a crucial role in the protocol's sustainability. The token serves multiple utility functions that align the incentives of all participants (voting organizers, sequencers, and voters) ensuring the integrity, efficiency, and security of the voting system. -\subsection{Roles of the VOC} +\subsection{Roles of the \token} \begin{enumerate} - \item \textbf{Collateral for sequencers}: Sequencers are required to stake VOC tokens as a collateral to participate in the protocol. This serves as a safeguard to ensure responsible participation. If a sequencer behaves improperly (whether due to malicious intent or unintentional errors) it can face penalties, including the loss of part of its staked tokens. - \item \textbf{Incentive mechanism}: Sequencers earn rewards in VOC tokens based on their contribution to processing valid votes and maintaining the network. Rewards are proportional to the number of valid votes successfully added to the shared state. - \item \textbf{Payment for voting processes}: Voting processes organizers use VOC tokens to cover the costs of creating and managing voting processes. The costs depend on factors like the size of the voting registry, the voting period's duration, and the desired level of security (based on the number of participating sequencers). - \item \textbf{Governance}: The VOC token facilitates decentralized governance by giving the token holders the right to participate in the project governance. Token holders can influence on important matters such as protocol upgrades, ecosystem development, and other initiatives aimed to enhance various aspects of \davinci. This ensures that the project evolves in a transparent, community-driven manner. + \item \textbf{Collateral for sequencers}: Sequencers are required to stake \token tokens as a collateral to participate in the protocol. This serves as a safeguard to ensure responsible participation. If a sequencer behaves improperly (whether due to malicious intent or unintentional errors) it can face penalties, including the loss of part of its staked tokens. + \item \textbf{Incentive mechanism}: Sequencers earn rewards in \token tokens based on their contribution to processing valid votes and maintaining the network. Rewards are proportional to the number of valid votes successfully added to the shared state. + \item \textbf{Payment for voting processes}: Voting processes organizers use \token tokens to cover the costs of creating and managing voting processes. The costs depend on factors like the size of the voting registry, the voting period's duration, and the desired level of security (based on the number of participating sequencers). + \item \textbf{Governance}: The \token token facilitates decentralized governance by giving the token holders the right to participate in the project governance. Token holders can influence on important matters such as protocol upgrades, ecosystem development, and other initiatives aimed to enhance various aspects of \davinci. This ensures that the project evolves in a transparent, community-driven manner. \end{enumerate} \subsection{Economics for organizers} -Organizers of voting processes pay fees in VOC tokens to create and manage their voting events. These fees cover operational costs and incentivize the sequencers. +Organizers of voting processes pay fees in \token tokens to create and manage their voting events. These fees cover operational costs and incentivize the sequencers. The costs of voting processes vary based on the following factors:

@@ -64,7 +64,7 @@ \item $a$: An exponent that controls how sharply the cost increases as the used capacity approaches the total available capacity. In other words, it controls the non-linearity of the cost increase.

\item $\epsilon$: Is a very small number that avoids zero division. \end{itemize} - \item $\durationCost$: This component models the cost of running the process for a specific duration, where longer processess incur more cost. The scaling is non-linear, meaning that shorter processes are more cost-efficient, while longer processes are increasingly expensive. + \item $\durationCost$: This component models the cost of running the process for a specific duration, where longer processes incur into more cost. The scaling is non-linear, meaning that shorter processes are more cost-efficient, while longer processes are increasingly expensive. It is expected to have a minimum and maximum duration thresholds (e.g 1 hour to 1 year).

@@ -100,7 +100,7 @@ \end{itemize}

\subsection{Economics for sequencers} -To become a sequencer and earn rewards, participants must stake VOC tokens as collateral. This collateral is locked during the sequencer registry in the Sequencer Registry smart contract and can be withdrawn upon the sequencer commitments are fulfilled. +To become a sequencer and earn rewards, participants must stake \token tokens as collateral. This collateral is locked during the sequencer registry in the Sequencer Registry smart contract and can be withdrawn upon the sequencer commitments are fulfilled. Sequencers \textbf{receive rewards} based on:

@@ -154,7 +154,7 @@ Where:

\begin{itemize} \item $\slashedAmount_i$: The total slashed amount for a given sequencer. \item $s$: The slashing coefficient $0 \leq s \leq 1$. - \item $\stakedCollateral_i$: The amount of VOC tokens staked by a given sequencer. + \item $\stakedCollateral_i$: The amount of \token tokens staked by a given sequencer. \end{itemize} \end{itemize}
M v2/sections/vocdoni-protocol.tex → v2/sections/vocdoni-protocol.tex

@@ -79,6 +79,8 @@ \encryptedballot, \zkproof, \signature ].

\end{align*} \martai{In the code, the struct is just: address, commitment, nullifier and ballot. Check!} +\martai{In the code, they call it vote, verifierVote. Alternative: envelope.} + Below, we detail each component and its role in the voting process: \begin{itemize} \item \processid: the process identifier is a unique 32-byte number that uniquely identifies a specific voting process. This variable encapsulates essential information about the voting, such as the rules and constraints for ballots and the unique identifier of the \davinci blockchain instance.

@@ -87,7 +89,7 @@ %

\item \censuspf: the census proof serves as the voter's identity verification mechanism, ensuring that only eligible voters can participate. Depending on the process configuration, the voter provides either a Merkle tree-based proof showing inclusion in the census true, or a credential issued by a trusted third party (e.g. from a credential service provider). % \item \commitment: the identity commitment is used to prevent a voter from registering multiple nullifiers and avoid collisions if different voters choose the same secret. The commitment is computed the following way: - \[ \commitment = \text{Hash}(\text{Address} \conc \processid \conc s)\] + \[ \commitment = \hlget{\Hash}(\address \conc \processid \conc s)\] \martai{Link Hash function to function in Section\ref{sec:cryptographic-primitives}.} {\it Old text: \begin{itemize}

@@ -105,7 +107,7 @@ \item A random input that the user must store to allow potential vote overwrite.\\

\end{itemize}} % \item \nullifier: the nullifier is a 32-byte hash used to prevent double voting. It is computed the following way: - \[\nullifier = \text{Hash}(\commitment || s) \] + \[\nullifier = \hlget{\Hash}(\commitment || s) \] \martai{Link Hash function to function in Section\ref{sec:cryptographic-primitives}.} That is, it ensures that each voter can either cast only one vote or overwrite their previous vote. By means of nullifiers, voters can submit a new vote with the same nullifier to replace their previous vote. Moreover, nullifiers provide users' anonymity, since nullifiers cannot be linked back to the voter's identity without knowledge of the secret $s$. %

@@ -124,22 +126,22 @@

\subsection{Circuits} \label{sec:vocdoni-protocol:circuits} -\martai{The idea of this section is to describe de circuits. Then, in Section~\ref{sec:analysis:implementation} we give the details such as of the number of constants, framework used, etc. I haven't done this split yet.} +\martai{The idea of this section is to describe the circuits. Then, in Section~\ref{sec:analysis:implementation} we give the details such as of the number of constants, framework used, etc. I haven't done this split yet.} \textit{Old text: By structuring the process this way, we ensure that voting can be performed from any device-including smartphones and web browsers-while keeping the sequencer's computational requirements within the capabilities of accessible, CPU-based machines with 64 GiB of memory.} \martai{I don't follow the above paragraph.} - -\martai{NOTATION (1) What I name \texttt{config}, is called \texttt{Ballot Mode}, and (2) \texttt{MT root} is \texttt{census root}.} +\martai{It is called Ballot Mode because we define some modes (like quadratic, etc.) that can be chosen by the organizer. Essentially, each of this modes has a special configuration, but in order to make it easier, the organizer only needs to choose which of the modes (configs) to apply.} -\martai{It's convenient to name the proof associated to each circuit: a proof for this circuit is called [...] .} +\martai{It's convenient to name the proof associated to each circuit: a proof for this circuit is called [...].\\ +Answer: 1. ballotProof, 2. voteVerifier, 3. aggregator, 4. stateTransition.} \subsubsection{Voter circuit} Figure~\ref{fig:circuit-voter}. -\martai{ (1) I think that the voter's address should be private, and (2) the vote's weight is missing.} +\martai{The vote's weight is missing -- what to do with it?} \paragraph{Description.} Generated by the user when casting a vote, this circuit proves that the encrypted ballot is valid (i.e. follows the protocol rules) and that the nullifier and commitment are correctly generated.

@@ -159,7 +161,7 @@ \item \emph{Vote commitment + nullification}: The nullifier and commitments are correctly computed.

\end{itemize} \begin{figure}[h] - \centerline{\includegraphics[width=400pt,draft=false]{\figs/voter-circuit}} + \centerline{\includegraphics[width=400pt,draft=false]{\figs/circuit-voter}} \caption{Voter circuit. All public values are framed in green.} \label{fig:circuit-voter} \end{figure}