add draft of circuit 4 + update circuits + add details to crypto primitives and protocol + add draft intro
jump to
@@ -22,16 +22,16 @@ \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 (\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. + \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 uses 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 aligns incentives among participants, ensuring the system's sustainability and enabling decentralized governance. + % + Moreover, the design of \davinci is grounded in practicality; all components are 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. % \freefootnote{\scriptsize{Authors are listed in alphabetical order (\url{https://www.ams.org/profession/leaders/CultureStatement04.pdf}).}} \end{abstract} \martai{Change Vocdoni to DAVINCI.} -\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.} +\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.} \martai{Separate the roles of the sequencers from key generators?}@@ -56,14 +56,17 @@ \section{Background}
\label{sec:background} \input{\secs/background} +\newpage \section{Protocol intuition} \label{sec:protocol-intuition} \input{\secs/protocol-intuition} +\newpage \section{Cryptographic primitives} %building blocks \label{sec:cryptographic-primitives} \input{\secs/cryptographic-primitives} +\newpage \section{Voting protocol} \label{sec:vocdoni-protocol} \input{\secs/vocdoni-protocol}@@ -74,6 +77,7 @@ %Voting phase
%Votes collection %Results verification +\newpage \section{Ballot protocol} \label{sec:ballot-protocol} \input{\secs/ballot-protocol}
@@ -87,6 +87,8 @@
% Voting protocol \newcommand{\variablestyle}[1]{\texttt{#1}\xspace} \newcommand{\voteproof}{\variablestyle{voteProof}} +\newcommand{\censusproof}{\variablestyle{censusProof}} +\newcommand{\authenticationproof}{\variablestyle{authenticationProof}} \newcommand{\voteid}{\variablestyle{voteID}} \newcommand{\ballot}{\variablestyle{ballot}} \newcommand{\vote}{\variablestyle{vote}}@@ -125,6 +127,8 @@ \newcommand{\Poseidon}{\methodstyle{Hash_2}}
\newcommand{\Mimc}{\methodstyle{Hash_3}} \newcommand{\Enc}{\methodstyle{Enc}} \newcommand{\Dec}{\methodstyle{Dec}} +\newcommand{\EncAdd}{\methodstyle{EncAdd}} +\newcommand{\ReEnc}{\methodstyle{ReEnc}} \newcommand{\SSign}{\methodstyle{S.Sign}} \newcommand{\SVer}{\methodstyle{S.Verify}} \newcommand{\GenerateShares}{\methodstyle{GenerateShares}}
@@ -27,7 +27,9 @@ %\usepackage{draftwatermark}
\usepackage{setspace} -\usepackage{mdframed} % frame figures +\usepackage{cleveref} %ref multiple equations + +\usepackage{mdframed} %frame figures %\ifdraft{ % % \usepackage[color = {[rgb]{0.9, 0.9, 0.9}}]{draftwatermark}
@@ -1,6 +1,6 @@
-<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0" version="27.1.6" pages="6"> +<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0" version="27.2.0" pages="5"> <diagram name="1. voter-circuit" id="-BY3RIMELlOST2Ke_Soi"> - <mxGraphModel dx="1088" dy="642" 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="1321" dy="780" 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="9w8_UW6vJWkl_njZVMp4-0" /> <mxCell id="9w8_UW6vJWkl_njZVMp4-1" parent="9w8_UW6vJWkl_njZVMp4-0" />@@ -143,7 +143,7 @@ </root>
</mxGraphModel> </diagram> <diagram name="2. authentication-circuit" id="o6OCBXuaYOciUBZEVznX"> - <mxGraphModel dx="1663" dy="1523" 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="2056" dy="2063" 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="6AO6W4_8KHMcSuPCPKqw-0" /> <mxCell id="6AO6W4_8KHMcSuPCPKqw-1" parent="6AO6W4_8KHMcSuPCPKqw-0" />@@ -168,7 +168,7 @@ <mxPoint x="229.57999999999998" y="-449.88" as="sourcePoint" />
<mxPoint x="230" y="-320" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-7" value="<div style="font-size: 11px;">$$\text{voteProof}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> + <mxCell id="6AO6W4_8KHMcSuPCPKqw-7" value="<div style="font-size: 11px;">$$\text{voteProof}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> <mxGeometry x="150" y="-736.88" width="60" height="40" as="geometry" /> </mxCell> <mxCell id="6AO6W4_8KHMcSuPCPKqw-8" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;fontSize=11;startArrow=none;startFill=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="6AO6W4_8KHMcSuPCPKqw-1" source="6AO6W4_8KHMcSuPCPKqw-9" target="6AO6W4_8KHMcSuPCPKqw-4" edge="1">@@ -190,7 +190,7 @@ </mxCell>
<mxCell id="6AO6W4_8KHMcSuPCPKqw-13" value="$$pk$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> <mxGeometry x="1050" y="-736.88" width="60" height="40" as="geometry" /> </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-15" value="$$\text{censusProof}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> + <mxCell id="6AO6W4_8KHMcSuPCPKqw-15" value="$$\text{censusProof}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> <mxGeometry x="770" y="-736.88" width="80" height="40" as="geometry" /> </mxCell> <mxCell id="6AO6W4_8KHMcSuPCPKqw-16" 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="6AO6W4_8KHMcSuPCPKqw-1" source="6AO6W4_8KHMcSuPCPKqw-17" target="6AO6W4_8KHMcSuPCPKqw-21" edge="1">@@ -198,7 +198,7 @@ <mxGeometry relative="1" as="geometry">
<mxPoint x="1240" y="-309.88" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-17" value="$$\text{signature}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> + <mxCell id="6AO6W4_8KHMcSuPCPKqw-17" value="$$\text{signature}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> <mxGeometry x="1200" y="-736.88" width="80" height="40" as="geometry" /> </mxCell> <mxCell id="6AO6W4_8KHMcSuPCPKqw-18" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="6AO6W4_8KHMcSuPCPKqw-1" source="6AO6W4_8KHMcSuPCPKqw-19" edge="1">@@ -240,7 +240,7 @@ <mxGeometry relative="1" as="geometry">
<mxPoint x="880" y="-320" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-25" value="<div>$$\text{MT.verify}((\text{weight, address}), \text{censusProof, censusRoot})$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> + <mxCell id="6AO6W4_8KHMcSuPCPKqw-25" value="<div>$$\text{MT.verify}((\text{weight, address}), \text{censusProof, censusRoot})$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> <mxGeometry x="720" y="-469.88" width="320" height="40" as="geometry" /> </mxCell> <mxCell id="6AO6W4_8KHMcSuPCPKqw-26" value="" style="endArrow=classic;html=1;rounded=0;fontSize=11;startArrow=oval;startFill=1;" parent="6AO6W4_8KHMcSuPCPKqw-1" edge="1">@@ -274,7 +274,7 @@ </mxCell>
<mxCell id="6AO6W4_8KHMcSuPCPKqw-29" value="VOTER'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="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> <mxGeometry x="130" y="-219.25" width="560" height="40" as="geometry" /> </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-30" 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="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> + <mxCell id="6AO6W4_8KHMcSuPCPKqw-30" value="CENSUS MEMBERSHIP" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> <mxGeometry x="730" y="-219.25" width="307.19" height="40" as="geometry" /> </mxCell> <mxCell id="6AO6W4_8KHMcSuPCPKqw-31" 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="6AO6W4_8KHMcSuPCPKqw-1" vertex="1">@@ -340,7 +340,7 @@ </mxCell>
<mxCell id="6AO6W4_8KHMcSuPCPKqw-49" value="true" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> <mxGeometry x="1160" y="-309.88" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-50" value="$$\text{weight}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> + <mxCell id="6AO6W4_8KHMcSuPCPKqw-50" value="$$\text{weight}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> <mxGeometry x="640" y="-736.88" width="60" height="40" as="geometry" /> </mxCell> <mxCell id="6AO6W4_8KHMcSuPCPKqw-51" value="$$\text{voteID}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1">@@ -384,538 +384,554 @@ <mxPoint x="1200" y="-650" />
</Array> </mxGeometry> </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-14" value="$$\text{Hash}(pk)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> + <mxCell id="6AO6W4_8KHMcSuPCPKqw-14" value="$$\text{Hash}(pk)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> <mxGeometry x="1040" y="-599.88" width="80" height="40" as="geometry" /> </mxCell> </root> </mxGraphModel> </diagram> - <diagram name="2. authentication-circuit-bis" id="UPdaxIJmiyFzw_YjwQPH"> - <mxGraphModel dx="1663" dy="1630" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> + <diagram name="3. aggregate-circuit" id="88JFnn8AstWJnzEelpN0"> + <mxGraphModel dx="1233" dy="728" 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="BCmyCWQthUHdnjgJXqds-0" /> - <mxCell id="BCmyCWQthUHdnjgJXqds-1" parent="BCmyCWQthUHdnjgJXqds-0" /> - <mxCell id="BCmyCWQthUHdnjgJXqds-2" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" parent="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="70" y="-730" width="1280" height="560" as="geometry" /> + <mxCell id="vWYVikCydA5HvOjBRwIf-0" /> + <mxCell id="vWYVikCydA5HvOjBRwIf-1" parent="vWYVikCydA5HvOjBRwIf-0" /> + <mxCell id="i_wgu6sUIYtOpveSoJkK-0" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="vWYVikCydA5HvOjBRwIf-1"> + <mxGeometry x="30" y="60" width="790" height="260" as="geometry" /> + </mxCell> + <mxCell id="i_wgu6sUIYtOpveSoJkK-1" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="vWYVikCydA5HvOjBRwIf-1"> + <mxGeometry x="50" y="135" width="750" height="95" as="geometry" /> + </mxCell> + <mxCell id="mhMekiSe2uiXRmLYm047-1" value="$$\text{voteID}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> + <mxGeometry x="310.00000000000006" y="80" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="VWBkZtje_WCXQabFDbId-4" value="$$\text{censusRoot}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> + <mxGeometry x="710" y="80" width="70" height="40" as="geometry" /> + </mxCell> + <mxCell id="VWBkZtje_WCXQabFDbId-5" value="<div>$$\text{ballotMode}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> + <mxGeometry x="540" y="80.00000000000011" width="70" height="40" as="geometry" /> + </mxCell> + <mxCell id="VWBkZtje_WCXQabFDbId-6" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> + <mxGeometry x="630" y="80.00000000000011" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="VWBkZtje_WCXQabFDbId-7" value="$$(C_1, C_2)_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> + <mxGeometry x="230" y="80.00000000000011" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="VWBkZtje_WCXQabFDbId-8" value="<div>$$\text{processID}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> + <mxGeometry x="450" y="80.00000000000011" width="70" height="40" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-3" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" parent="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="120" y="-640" width="1190" height="390" as="geometry" /> + <mxCell id="VWBkZtje_WCXQabFDbId-11" value="$$pk_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> + <mxGeometry x="390" y="80" width="40" height="40" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-4" 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="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="130" y="-389.88" width="200" height="40" as="geometry" /> + <mxCell id="QCU0WVTcZCZ_NDvB6I_U-1" value="true" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> + <mxGeometry x="385" y="270" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-5" 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="BCmyCWQthUHdnjgJXqds-1" source="BCmyCWQthUHdnjgJXqds-7" target="BCmyCWQthUHdnjgJXqds-4" edge="1"> + <mxCell id="QCU0WVTcZCZ_NDvB6I_U-15" value="" style="endArrow=classic;html=1;rounded=0;" parent="vWYVikCydA5HvOjBRwIf-1" edge="1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="159.89" y="-629.88" as="sourcePoint" /> - <mxPoint x="159.89" y="-579.88" as="targetPoint" /> + <mxPoint x="138.83000000000004" y="120" as="sourcePoint" /> + <mxPoint x="138.83000000000004" y="160" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-6" 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="BCmyCWQthUHdnjgJXqds-1" source="BCmyCWQthUHdnjgJXqds-4" edge="1"> + <mxCell id="kuW-ZrGGYPgx6TDovwxI-0" value="SHARED PUBLIC INPUTS" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=11;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> + <mxGeometry x="458" y="354.01" width="319" height="40" as="geometry" /> + </mxCell> + <mxCell id="kuW-ZrGGYPgx6TDovwxI-1" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> + <mxGeometry x="606.87" y="176.93" width="20" height="326.16" as="geometry" /> + </mxCell> + <mxCell id="kuW-ZrGGYPgx6TDovwxI-2" 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="vWYVikCydA5HvOjBRwIf-1" vertex="1"> + <mxGeometry x="73" y="354.01" width="360" height="40" as="geometry" /> + </mxCell> + <mxCell id="kuW-ZrGGYPgx6TDovwxI-3" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> + <mxGeometry x="242.82" y="156.88" width="20" height="366.25" as="geometry" /> + </mxCell> + <mxCell id="KYVxoJJrrN6A2haL3CTe-1" value="<div style="font-size: 11px;">$$\text{authenticationProof}_i$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> + <mxGeometry x="70" y="80" width="140" height="40" as="geometry" /> + </mxCell> + <mxCell id="YQak7JiX628nDuEKiX8z-1" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="vWYVikCydA5HvOjBRwIf-1" source="YQak7JiX628nDuEKiX8z-0" target="QCU0WVTcZCZ_NDvB6I_U-1" edge="1"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="YQak7JiX628nDuEKiX8z-0" value="recursive SNARK batch verifier" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> + <mxGeometry x="70" y="160" width="710" height="40" as="geometry" /> + </mxCell> + <mxCell id="52VyXC8j5xGTEDYuN6SN-2" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="229.57999999999998" y="-439.88" as="sourcePoint" /> - <mxPoint x="230" y="-219.88000000000034" as="targetPoint" /> + <mxPoint x="259.65999999999997" y="120" as="sourcePoint" /> + <mxPoint x="259.65999999999997" y="160" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-7" value="<div style="font-size: 11px;">$$\text{vote proof}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="150" y="-706.88" width="60" height="40" as="geometry" /> + <mxCell id="52VyXC8j5xGTEDYuN6SN-3" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="339.65999999999997" y="120" as="sourcePoint" /> + <mxPoint x="339.65999999999997" y="160" as="targetPoint" /> + </mxGeometry> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-8" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;fontSize=11;startArrow=none;startFill=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="BCmyCWQthUHdnjgJXqds-1" source="BCmyCWQthUHdnjgJXqds-9" target="BCmyCWQthUHdnjgJXqds-4" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="560" y="-430" as="sourcePoint" /> - <mxPoint x="760" y="-460.88" as="targetPoint" /> - <Array as="points"> - <mxPoint x="512" y="-430" /> - <mxPoint x="280" y="-430" /> - </Array> + <mxCell id="52VyXC8j5xGTEDYuN6SN-4" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="409.66" y="120" as="sourcePoint" /> + <mxPoint x="409.66" y="160" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-9" value="$$\text{public inputs}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" parent="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="421.51" y="-499.88" width="180" height="40" as="geometry" /> + <mxCell id="52VyXC8j5xGTEDYuN6SN-5" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="484.83" y="120" as="sourcePoint" /> + <mxPoint x="484.83" y="160" as="targetPoint" /> + </mxGeometry> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-10" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="BCmyCWQthUHdnjgJXqds-1" source="BCmyCWQthUHdnjgJXqds-11" target="BCmyCWQthUHdnjgJXqds-9" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="510" y="-499.88" as="targetPoint" /> + <mxCell id="52VyXC8j5xGTEDYuN6SN-6" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="574.83" y="120" as="sourcePoint" /> + <mxPoint x="574.83" y="160" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-11" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="500.90999999999997" y="-867.53" width="21.21" height="419.25" as="geometry" /> + <mxCell id="52VyXC8j5xGTEDYuN6SN-7" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="659.83" y="120" as="sourcePoint" /> + <mxPoint x="659.83" y="160" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="52VyXC8j5xGTEDYuN6SN-8" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="744.83" y="120" as="sourcePoint" /> + <mxPoint x="744.83" y="160" as="targetPoint" /> + </mxGeometry> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-12" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="BCmyCWQthUHdnjgJXqds-1" source="BCmyCWQthUHdnjgJXqds-13" target="BCmyCWQthUHdnjgJXqds-14" edge="1"> + </root> + </mxGraphModel> + </diagram> + <diagram name="4. state-transition-circuit" id="x6B-zyxiSRkjN1jwR15T"> + <mxGraphModel dx="2642" dy="1760" 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="ZdTqr67gGV_Two7x-mBu-0" /> + <mxCell id="ZdTqr67gGV_Two7x-mBu-1" parent="ZdTqr67gGV_Two7x-mBu-0" /> + <mxCell id="phJliGzTQF7XW9zZiR-q-19" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.727;entryY=-0.02;entryDx=0;entryDy=0;entryPerimeter=0;" parent="ZdTqr67gGV_Two7x-mBu-1" source="ZdTqr67gGV_Two7x-mBu-4" target="JGRwFc0fyMI5h4bvW3bD-0" edge="1"> <mxGeometry relative="1" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-13" value="$$pk$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="1050" y="-706.88" width="60" height="40" as="geometry" /> + <mxCell id="ZdTqr67gGV_Two7x-mBu-4" value="$$\text{voteID}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="120" y="40" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="ZdTqr67gGV_Two7x-mBu-9" value="$$\text{censusRoot}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="440" y="-10" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="ZdTqr67gGV_Two7x-mBu-10" value="<div>$$\text{ballotMode}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="440" y="-110" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="ZdTqr67gGV_Two7x-mBu-11" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="440" y="-60" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-14" value="$$\text{Hash}(pk)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="1040" y="-589.88" width="80" height="40" as="geometry" /> + <mxCell id="phJliGzTQF7XW9zZiR-q-13" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="ZdTqr67gGV_Two7x-mBu-1" source="ZdTqr67gGV_Two7x-mBu-12" target="phJliGzTQF7XW9zZiR-q-1" edge="1"> + <mxGeometry relative="1" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-15" value="$$\text{censusProof}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="770" y="-706.88" width="80" height="40" as="geometry" /> + <mxCell id="ZdTqr67gGV_Two7x-mBu-12" value="$$(C_1, C_2)_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="320" y="40" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-16" 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="BCmyCWQthUHdnjgJXqds-1" source="BCmyCWQthUHdnjgJXqds-17" target="BCmyCWQthUHdnjgJXqds-21" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1240" y="-299.88" as="targetPoint" /> - </mxGeometry> + <mxCell id="ZdTqr67gGV_Two7x-mBu-13" value="<div>$$\text{processID}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="440" y="40" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-17" value="$$\text{signature}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="1200" y="-706.88" width="80" height="40" as="geometry" /> + <mxCell id="ZdTqr67gGV_Two7x-mBu-14" value="$$pk_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="120" y="-10" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-18" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="BCmyCWQthUHdnjgJXqds-1" source="BCmyCWQthUHdnjgJXqds-19" edge="1"> + <mxCell id="phJliGzTQF7XW9zZiR-q-21" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="ZdTqr67gGV_Two7x-mBu-1" source="ZdTqr67gGV_Two7x-mBu-32" edge="1"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="900" y="-460" as="targetPoint" /> + <mxPoint x="-100" y="160" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-19" value="$$\text{censusRoot}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="860" y="-706.88" width="80" height="40" as="geometry" /> + <mxCell id="ZdTqr67gGV_Two7x-mBu-32" value="<div style="font-size: 11px;">$$\text{aggregationProof}_i$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="-160" y="40" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-20" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="BCmyCWQthUHdnjgJXqds-1" source="BCmyCWQthUHdnjgJXqds-21" edge="1"> + <mxCell id="xnlEkFcDW3wDAF-mUqor-2" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="ZdTqr67gGV_Two7x-mBu-1" source="JGRwFc0fyMI5h4bvW3bD-0" target="xnlEkFcDW3wDAF-mUqor-0" edge="1"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="1200" y="-219.88000000000034" as="targetPoint" /> + <mxPoint x="60" y="270" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-21" value="$$\text{Signature.verify}_{pk}(\text{voteID, signature})$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" parent="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="1100" y="-309.88" width="200" height="40" as="geometry" /> + <mxCell id="JGRwFc0fyMI5h4bvW3bD-0" value="recursive SNARK batch verifier" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="-160" y="160" width="440" height="40" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-22" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;startArrow=oval;startFill=1;" parent="BCmyCWQthUHdnjgJXqds-1" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1080" y="-619.88" as="sourcePoint" /> - <mxPoint x="1200" y="-309.88" as="targetPoint" /> - <Array as="points"> - <mxPoint x="1200" y="-619.88" /> - </Array> - </mxGeometry> + <mxCell id="tK7HVng925d0syRrVfO4-0" value="AGGREGATION VERIFICATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="-170" y="440" width="440" height="40" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-23" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;startArrow=oval;startFill=1;jumpStyle=arc;" parent="BCmyCWQthUHdnjgJXqds-1" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="950" y="-530" as="sourcePoint" /> - <mxPoint x="950" y="-460" as="targetPoint" /> - <Array as="points"> - <mxPoint x="950" y="-470" /> - </Array> - </mxGeometry> + <mxCell id="d2DoWqZH1p_f5rfd7LTq-0" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="42.18" y="202.82" width="20" height="435" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-24" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="BCmyCWQthUHdnjgJXqds-1" source="BCmyCWQthUHdnjgJXqds-25" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="880" y="-219.88000000000034" as="targetPoint" /> - </mxGeometry> + <mxCell id="wiVq041o4hXXWoejm4On-0" value="TRANSITION VERIFICATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=11;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="720" y="440" width="400" height="40" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-25" value="<div>$$\text{MT.verify}((\text{weight, address}), \text{censusProof, censusRoot})$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="720" y="-459.88" width="320" height="40" as="geometry" /> + <mxCell id="wiVq041o4hXXWoejm4On-1" value="VOTES COUNT" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="480" y="440" width="200" height="40" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-26" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;exitPerimeter=0;startArrow=oval;startFill=1;" parent="BCmyCWQthUHdnjgJXqds-1" source="BCmyCWQthUHdnjgJXqds-11" edge="1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="719.58" y="-619.88" as="sourcePoint" /> - <mxPoint x="770" y="-460" as="targetPoint" /> - <Array as="points"> - <mxPoint x="721" y="-499.88" /> - <mxPoint x="770" y="-500" /> - </Array> - </mxGeometry> + <mxCell id="phJliGzTQF7XW9zZiR-q-0" value="VOTES REENCRYPTION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#ffe6cc;strokeColor=#d79b00;fontSize=11;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="290" y="440" width="140" height="40" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-27" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="BCmyCWQthUHdnjgJXqds-1" source="BCmyCWQthUHdnjgJXqds-15" edge="1"> + <mxCell id="phJliGzTQF7XW9zZiR-q-11" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.083;entryY=-0.018;entryDx=0;entryDy=0;entryPerimeter=0;" parent="ZdTqr67gGV_Two7x-mBu-1" source="phJliGzTQF7XW9zZiR-q-1" target="phJliGzTQF7XW9zZiR-q-10" edge="1"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="810" y="-460" as="targetPoint" /> - <mxPoint x="819.71" y="-659.88" as="sourcePoint" /> + <mxPoint x="710" y="300" as="targetPoint" /> <Array as="points"> - <mxPoint x="810" y="-460" /> + <mxPoint x="360" y="220" /> + <mxPoint x="680" y="220" /> + <mxPoint x="680" y="300" /> + <mxPoint x="680" y="300" /> </Array> </mxGeometry> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-28" 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="BCmyCWQthUHdnjgJXqds-1" source="BCmyCWQthUHdnjgJXqds-14" target="BCmyCWQthUHdnjgJXqds-46" edge="1"> + <mxCell id="phJliGzTQF7XW9zZiR-q-1" value="$$ReEnc()$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="320" y="160" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="phJliGzTQF7XW9zZiR-q-25" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.271;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" parent="ZdTqr67gGV_Two7x-mBu-1" source="phJliGzTQF7XW9zZiR-q-3" target="phJliGzTQF7XW9zZiR-q-10" edge="1"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="1080" y="-549.88" as="sourcePoint" /> - <mxPoint x="618" y="-499.88" as="targetPoint" /> - <Array as="points"> - <mxPoint x="1080" y="-529.88" /> - </Array> + <mxPoint x="770" y="190" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-29" value="VOTER'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="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="130" y="-139.25" width="560" height="40" as="geometry" /> + <mxCell id="phJliGzTQF7XW9zZiR-q-3" value="<div>$$\text{totalNewVotes}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="720" y="80" width="100" height="40" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-30" 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="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="730" y="-139.25" width="307.19" height="40" as="geometry" /> + <mxCell id="phJliGzTQF7XW9zZiR-q-4" value="<div>$$\text{totalOverwrites}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="720" y="30" width="100" height="40" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-31" 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="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="1080" y="-139.25" width="230" height="40" as="geometry" /> + <mxCell id="phJliGzTQF7XW9zZiR-q-5" value="$$AddBN254()$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="520" y="320" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-32" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="400" y="-429.88" width="20" height="561.25" as="geometry" /> + <mxCell id="phJliGzTQF7XW9zZiR-q-6" value="$$\text{stateRoot}^{\text{old}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="1040" y="30" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-33" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="872.19" y="-302.67999999999995" width="20" height="306.87" as="geometry" /> - </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-34" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="1184.19" y="-268" width="20" height="237.5" as="geometry" /> + <mxCell id="phJliGzTQF7XW9zZiR-q-7" value="$$\text{stateRoot}^{\text{new}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="1040" y="80" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-35" value="" style="endArrow=none;html=1;rounded=0;" parent="BCmyCWQthUHdnjgJXqds-1" target="BCmyCWQthUHdnjgJXqds-39" edge="1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="459.8" y="-658" as="sourcePoint" /> - <mxPoint x="459.8" y="-678" as="targetPoint" /> + <mxCell id="phJliGzTQF7XW9zZiR-q-27" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="ZdTqr67gGV_Two7x-mBu-1" source="phJliGzTQF7XW9zZiR-q-8" target="phJliGzTQF7XW9zZiR-q-10" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="880" y="215" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-36" value="" style="endArrow=none;html=1;rounded=0;entryX=0.497;entryY=0.247;entryDx=0;entryDy=0;entryPerimeter=0;" parent="BCmyCWQthUHdnjgJXqds-1" target="BCmyCWQthUHdnjgJXqds-38" edge="1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="384.8" y="-658" as="sourcePoint" /> - <mxPoint x="384.8" y="-678" as="targetPoint" /> - </mxGeometry> + <mxCell id="phJliGzTQF7XW9zZiR-q-8" value="merkleTree<br>parameters<br>witness" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="840" y="30" width="80" height="90" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-37" value="" style="endArrow=none;html=1;rounded=0;entryX=0.5;entryY=0.247;entryDx=0;entryDy=0;entryPerimeter=0;" parent="BCmyCWQthUHdnjgJXqds-1" target="BCmyCWQthUHdnjgJXqds-40" edge="1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="529.8" y="-658" as="sourcePoint" /> - <mxPoint x="529.8" y="-678" as="targetPoint" /> - </mxGeometry> + <mxCell id="phJliGzTQF7XW9zZiR-q-9" value="merkleTree<br>state transition proofs" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="940" y="30" width="80" height="90" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-38" value="<div>$$\text{ballotMode}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="350" y="-706.88" width="70" height="40" as="geometry" /> + <mxCell id="phJliGzTQF7XW9zZiR-q-10" value="$$MerkleTreeProcessor()$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="640" y="320" width="480" height="40" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-39" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="430" y="-706.88" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-40" value="$$(C_1, C_2)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="500" y="-706.88" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-41" value="" style="endArrow=none;html=1;rounded=0;entryX=0.455;entryY=0.747;entryDx=0;entryDy=0;entryPerimeter=0;" parent="BCmyCWQthUHdnjgJXqds-1" target="BCmyCWQthUHdnjgJXqds-42" edge="1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="301.88" y="-658" as="sourcePoint" /> - <mxPoint x="301.88" y="-678" as="targetPoint" /> + <mxCell id="phJliGzTQF7XW9zZiR-q-12" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;startArrow=oval;startFill=1;" parent="ZdTqr67gGV_Two7x-mBu-1" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="560" y="220" as="sourcePoint" /> + <mxPoint x="560" y="320" as="targetPoint" /> + <Array as="points"> + <mxPoint x="560" y="230" /> + <mxPoint x="560" y="230" /> + </Array> </mxGeometry> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-42" value="<div>$$\text{processID}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="270" y="-706.88" width="70" height="40" as="geometry" /> - </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-43" value="" style="endArrow=none;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;exitPerimeter=0;startArrow=oval;startFill=1;" parent="BCmyCWQthUHdnjgJXqds-1" edge="1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="620" y="-658" as="sourcePoint" /> - <mxPoint x="620" y="-580" as="targetPoint" /> - <Array as="points" /> + <mxCell id="phJliGzTQF7XW9zZiR-q-14" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;startArrow=oval;startFill=1;" parent="ZdTqr67gGV_Two7x-mBu-1" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="360" y="140" as="sourcePoint" /> + <mxPoint x="240" y="160" as="targetPoint" /> + <Array as="points"> + <mxPoint x="240" y="140" /> + <mxPoint x="240" y="160" /> + </Array> </mxGeometry> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-44" 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;jumpStyle=arc;" parent="BCmyCWQthUHdnjgJXqds-1" edge="1"> + <mxCell id="phJliGzTQF7XW9zZiR-q-22" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;startArrow=oval;startFill=1;jumpStyle=arc;" parent="ZdTqr67gGV_Two7x-mBu-1" edge="1"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="620" y="-669.88" as="sourcePoint" /> - <mxPoint x="1172" y="-308.8800000000001" as="targetPoint" /> + <mxPoint x="480" y="120" as="sourcePoint" /> + <mxPoint x="200" y="160" as="targetPoint" /> <Array as="points"> - <mxPoint x="620" y="-360" /> - <mxPoint x="1172" y="-360" /> + <mxPoint x="320" y="120" /> + <mxPoint x="200" y="120" /> </Array> </mxGeometry> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-45" 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="BCmyCWQthUHdnjgJXqds-1" source="BCmyCWQthUHdnjgJXqds-46" target="BCmyCWQthUHdnjgJXqds-9" edge="1"> + <mxCell id="phJliGzTQF7XW9zZiR-q-23" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;startArrow=none;startFill=0;" parent="ZdTqr67gGV_Two7x-mBu-1" target="phJliGzTQF7XW9zZiR-q-10" edge="1"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="810" y="-499.88" as="targetPoint" /> + <mxPoint x="480" y="80" as="sourcePoint" /> + <mxPoint x="480" y="180" as="targetPoint" /> <Array as="points"> - <mxPoint x="1009" y="-520" /> - <mxPoint x="1000" y="-520" /> - <mxPoint x="1000" y="-530" /> - <mxPoint x="569" y="-530" /> + <mxPoint x="480" y="160" /> + <mxPoint x="720" y="160" /> </Array> </mxGeometry> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-46" value="$$\text{address}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=default;strokeColor=none;fontFamily=Courier New;" parent="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="979" y="-549.88" width="60" height="39.88" as="geometry" /> + <mxCell id="phJliGzTQF7XW9zZiR-q-28" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="ZdTqr67gGV_Two7x-mBu-1" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="979.75" y="120" as="sourcePoint" /> + <mxPoint x="979.75" y="320" as="targetPoint" /> + </mxGeometry> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-47" value="true" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" parent="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="190" y="-219.88" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-48" value="true" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" parent="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="840" y="-219.88" width="80" height="40" as="geometry" /> + <mxCell id="phJliGzTQF7XW9zZiR-q-29" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="ZdTqr67gGV_Two7x-mBu-1" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1079.75" y="120" as="sourcePoint" /> + <mxPoint x="1079.75" y="320" as="targetPoint" /> + </mxGeometry> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-49" value="true" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" parent="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="1160" y="-219.88" width="80" height="40" as="geometry" /> + <mxCell id="xnlEkFcDW3wDAF-mUqor-0" value="true" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="20" y="360" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-52" value="$$\text{weight}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="690" y="-706.88" width="60" height="40" as="geometry" /> + <mxCell id="IpKGK8iQcOz9ALTK2j-a-0" value="$$ReEnc()$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="890" y="200" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="BCmyCWQthUHdnjgJXqds-53" value="$$\text{voteID}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="BCmyCWQthUHdnjgJXqds-1" vertex="1"> - <mxGeometry x="590" y="-706.88" width="60" height="40" as="geometry" /> + <mxCell id="IpKGK8iQcOz9ALTK2j-a-1" value="Old votes also need to be reencrypted! (at least, some)" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="710" y="250" width="400" height="20" as="geometry" /> </mxCell> </root> </mxGraphModel> </diagram> - <diagram name="3. aggregate-circuit" id="88JFnn8AstWJnzEelpN0"> - <mxGraphModel dx="3040" dy="785" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> + <diagram name="Copy of Copy of 4. state-transition-circuit" id="PK6FMuq_bwtaiANtLuxe"> + <mxGraphModel dx="2675" dy="1635" 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="vWYVikCydA5HvOjBRwIf-0" /> - <mxCell id="vWYVikCydA5HvOjBRwIf-1" parent="vWYVikCydA5HvOjBRwIf-0" /> - <mxCell id="LlBItY6GOZu0n2DmgTnU-0" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry x="-110" y="60" width="1150" height="260" as="geometry" /> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-0" /> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-1" parent="D6Gzr2-08hJ62fW1Y4SW-0" /> + <mxCell id="OkW-e4A8a0NEPaUt7MZw-0" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry x="-320" y="-420" width="2000" height="1710" as="geometry" /> </mxCell> - <mxCell id="LlBItY6GOZu0n2DmgTnU-1" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry x="-90" y="135" width="1110" height="95" as="geometry" /> + <mxCell id="0c9yVQNtpXtt_NukVZet-10" value="" style="rounded=0;whiteSpace=wrap;html=1;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="320" y="-310" width="380" height="230" as="geometry" /> </mxCell> - <mxCell id="mhMekiSe2uiXRmLYm047-1" value="$$\text{voteID}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry x="250.00000000000006" y="80" width="60" height="40" as="geometry" /> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-3" value="$$\text{voteID}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="480" y="-190" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="QCU0WVTcZCZ_NDvB6I_U-3" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.038;entryY=0.021;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1" source="VWBkZtje_WCXQabFDbId-0"> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-1" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="D6Gzr2-08hJ62fW1Y4SW-10" target="yhMjlz7L6oX0I03LSNM_-0" edge="1"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="114.95999999999981" y="160.84000000000003" as="targetPoint" /> + <mxPoint x="640" y="-30" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="VWBkZtje_WCXQabFDbId-0" value="<div style="font-size: 11px;">$$\text{voteProof}_i$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry x="80" y="80" width="70" height="40" as="geometry" /> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-10" value="$$pk_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="600" y="-140" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="VWBkZtje_WCXQabFDbId-2" value="$$\text{censusProof}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry x="470" y="80.00000000000011" width="80" height="40" as="geometry" /> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-21" value="$$ReEnc()$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="320" y="850" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="VWBkZtje_WCXQabFDbId-3" value="$$\text{signature}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry x="570" y="80" width="80" height="40" as="geometry" /> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-26" value="$$\text{stateRoot}^{\text{old}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="1160" y="-120" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="VWBkZtje_WCXQabFDbId-4" value="$$\text{censusRoot}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry x="930" y="80" width="70" height="40" as="geometry" /> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-31" value="<div><b>INITIAL STATE VERIFICATION</b></div><div><b><br></b></div><div><b>1.</b> Verify MT proofs that public parameters are in leafs 1, 2, etc.</div><div><b>2.</b> Verify that none of the voteIDs are not part of the tree.<br><b>3.</b> For each of the (c1, c2) and pks, verify their MTproofs.<br><i>If it is a non-inclusion proof, the vote is considered a newVote, if the address is already in the tree, it is considered overwrite.</i></div><div><b>4.</b> Verify that newVoteOverwirtec, etc. are also all part of the tree in leafs... (+ root is the current root).</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="360" y="120" width="880" height="120" as="geometry" /> </mxCell> - <mxCell id="VWBkZtje_WCXQabFDbId-5" value="<div>$$\text{ballotMode}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry x="760" y="80.00000000000011" width="70" height="40" as="geometry" /> + <mxCell id="cint6MjWe4dI7ch5Elqv-3" value="For some leafs, reencrypt the votes." style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="440" y="850" width="720" height="40" as="geometry" /> </mxCell> - <mxCell id="VWBkZtje_WCXQabFDbId-6" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry x="850" y="80.00000000000011" width="60" height="40" as="geometry" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-2" value="<div>$$\text{MTProofs}_i$$</div><div>(inclusion or non-inclusion)</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="720" y="-200" width="80" height="120" as="geometry" /> </mxCell> - <mxCell id="VWBkZtje_WCXQabFDbId-7" value="$$(C_1, C_2)_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry x="170" y="80.00000000000011" width="60" height="40" as="geometry" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-3" value="<div align="center"><b>NEW VOTES</b></div><div align="left"><br></div><div align="left">&nbsp; &nbsp; &nbsp;1. Reencrypt (C1, C2) = (C1', C2')<br>&nbsp; &nbsp; &nbsp;2. Include address, voteID and (C1', C2')</div><div align="left">&nbsp; &nbsp; &nbsp;3. Update numNewVotes</div><div align="left">&nbsp; &nbsp; &nbsp;4. Update newResultsAdd</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=left;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="440" y="560" width="320" height="120" as="geometry" /> </mxCell> - <mxCell id="VWBkZtje_WCXQabFDbId-8" value="<div>$$\text{processID}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry x="670" y="80.00000000000011" width="70" height="40" as="geometry" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-4" value="<div align="center"><b>OVERWRITES<br><br></b></div><div align="left">&nbsp; &nbsp; &nbsp;1. Reencrypt (C1, C2) = (C1', C2')<br>&nbsp; &nbsp; &nbsp;2. Update vote associated to address to<br>&nbsp; &nbsp; &nbsp; &nbsp; (C1', C2') and include voteID.</div><div align="left">&nbsp; &nbsp; &nbsp;3. Update numNewOverwrites</div><div align="left">&nbsp; &nbsp; &nbsp;4. Update newResultsAdd and newResultsSub</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="840" y="560" width="320" height="120" as="geometry" /> </mxCell> - <mxCell id="VWBkZtje_WCXQabFDbId-11" value="$$pk_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry x="330" y="80" width="40" height="40" as="geometry" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-5" value="Those votes that are newVotes<br>(address is not part of the MT)" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="440" y="440" width="320" height="50" as="geometry" /> </mxCell> - <mxCell id="VWBkZtje_WCXQabFDbId-12" value="$$\text{weight}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry x="390" y="80" width="60" height="40" as="geometry" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-6" value="Those votes that are overwrites<br>(address is not part of the MT)" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="840" y="440" width="320" height="50" as="geometry" /> </mxCell> - <mxCell id="QCU0WVTcZCZ_NDvB6I_U-1" value="true" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" vertex="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry x="425" y="270" width="80" height="40" as="geometry" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-7" value="$$\text{address}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="700" y="360" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="QCU0WVTcZCZ_NDvB6I_U-7" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="509.71" y="120" as="sourcePoint" /> - <mxPoint x="509.71" y="160" as="targetPoint" /> - </mxGeometry> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-8" value="$$\text{voteID}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="600" y="310" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="QCU0WVTcZCZ_NDvB6I_U-8" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="279.71" y="120" as="sourcePoint" /> - <mxPoint x="279.71" y="160" as="targetPoint" /> - </mxGeometry> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-9" value="$$(C_1, C_2)_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="600" y="360" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="QCU0WVTcZCZ_NDvB6I_U-9" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="199.70999999999998" y="120" as="sourcePoint" /> - <mxPoint x="199.70999999999998" y="160" as="targetPoint" /> - </mxGeometry> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-11" value="$$\text{stateRoot}^{\text{old}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="1080" y="360" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="QCU0WVTcZCZ_NDvB6I_U-10" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="349.71" y="120" as="sourcePoint" /> - <mxPoint x="349.71" y="160" as="targetPoint" /> - </mxGeometry> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-12" value="<div>$$\text{numNewVotes}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="800" y="360" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="QCU0WVTcZCZ_NDvB6I_U-11" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="419.71" y="120" as="sourcePoint" /> - <mxPoint x="419.71" y="160" as="targetPoint" /> - </mxGeometry> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-13" value="<div>$$\text{numNewOverwrites}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="800" y="310" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="QCU0WVTcZCZ_NDvB6I_U-13" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="609.71" y="120" as="sourcePoint" /> - <mxPoint x="609.71" y="160" as="targetPoint" /> - </mxGeometry> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-14" value="<font style="font-size: 14px;">OUTPUTS</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;fontColor=#333333;fontStyle=1" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="320" y="310" width="120" height="90" as="geometry" /> </mxCell> - <mxCell id="QCU0WVTcZCZ_NDvB6I_U-14" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="704.83" y="120" as="sourcePoint" /> - <mxPoint x="704.83" y="160" as="targetPoint" /> - </mxGeometry> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-17" value="<div>$$\text{newResultsAdd}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="930" y="310" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="QCU0WVTcZCZ_NDvB6I_U-15" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="794.83" y="120" as="sourcePoint" /> - <mxPoint x="794.83" y="160" as="targetPoint" /> - </mxGeometry> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-18" value="<div>$$\text{newResultsSub}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="930" y="360" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="QCU0WVTcZCZ_NDvB6I_U-16" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="879.83" y="120" as="sourcePoint" /> - <mxPoint x="879.83" y="160" as="targetPoint" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-22" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="cint6MjWe4dI7ch5Elqv-3" target="cint6MjWe4dI7ch5Elqv-3" edge="1"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-30" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="xZoSSO8U0oyJhFnYmJBx-23" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1200" y="360" as="targetPoint" /> + <Array as="points"> + <mxPoint x="1280" y="790" /> + <mxPoint x="1280" y="360" /> + </Array> </mxGeometry> </mxCell> - <mxCell id="QCU0WVTcZCZ_NDvB6I_U-17" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="964.83" y="120" as="sourcePoint" /> - <mxPoint x="964.83" y="160" as="targetPoint" /> - </mxGeometry> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-23" value="$$\text{stateRoot}^{\text{new}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="900" y="770" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="kuW-ZrGGYPgx6TDovwxI-0" value="SHARED POLLING PUBLIC INPUTS" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=11;" vertex="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry x="678" y="354.01" width="319" height="40" as="geometry" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-24" value="<div>$$\text{numNewVotes}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="620" y="770" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="kuW-ZrGGYPgx6TDovwxI-1" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry x="826.87" y="176.93" width="20" height="326.16" as="geometry" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-25" value="<div>$$\text{numNewOverwrites}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="620" y="720" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="kuW-ZrGGYPgx6TDovwxI-2" 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="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry x="-64" y="354.01" width="720" height="40" as="geometry" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-26" value="<div>$$\text{newResultsAdd}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="750" y="720" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="kuW-ZrGGYPgx6TDovwxI-3" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry x="286.69" y="-22.5" width="20" height="725" as="geometry" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-27" value="<div>$$\text{newResultsSub}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="750" y="770" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="KYVxoJJrrN6A2haL3CTe-0" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1" source="KYVxoJJrrN6A2haL3CTe-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="-5" y="160" as="targetPoint" /> - </mxGeometry> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-31" value="<div>$$\text{newResultsAdd}^{old} = \text{newResults}^{new}$$<br><br>ETC. PER TOTES LES 5 VARIABLES</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="1320" y="480" width="240" height="200" as="geometry" /> </mxCell> - <mxCell id="KYVxoJJrrN6A2haL3CTe-1" value="<div style="font-size: 11px;">$$\text{authenticationProof}_i$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry x="-70" y="80" width="130" height="40" as="geometry" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-32" value="<div>Caixa amb línies discontínues i escriure <i>for every i</i></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="1320" y="320" width="240" height="80" as="geometry" /> </mxCell> - <mxCell id="YQak7JiX628nDuEKiX8z-1" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1" source="YQak7JiX628nDuEKiX8z-0" target="QCU0WVTcZCZ_NDvB6I_U-1"> - <mxGeometry relative="1" as="geometry" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-34" value="$$\text{stateRoot}^{\text{new}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="910" y="1010" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="YQak7JiX628nDuEKiX8z-0" value="recursive SNARK batch verifier" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" vertex="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry x="-70" y="160" width="1070" height="40" as="geometry" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-35" value="<div>$$\text{numNewVotes}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="630" y="1010" width="120" height="40" as="geometry" /> </mxCell> - </root> - </mxGraphModel> - </diagram> - <diagram name="Copy of 3. aggregate-circuit" id="V9wotwbknZIt10WEv3Fl"> - <mxGraphModel grid="1" page="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> - <root> - <mxCell id="zN2cJIjQaCI12ElQYv9r-0" /> - <mxCell id="zN2cJIjQaCI12ElQYv9r-1" parent="zN2cJIjQaCI12ElQYv9r-0" /> - <mxCell id="zN2cJIjQaCI12ElQYv9r-2" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry x="40" y="60" width="1000" height="260" as="geometry" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-36" value="<div>$$\text{numNewOverwrites}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="630" y="960" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-3" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="zN2cJIjQaCI12ElQYv9r-1" source="zN2cJIjQaCI12ElQYv9r-4" target="zN2cJIjQaCI12ElQYv9r-19"> - <mxGeometry relative="1" as="geometry" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-37" value="<div>$$\text{newResultsAdd}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="760" y="960" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-4" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry x="60" y="135" width="960" height="95" as="geometry" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-38" value="<div>$$\text{newResultsSub}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="760" y="1010" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-5" value="$$\text{voteID}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry x="250.00000000000006" y="80" width="60" height="40" as="geometry" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-39" value="Posar NEW i això seran<br>els outputs finals!" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="1300" y="990" width="240" height="60" as="geometry" /> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-6" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.038;entryY=0.021;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="zN2cJIjQaCI12ElQYv9r-1" source="zN2cJIjQaCI12ElQYv9r-7" target="zN2cJIjQaCI12ElQYv9r-17"> - <mxGeometry relative="1" as="geometry" /> + <mxCell id="0c9yVQNtpXtt_NukVZet-3" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="kZ82RYXQcsU66MAzuXJf-0" target="kZ82RYXQcsU66MAzuXJf-1" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="-145" y="-10" as="targetPoint" /> + </mxGeometry> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-7" value="<div style="font-size: 11px;">$$\text{voteProof}_i$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry x="80" y="80" width="70" height="40" as="geometry" /> + <mxCell id="kZ82RYXQcsU66MAzuXJf-0" value="<div style="font-size: 11px;">$$\text{aggregationProof}_i$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="-165" y="-120" width="130" height="40" as="geometry" /> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-8" value="$$\text{censusProof}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry x="470" y="80.00000000000011" width="80" height="40" as="geometry" /> + <mxCell id="kZ82RYXQcsU66MAzuXJf-1" value="recursive SNARK batch verifier" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="-210" y="120" width="440" height="120" as="geometry" /> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-9" value="$$\text{signature}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry x="570" y="80" width="80" height="40" as="geometry" /> + <mxCell id="0c9yVQNtpXtt_NukVZet-4" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="D6Gzr2-08hJ62fW1Y4SW-3" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="520.09" y="-60" as="sourcePoint" /> + <mxPoint x="520" y="120" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-10" value="$$\text{censusRoot}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry x="930" y="80" width="70" height="40" as="geometry" /> + <mxCell id="0c9yVQNtpXtt_NukVZet-1" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.75;entryY=0;entryDx=0;entryDy=0;startArrow=oval;startFill=1;jumpStyle=arc;" parent="D6Gzr2-08hJ62fW1Y4SW-1" target="kZ82RYXQcsU66MAzuXJf-1" edge="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="320" y="-120" as="sourcePoint" /> + <mxPoint x="570" y="-110" as="targetPoint" /> + <Array as="points"> + <mxPoint x="120" y="-120" /> + <mxPoint x="120" /> + </Array> + </mxGeometry> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-11" value="<div>$$\text{ballotMode}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry x="760" y="80.00000000000011" width="70" height="40" as="geometry" /> + <mxCell id="0c9yVQNtpXtt_NukVZet-7" value="All leafs of the tree are at the end made public?" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="440" y="1160" width="720" height="40" as="geometry" /> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-12" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry x="850" y="80.00000000000011" width="60" height="40" as="geometry" /> + <mxCell id="yhMjlz7L6oX0I03LSNM_-1" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="yhMjlz7L6oX0I03LSNM_-0" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="640.0222222222224" y="29.88000000000011" as="sourcePoint" /> + <mxPoint x="640" y="120" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-13" value="$$(C_1, C_2)_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry x="170" y="80.00000000000011" width="60" height="40" as="geometry" /> + <mxCell id="yhMjlz7L6oX0I03LSNM_-0" value="$$\text{Hash}(pk_i)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="600" y="-40" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-14" value="<div>$$\text{processID}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry x="670" y="80.00000000000011" width="70" height="40" as="geometry" /> + <mxCell id="D1O2pzwOY9OCH-spyj_d-0" value="$$\text{address}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=default;strokeColor=none;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="610" y="20" width="60" height="39.88" as="geometry" /> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-15" value="$$pk_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry x="330" y="80" width="40" height="40" as="geometry" /> + <mxCell id="yhMjlz7L6oX0I03LSNM_-5" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="758.95" y="-80" as="sourcePoint" /> + <mxPoint x="759" y="120" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-16" value="$$\text{weight}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry x="390" y="80" width="60" height="40" as="geometry" /> + <mxCell id="yhMjlz7L6oX0I03LSNM_-6" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="D6Gzr2-08hJ62fW1Y4SW-24" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="898.95" y="-80" as="sourcePoint" /> + <mxPoint x="900" y="120" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-17" value="recursive SNARK batch verifier" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" vertex="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry x="80" y="160" width="920" height="40" as="geometry" /> + <mxCell id="yhMjlz7L6oX0I03LSNM_-7" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="xZoSSO8U0oyJhFnYmJBx-20" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1059.47" y="-80" as="sourcePoint" /> + <mxPoint x="1059" y="120" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-18" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;" edge="1" parent="zN2cJIjQaCI12ElQYv9r-1" source="zN2cJIjQaCI12ElQYv9r-17"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="519.83" y="200" as="sourcePoint" /> - <mxPoint x="540" y="270" as="targetPoint" /> + <mxCell id="yhMjlz7L6oX0I03LSNM_-8" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1199.47" y="-80" as="sourcePoint" /> + <mxPoint x="1199" y="120" as="targetPoint" /> + <Array as="points" /> </mxGeometry> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-19" value="true" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" vertex="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry x="500" y="270" width="80" height="40" as="geometry" /> + <mxCell id="0c9yVQNtpXtt_NukVZet-11" value="public inputs" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="160" y="-140" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-20" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="509.71" y="120" as="sourcePoint" /> - <mxPoint x="509.71" y="160" as="targetPoint" /> + <mxCell id="jH9XEzTzumLLzgrA1KFi-0" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="kZ82RYXQcsU66MAzuXJf-1" target="jH9XEzTzumLLzgrA1KFi-1" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint y="310" as="targetPoint" /> + <mxPoint y="240" as="sourcePoint" /> </mxGeometry> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-21" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="279.71" y="120" as="sourcePoint" /> - <mxPoint x="279.71" y="160" as="targetPoint" /> - </mxGeometry> + <mxCell id="jH9XEzTzumLLzgrA1KFi-1" value="true" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="-30" y="1000" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-22" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="199.70999999999998" y="120" as="sourcePoint" /> - <mxPoint x="199.70999999999998" y="160" as="targetPoint" /> + <mxCell id="0c9yVQNtpXtt_NukVZet-8" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="D6Gzr2-08hJ62fW1Y4SW-4" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="400" y="-80" as="sourcePoint" /> + <mxPoint x="400" y="120" as="targetPoint" /> + <Array as="points" /> </mxGeometry> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-23" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="349.71" y="120" as="sourcePoint" /> - <mxPoint x="349.71" y="160" as="targetPoint" /> - </mxGeometry> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-4" value="$$\text{censusRoot}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="360" y="-290" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-24" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="419.71" y="120" as="sourcePoint" /> - <mxPoint x="419.71" y="160" as="targetPoint" /> - </mxGeometry> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-5" value="<div>$$\text{ballotMode}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="360" y="-240" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-25" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="609.71" y="120" as="sourcePoint" /> - <mxPoint x="609.71" y="160" as="targetPoint" /> - </mxGeometry> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-6" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="360" y="-190" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-26" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="704.83" y="120" as="sourcePoint" /> - <mxPoint x="704.83" y="160" as="targetPoint" /> - </mxGeometry> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-9" value="<div>$$\text{processID}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="360" y="-140" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-27" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="794.83" y="120" as="sourcePoint" /> - <mxPoint x="794.83" y="160" as="targetPoint" /> - </mxGeometry> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-8" value="$$(C_1, C_2)_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="480" y="-140" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-28" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="879.83" y="120" as="sourcePoint" /> - <mxPoint x="879.83" y="160" as="targetPoint" /> - </mxGeometry> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-23" value="<div>$$\text{numNewVotes}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="840" y="-120" width="120" height="40" as="geometry" /> + </mxCell> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-24" value="<div>$$\text{numNewOverwrites}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="840" y="-170" width="120" height="40" as="geometry" /> + </mxCell> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-20" value="<div>$$\text{newResultsAdd}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="1000" y="-170" width="120" height="40" as="geometry" /> + </mxCell> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-21" value="<div>$$\text{newResultsSub}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="1000" y="-120" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-29" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="964.83" y="120" as="sourcePoint" /> - <mxPoint x="964.83" y="160" as="targetPoint" /> - </mxGeometry> + <mxCell id="aSzBlrVS5-gQ2GT8Me-F-0" value="$$AddBN254()$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="960" y="720" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-30" value="SHARED POLLING PUBLIC INPUTS" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=11;" vertex="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry x="678" y="354.01" width="319" height="40" as="geometry" /> + <mxCell id="NTlY1420kHvwssuNSfi3-0" value="CAL LA PK PER A REENCRIPTAR" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="120" y="830" width="160" height="80" as="geometry" /> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-31" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry x="826.87" y="176.93" width="20" height="326.16" as="geometry" /> + <mxCell id="vYktKLvkopS5NTYujC_s-1" value="TAMBÉ BLINDER <i>k</i>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry x="120" y="920" width="160" height="40" as="geometry" /> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-32" 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="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry x="90" y="354.01" width="570" height="40" as="geometry" /> + <mxCell id="vYktKLvkopS5NTYujC_s-2" value="RATIO / PERCENTATGE DE REENCRYPTIONS?" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry x="120" y="660" width="160" height="140" as="geometry" /> </mxCell> - <mxCell id="zN2cJIjQaCI12ElQYv9r-33" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="zN2cJIjQaCI12ElQYv9r-1"> - <mxGeometry x="364.19" y="55" width="20" height="570" as="geometry" /> + <mxCell id="-tYBgsssYuGcHSFQUePz-4" value="ON VAN ELS BLOBS?" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fontStyle=1" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry x="120" y="1100" width="160" height="140" as="geometry" /> </mxCell> - </root> - </mxGraphModel> - </diagram> - <diagram id="QHg5vFNSHn3RRpshBNeP" name="4. state-transition-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="0" shadow="0"> - <root> - <mxCell id="0" /> - <mxCell id="1" parent="0" /> </root> </mxGraphModel> </diagram>
@@ -14,11 +14,11 @@ \begin{itemize}
\item Ethereum blockchain (say transactions have a cost fee). \item Ethereum smart contracts. - \textit{Old text: Ethereum smart contracts are employed to orchestrate the voting process, manage state transitions, and store critical data, such as the current state root and encryption public keys. These smart contracts provide a trustless environment, ensuring that all participants can be confident that the voting process rules are correctly enforced.} + \textit{Ethereum smart contracts are employed to orchestrate the voting process, manage state transitions, and store critical data, such as the current state root and encryption public keys. These smart contracts provide a trustless environment, ensuring that all participants can be confident that the voting process rules are correctly enforced.} \item Ethereum data blobs. - \textit{Old text: EIP-4844 is used for data availability, enabling the storage of state transition data in the form of Ethereum data blobs. This mechanism allows sequencers to collaborate on the construction and verification of the voting process state, ensuring efficient and decentralized data availability.} + \textit{EIP-4844 is used for data availability, enabling the storage of state transition data in the form of Ethereum data blobs. This mechanism allows sequencers to collaborate on the construction and verification of the voting process state, ensuring efficient and decentralized data availability.} \end{itemize}
@@ -1,8 +1,6 @@
% !TeX root = ../build/main.tex -In this section, we detail the cryptographic primitives used in Section~\ref{sec:vocdoni-protocol}. We briefly introduce elliptic curves, hash functions, Merkle trees, encryption schemes, and proof systems used in the protocol. We also specify at each step the concrete parameters with which each of the primitives is instantiated.\\ - -\martai{Maybe it should go under the protocol section?} +In this section, we detail the cryptographic primitives used in Section~\ref{sec:vocdoni-protocol}. We briefly introduce elliptic curves, hash functions, Merkle trees, encryption schemes, and proof systems used in the protocol. We also specify at each step the concrete parameters with which each of the primitives is instantiated. %\paragraph{Notation.} Throughout the document, we use the following conventions. Given a set $S$, we denote sampling an element $x$ uniformly at random from $S$ by $x \sample S$. We denote all bitstrings of arbitrary length by $\{0,1\}^*$. %Any group $\G$ used is of a large prime order, and we assume that the discrete logarithm problem is hard in $\G$. If two elements are denoted by the same letter in upper and lower case, e.g. $a, A$, this often means that $A$ is a public key corresponding to the secret key $a$.@@ -11,7 +9,7 @@
\subsection{Elliptic curves} \label{sec:cryptographic-primitives:elliptic-curves} -\Davinci relies on multiple elliptic curves to ensure interoperability with Ethereum, compatibility with available cryptographic primitives, and efficient in-circuit operations. On the one hand, SECP256K1~\cite{brown10sec} is used because Ethereum public keys are elements of this curve. As \Davinci assumes each voter holds a standard Ethereum address, cryptographic operations such as digital signatures and identity verification rely on SECP256K1 to match the Ethereum ecosystem. On the other hand, BN254~\cite{jancar20bn256} is chosen because it is the curve supported by Ethereum's precompiled contracts for zero-knowledge proof verification, which makes it ideal for verifying SNARK proofs on-chain with minimal gas cost. then, BabyJubjub~\cite{belles21twisted} is used as an inner curve for elliptic curve operations within arithmetic circuits. Finally, BLS12-377~\cite{bowe20zexe} and BW6-761~\cite{elhousni20optimized} are used to enable recursive proof composition. More specifically, BLS12-377 acts as the inner curve for constructing proofs, while BW6-761 serves as the outer curve that verifies those proofs within larger zkSNARK circuits. This pairing enables succinct verification and composability of zkSNARKs within other zkSNARKs, which we use for \davinci’s aggregation and state transition logic. Below, we give the details of these curves. +\Davinci relies on multiple elliptic curves to ensure interoperability with Ethereum, compatibility with available cryptographic primitives, and efficient in-circuit operations. On the one hand, SECP256K1~\cite{brown10sec} is used because Ethereum public keys are elements of this curve. As \Davinci assumes each voter holds a standard Ethereum address, cryptographic operations such as digital signatures and identity verification rely on SECP256K1 to match the Ethereum ecosystem. On the other hand, BN254~\cite{jancar20bn256} is chosen because it is the curve supported by Ethereum's precompiled contracts for ZK proof verification, which makes it ideal for verifying SNARK proofs on-chain with minimal gas cost. then, BabyJubjub~\cite{belles21twisted} is used as an inner curve for elliptic curve operations within arithmetic circuits. Finally, BLS12-377~\cite{bowe20zexe} and BW6-761~\cite{elhousni20optimized} are used to enable recursive proof composition. More specifically, BLS12-377 acts as the inner curve for constructing proofs, while BW6-761 serves as the outer curve that verifies those proofs within larger ZK-SNARK circuits. This pairing enables succinct verification and composability of ZK-SNARKs within other ZK-SNARKs, which we use for \davinci’s aggregation and state transition logic. Below, we give the details of these curves. \paragraph{Parameters.}@@ -64,13 +62,13 @@ \end{itemize}
\paragraph{Generators.} \begin{itemize} - \item Generator of $\SEC{\G}$: XXX. + \item Generator of $\SEC{\G}$: \[\hlset{\SEC{G}} = \]. % - \item Generator of $\BN{\G}_1$: XXX. - \item Generator of $\BJ{\G}$: XXX. + \item Generator of $\BN{\G}_1$: $\hlset{\BN{G}} = $. + \item Generator of $\BJ{\G}$: $\hlset{\BJ{G}} = $. % - \item Generator of $\BW{\G}_1$: XXX. - \item Generator of $\BLS{\G}_1$: XXX. + \item Generator of $\BW{\G}_1$: $\hlset{\BW{G}} = $. + \item Generator of $\BLS{\G}_1$: $\hlset{\BLS{G}} = $. % \end{itemize}@@ -81,6 +79,8 @@ \Davinci uses different hash functions. On the one side, we use Keccak256~\cite{bertoni11keccak} for Ethereum address derivation, and Poseidon~\cite{grassi21poseidon}, MiMC and MiMC-7~\cite{albrecht16mimc} for arithmetic circuits within zero-knowledge proofs.
\paragraph{Keccak256.} Keccak256 is the standard hash function used by Ethereum and is employed in \davinci for computing Ethereum addresses from public keys over $\SEC{\G}$. Keccak256 takes arbitrary-length bitstrings and outputs 256-bit digests: $\hlset{\Keccak} : \{0,1\}^* \rightarrow \{0,1\}^{256}$. This function is not SNARK-friendly and it is used exclusively in the authentication circuit, where the verification of Ethereum-compatible signatures requires reproducing the original message hash computed by Ethereum clients (see Section~\ref{sec:vocdoni-protocol:circuits:authentication}). +\martai{And also compress messages for signing!} + \paragraph{Poseidon.} Poseidon is a SNARK-optimized hash function designed for efficient implementation inside arithmetic circuits. It is used in \davinci for computing commitments, nullifiers, and the state Merkle tree roots. Poseidon is used as $\hlset{\Poseidon} : \mathfrak{F}_s \rightarrow \F_s$, where $\mathfrak{F}_s$ is the set of tuples of $\F_s$-elements of any length, and $\F_s$ is the field described in Section~\ref{sec:cryptographic-primitives:elliptic-curves}. \paragraph{MiMC-7.} Finally, we use the MiMC-7 hash function $\hlset{\Mimc} : \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}. This hash is used to hash the public inputs of the different circuits and verify the associated proofs more efficiently (see Section~\ref{sec:vocdoni-protocol:circuits} for further details).@@ -112,39 +112,65 @@
\begin{mdframed} \begin{minipage}[t]{0.54\textwidth} \begin{itemize} - \item[$\bullet$] $\hlset{\Enc}_{\pk}(\msg \in \{0,1\}^\star; k\in\J)$: \vspace{0.1cm} + \item[$\bullet$] $\hlset{\Enc}_{\pk}(\msg \in \{0,1\}^\star; k\in\F_t)$: \vspace{0.1cm} \begin{enumerate} - \item Map $\msg$ to $\J$ via $M = mG$. - \item Compute $C_1 = k \cdot G \in \J$. - \item Compute $C_2 = k \cdot \pk + M \in \J$. - \item Output $\enc = (C_1, C_2) \in \J^2$. + \item Map $\msg$ to $\BJ{\G}$ via $M = m \hlget{\BJ{G}}$. + \item Compute $C_1 = k \cdot \BJ{G} \in \BJ{\G}$. + \item Compute $C_2 = k \cdot \pk + M \in \BJ{\G}$. + \item Output $\enc = (C_1, C_2) \in {(\BJ{\G})}^2$. \end{enumerate} \end{itemize} \end{minipage} \begin{minipage}[t]{0.44\textwidth} \begin{itemize} - \item[$\bullet$] $\hlset{\Dec}_{\sk}(\enc \in \J)$: \vspace{0.1cm} + \item[$\bullet$] $\hlset{\Dec}_{\sk}(\enc \in {(\BJ{\G})}^2)$: \vspace{0.1cm} \begin{enumerate} %From a ciphertext (C,D) calculate C′=xC, and retrieve the point Pm with Pm=D−C′=(k(xP)+Pm)−(x(kP)). Then calculate the message m with f−1(Pm). - \item Parse $\enc = (C_1, C_2) \in \J^2$. - \item Compute $K = \sk \cdot C_1 \in \J$. + \item Parse $\enc = (C_1, C_2) \in {(\BJ{\G})}^2$. + \item Compute $K = \sk \cdot C_1 \in \BJ{\G}$. \item Output $\msg = C_2 - K$. \end{enumerate} \end{itemize} \end{minipage} \end{mdframed} -\martai{The group $\J$ is not the right group. This should be changed after writing the elliptic curves section. Actually, I am unsure we should specify where do all elements live. In any case, link to G should be added.} +\martai{Link $\BJ{G}$ to element from Section~\ref{sec:cryptographic-primitives:elliptic-curves}.} \martai{It remains to explain how to recover $m$ from $M$. I propose to define a function $P_m$ that maps $m$ to $\J$, and then say that although it is generally not invertible, in this case the message space is small, and therefore, it can be done via brute-force search or using the baby-step giant-step algorithm [CITE].} -Note that this scheme is additively homomorphic. That is, given two ciphertexts $(C_1, C_2)$ and $(C_1', C_2')$, their component-wise addition yields: $(C_1^{sum}, C_2^{sum}) = (C_1 + C_1', C_2, C_2)$. The aggregated ciphertext decrypts to the sum of the messages $M^{sum} = M_1 + M_2$. +Note that this scheme is additively homomorphic. That is, given two ciphertexts $(C_1, C_2)$ and $(C_1', C_2')$, their component-wise addition yields: $(C_1^{sum}, C_2^{sum}) = (C_1 + C_1', C_2 + C_2')$. The aggregated ciphertext decrypts to the sum of the messages $M^{sum} = M_1 + M_2$. \martai{The $pk$ used to encrypt is generated by multiple parties as defined in Section~\ref{sec:cryptographic-primitives:dkg}.} \martai{Add reencryption algorithm, which essentially adds $\Enc(0)$: $\Enc(v) = \Enc(v + 0) = \Enc(v) + \Enc(0)$.} + +\begin{mdframed} + \begin{minipage}[t]{0.53\textwidth} + \begin{itemize} + \item[$\bullet$] $\hlset{\EncAdd}_{\pk}(\enc \in {(\BJ{\G})}^2, \enc' \in {(\BJ{\G})}^2)$: + \begin{enumerate} + \item Parse $\enc = (C_1, C_2) \in {(\BJ{\G})}^2$. + \item Parse $\enc' = (C_1', C_2') \in {(\BJ{\G})}^2$. + \item Output $(C_1 + C_1', C_2 + C_2') \in {(\BJ{\G})}^2$. + \end{enumerate} + \end{itemize} + \end{minipage} + \begin{minipage}[t]{0.45\textwidth} + \begin{itemize} + \item[$\bullet$] $\hlset{\ReEnc}_{\pk}(\enc \in {(\BJ{\G})}^2; k\in\F_t)$: \vspace{0.1cm} + \begin{enumerate} + \item Parse $\enc = (C_1, C_2) \in {(\BJ{\G})}^2$. + \item Compute $\enc' = \hlget{\Enc}_{\pk}(0; k)$. + \item Output $\hlget{\EncAdd_{\pk}(\enc, \enc')}$. +% \item Compute $C_1' = k \cdot G + C_1 \in \J$. +% \item Compute $C_2' = k \cdot \pk + C_2 \in \J$. +% \item Output $\enc' = (C_1', C_2') \in \J^2$. + \end{enumerate} + \end{itemize} + \end{minipage} +\end{mdframed} \subsection{Digital signature schemes} \label{sec:cryptographic-primitives:signatures}@@ -270,4 +296,4 @@
\subsection{Zero-knowledge proof systems} \label{sec:cryptographic-primitives:zkp} -\textit{Old text: zero-knowledge succinct non-interactive arguments of knowledge are a crucial component in ensuring the validity of the voting results. Voters generate zkSNARK proofs to prove that their encrypted votes comply with the rules and requirements of the voting process, without revealing any information about their choices. Sequencers also generate zkSNARK proofs to prove the correct aggregation of votes into the shared state that maintains the status of the voting process.}+\textit{Zero-knowledge succinct non-interactive arguments of knowledge are a crucial component in ensuring the validity of the voting results. Voters generate zkSNARK proofs to prove that their encrypted votes comply with the rules and requirements of the voting process, without revealing any information about their choices. Sequencers also generate zkSNARK proofs to prove the correct aggregation of votes into the shared state that maintains the status of the voting process.}
@@ -1,5 +1,13 @@
% !TeX root = ../build/main.tex +Online voting remains one of the most studied yet elusive applications in applied cryptography. As digital services expand across both public and private sectors, secure and universally verifiable online voting systems have become an increasingly desirable goal. Remote electronic voting promises scalability, accessibility, and administrative efficiency; yet the design of systems that simultaneously ensure privacy, integrity, coercion resistance, and transparency under realistic adversarial models remains a formidable challenge. Numerous deployments—including iVote, Helios, and the Estonian I‑voting system—have revealed deep-rooted usability flaws and security gaps, particularly when verifiability mechanisms are either poorly understood by users or reliant on centralized infrastructure. + +Against this backdrop, the Vocdoni project was initiated in 2018 with the aim of rethinking online voting from first principles. The name Voĉdoni, meaning “to give voice” in Esperanto, reflects the project’s foundational goal: to empower collectives—from small associations to millions of citizens—to engage in secure and verifiable decision-making, regardless of technological or institutional barriers. Central to this vision was the idea that voting is not limited to formal governmental elections but serves as a more general-purpose mechanism for collective signaling. Vocdoni introduced a fully anonymous, end-to-end verifiable voting system designed to operate efficiently across a range of devices, including smartphones. To support these goals, the team deployed a custom infrastructure emphasizing resilience, neutrality, and transparency. + +Technically, the architecture of Vocdoni was grounded on a bespoke Byzantine Fault Tolerant (BFT) layer-1 blockchain, named Vochain. At the time, zero-knowledge proof systems such as zkSNARKs were emerging but not yet practical for most deployments. Vochain provided a performant and low-cost environment (achieving approximately 700 transactions per second) where advanced cryptographic tools could be used without the constraints imposed by EVM-based blockchains. The ability to issue voting transactions without requiring user fees enabled broader accessibility. Over several years of development and deployment, this architecture proved both viable and valuable in practice. However, broader adoption as a universal voting protocol highlighted the need for further architectural refinements and stronger formal guarantees. + +In this work, we introduce \davinci, a new protocol that builds upon the lessons and conceptual groundwork laid by Vocdoni. DaVinci adopts a modular design and integrates state-of-the-art cryptographic tools—including succinct zero-knowledge proofs, improved bulletin board constructions, and robust coercion resistance mechanisms—reflecting the most recent advances in academic research. Unlike monolithic designs, DaVinci is conceived as a composable primitive: a foundational layer intended to support secure and verifiable voting in diverse contexts, from blockchain governance to institutional elections. This shift in design philosophy aims to address long-standing challenges in the field, offering a cleaner abstraction with clearer security boundaries and formal underpinnings. + \subsection{Contributions} \label{sec:introduction:contributions}
@@ -31,5 +31,5 @@ %they compress multiple individual verification into one.
Additionally, the sequencers reencrypt the votes and generate a proof of the correct reencryption computation. While this process does not alter the final tally, it prevents voters from decrypting their original vote. This step mitigates vote selling or coercion, as voters are no longer able to prove their choice to third parties. Finally, the sequencers submit the reencrypted votes along with their verification and reencryption proofs to the process management smart contract. The smart contract verifies all the proofs provided by the sequencers to check that they complied with the protocol. \paragraph{$\boxed{5}$ Results verification.} -\textit{Old text: At the conclusion of the voting period, the smart contract ceases to accept new state updates, effectively finalizing the process. The final State is then available on-chain for verification, providing an immutable record of the voting outcome.} +\textit{At the conclusion of the voting period, the smart contract ceases to accept new state updates, effectively finalizing the process. The final state is then available on-chain for verification, providing an immutable record of the voting outcome.} \marta{I did not look into the results decryption/verification part yet. A short description should be given here.}
@@ -164,7 +164,7 @@ \item \private $k$: random scalar.
\end{itemize} \textbf{Constraints} \begin{itemize} - \item \emph{Vote encryption}. Correct encryption of the ballot: $(C_1, C_2) = \hlget{\Enc}_{\epk}(\ballot, k).$ + \item \emph{Vote encryption}. Correct encryption of the ballot: $(C_1, C_2) = \hlget{\Enc}_{\epk}(\ballot; k).$ \item \emph{Protocol rules compliance}. The ballot meets the protocol rules (number of valid choices, etc.): $... + \weight$. \item \emph{Vote identifier}. The vote's identifier is correctly computed: $\voteid = \text{Hash} (\address \conc \processid \conc k)$. \end{itemize}@@ -189,17 +189,20 @@ \begin{spacing}{1.25}
\vspace{0.3cm} \noi \textbf{Public inputs} \begin{itemize} - \item \public $\voteproof$: voter's proof. \item \public $\processid$: process identifier. \item \public $\ballotmode$: ballot protocol configuration. \item \public $\epk$ ($EPK$): encryption public key. \item \public $(C_1, C_2)$: encrypted ballot. \item \public $\voteid$: voter's identifier. - \item \public $\weight$: voter's weight. - \item \public $\censuspf$: census membership proof. \item \public $\censusroot$: census Merkle tree root. \item \public $\pk$: voter's public key. - \item \public $\signature$: voter's signature. + \end{itemize} + \textbf{Private inputs} + \begin{itemize} + \item \private $\voteproof$: voter's proof. + \item \private $\weight$: voter's weight. + \item \private $\censuspf$: census membership proof. + \item \private $\signature$: voter's signature. \end{itemize} \textbf{Constraints} \begin{itemize}@@ -231,23 +234,22 @@ \begin{spacing}{1.25}
\vspace{0.3cm} \noi \textbf{Public inputs} \begin{itemize} - \item \public $\text{authenticationProof}_i$: set of authentication proofs. - \item \public $\text{voteProof}_i$: set of authentication proofs. - \item \public $(C_1, C_2)$: list of voters' encrypted ballots. + \item \public $(C_1, C_2)_i$: list of voters' encrypted ballots. \item \public $\voteid_i$: set of vote's identifiers. \item \public $\pk_i$: list of voters' public keys. - \item \public $\weight_i$: Voters' weights. - \item \public $\text{censusProof}_i$: Voters' weights. - \item \public $\signature_i$: Voters' weights. \item \public $\processid$: process identifier. \item \public $\ballotmode$: ballot protocol configuration. \item \public $EPK$: encryption public key. \item \public $\censusroot$: census Merkle tree root. \end{itemize} + \textbf{Private inputs} + \begin{itemize} + \item \private $\authenticationproof_i$: set of authentication proofs. + \end{itemize} \textbf{Constraints} \\ \vspace{-0.4cm} \begin{itemize} \item \emph{Votes aggregation.} The accumulated authentication zkProofs are valid (for the given inputs). - \item \emph{Shared public inputs.} The \processid, \censusroot, \ballotmode and $EPK$ are the same for all of them. + \item \emph{Shared public inputs.} The public inputs \processid, \ballotmode, \epk, and \censusroot are the same for all proofs. \end{itemize} \vspace{-0.3cm} \end{spacing}@@ -261,7 +263,7 @@
\newpage \subsubsection{State transition circuit} -- BN254. \\ -\noi Given the aggregated votes proof, this circuit verifies the correct inclusion of all new votes into the process's state Merkle tree. It generates the final state transition proof that will be validated by the Ethereum smart contract. +\noi Given the aggregated votes proof, this circuit verifies the correct inclusion of all new votes into the process's state Merkle tree. It generates the final state transition proof that will be validated by the Ethereum smart contract. // This circuit verifies that a batch of votes correctly updates the global Merkle state root, including ballots, commitments, and results. It also verifies that the state transition corresponds to a valid proof aggregation and that overwritten votes are properly accounted for. \paragraph{Assertions.}@@ -272,10 +274,6 @@ \item \emph{Public inputs integrity}: ProcessID, BallotMode, CensusRoot, EncryptionKey remain unchanged.
\item \emph{Votes counting}: Ballots are correctly counted as new or overwrites, and added to results accumulators. \end{itemize} -\martai{The corresponding circuit figure is not done yet.} - -\noi \textit{Old original text, I think it will help here:} - When a new voting process begins, the Sequencer initializes a new State, represented by the root hash of a Merkle tree. This tree encapsulates all essential information about the voting process, including process parameters, voter registry (census), ballot configurations, and initial results. For each new batch of votes, the Sequencer updates the state by generating a zkSNARK proof that \textbf{validates the state transition from the current Root to a new Root}. This proof is submitted on-chain for settlement. By doing so, we maintain an immutable and verifiable record of the voting process on the blockchain.@@ -352,6 +350,12 @@ \end{mdframed}
\martai{STATE TRANSITION CIRCUIT: a potential problem is that a sequencer may know if one of their votes has been overwritten, for this reason, sequencers reencrypt a certain amount of ballots every time (already existing ballots I mean). So, the circuit should include the reencryptions: both for existing ballots and also for the new votes, which should be reencrypted (for receipt-freeness).} +\begin{figure}[H] + \centerline{\includegraphics[width=600pt,draft=false]{\figs/circuit-state-transition-v2}} + \caption{State transition circuit. All public values are framed in green.} + \label{fig:circuit-state-transition-v2} +\end{figure} + \subsection{Protocol flow} \label{sec:vocdoni-protocol:flow}@@ -429,8 +433,22 @@
\begin{itemize} \item Choose any of the available sequencers (from?? -- from the SR SC). \item Fetch their census \textbf{Merkle proof} to prove eligibility (from the census registry). - \item Use the EPK to encrypt the voting choice. - \item Generate ZK-SNARK of satisfiability of circuit from Fig.~\ref{fig:circuit-voter} with protocol from Section~\ref{sec:cryptographic-primitives:zkp} to prove the validity of the encrypted vote and adherence to ballot protocol rules. We call this proof \textbf{vote proof}. + \item Collect the process data $\epk$, $\ballotmode$, $\processid$ from the process management smart contract. + \item Sample a fresh random $k\in\F$ and use the $\epk$ to encrypt the voting choice: + \begin{equation} + \label{eq-ciphertext} + (C_1, C_2) = \hlget{\Enc}_{\epk}(\ballot; k). + \end{equation} + \martai{Actually, I would not write $(C_1, C_2)$ but rather \texttt{ciphertext}.} + \item Use the user's own Ethereum address $\address$ and the previous $k$ to compute the $\voteid$: + \begin{equation} + \label{eq-voteid} + \voteid = Hash(\address \conc \processid \conc k). + \end{equation} + \martai{Is this the right order?} + \item Generate ZK-SNARK of satisfiability of circuit from Fig.~\ref{fig:circuit-voter} with the proof system from Section~\ref{sec:cryptographic-primitives:zkp} to prove that Eqs.~\labelcref{eq-ciphertext,eq-voteid} are correctly computed, and that $\ballot$ satisfies ballot protocol rules according to $\ballotmode$. We call this proof \textbf{vote proof}. + \item Sign $\voteid$ using the user's secret key $\sk$: + \[ \signature = \hlget{\SSign}_{\sk}(\voteid).\] \item Send the encrypted vote, Merkle proof, validity proof, and identity proof to the sequencer. \martai{I understand Validity proof refers to ``voter circuit"? Merkle proof is for inclusion, right? And identity proof is for example a signature??} \end{itemize}