wip protocol flow + update figures
@@ -29,7 +29,9 @@
% \freefootnote{\scriptsize{Authors are listed in alphabetical order (\url{https://www.ams.org/profession/leaders/CultureStatement04.pdf}).}} \end{abstract} -\martai{Consider separating the roles of the sequencers from key generators.} +\martai{\\ + 1. Consider separating the roles of the sequencers from key generators.\\ + 2. Change $(C_1, C_2)$ to \texttt{ciphertext} (in protocol flow and figures).} \setcounter{tocdepth}{2} \makeatletter
@@ -86,6 +86,7 @@ \newcommand{\leaf}{\sf{leaf}}
\newcommand{\leaves}{\sf{leaves}} \newcommand{\MTRoot}{\sf{Root}} \newcommand{\MTInsert}{\sf{Insert}} +\newcommand{\MTProof}{\sf{Proof}} \newcommand{\MTRemove}{\sf{Remove}} \newcommand{\MTOpen}{\sf{Open}} \newcommand{\MTVerify}{\sf{Verify}}@@ -117,6 +118,7 @@ \newcommand{\costexponent}{\ballotstyle{costExponent}}
% Voting protocol \newcommand{\variablestyle}[1]{\texttt{#1}\xspace} +\newcommand{\censusdata}{\variablestyle{censusData}} \newcommand{\voteproof}{\variablestyle{voteProof}} \newcommand{\censusproof}{\variablestyle{censusProof}} \newcommand{\authenticationproof}{\variablestyle{authenticationProof}}@@ -156,6 +158,7 @@ \newcommand{\methodstyle}[1]{{\sf{#1}}\xspace}
\newcommand{\Keccak}{\methodstyle{Hash_1}} \newcommand{\Poseidon}{\methodstyle{Hash_2}} \newcommand{\Mimc}{\methodstyle{Hash_3}} +\newcommand{\Multimimc}{\methodstyle{MultiMiMC7}} \newcommand{\Enc}{\methodstyle{Enc}} \newcommand{\Dec}{\methodstyle{Dec}} \newcommand{\EncAdd}{\methodstyle{EncAdd}}
@@ -1,97 +1,97 @@
-<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0" version="26.3.0"> - <diagram name="Page-1" id="w7KB5Wdl0Kbl-dEWBDwj"> - <mxGraphModel dx="2765" dy="1538" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0"> +<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0" scale="1" border="0" version="28.0.4"> + <diagram name="protocol-flow" id="7R7C1oowD51V_CAgbWJq"> + <mxGraphModel dx="1682" dy="2093" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0"> <root> - <mxCell id="0" /> - <mxCell id="1" parent="0" /> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-88" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1"> - <mxGeometry width="800" height="1280" as="geometry" /> + <mxCell id="uh6mISBTfNlAuI6w20cs-0" /> + <mxCell id="uh6mISBTfNlAuI6w20cs-1" parent="uh6mISBTfNlAuI6w20cs-0" /> + <mxCell id="uh6mISBTfNlAuI6w20cs-2" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> + <mxGeometry y="-30" width="800" height="1310" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-66" value="Fetch current state root and data" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-3" value="Fetch current state root and data" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="410" y="860" width="140" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-67" value="Verify individual votes and accumulate" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-4" value="Verify individual votes and accumulate" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="410" y="900" width="140" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-68" value="Build zkSNARK proof for state transition" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-5" value="Build zkSNARK proof for state transition" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="400" y="960" width="160" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-69" value="Send new state root and updated data" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-6" value="Send new state root and updated data" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="410" y="1020" width="140" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-70" value="Publish shares of EPK after voting ends" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-7" value="Publish shares of EPK after voting ends" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="400" y="1100" width="160" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-71" value="Reward for participation" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-8" value="Reward for participation" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="410" y="1140" width="140" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-45" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=none;" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-9" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=none;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="120" y="560" width="480" height="520" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-63" value="Generate zkSNARK proof proving the validity of the encrypted vote" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-10" value="Generate zkSNARK proof proving the validity of the encrypted vote" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="160" y="760" width="240" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-62" value="Encrypt vote choice using the encryption public key" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-11" value="Encrypt vote choice using the encryption public key" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="160" y="700" width="240" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-53" value="Verify encryption shares" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-12" value="Verify encryption shares" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="560" y="300" width="120" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-54" value="Create encryption public key" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-13" value="Create encryption public key" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="560" y="360" width="120" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-44" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=none;" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-14" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=none;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="360" y="200" width="320" height="240" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-55" value="Fetch encryption public key" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-15" value="Fetch encryption public key" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="410" y="460" width="140" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-1" value="" style="endArrow=none;dashed=1;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-16" value="" style="endArrow=none;dashed=1;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="80" y="1240" as="sourcePoint" /> <mxPoint x="80" y="80" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-3" value="" style="endArrow=none;dashed=1;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-17" value="" style="endArrow=none;dashed=1;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="400" y="1240" as="sourcePoint" /> <mxPoint x="400" y="80" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-4" value="" style="endArrow=none;dashed=1;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-18" value="" style="endArrow=none;dashed=1;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="560" y="1240" as="sourcePoint" /> <mxPoint x="560" y="80" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-5" value="" style="endArrow=none;dashed=1;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-19" value="" style="endArrow=none;dashed=1;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="720" y="1240" as="sourcePoint" /> <mxPoint x="720" y="80" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-12" value="Ethereum SC" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-20" value="Ethereum SC" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="520" y="50" width="80" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-13" value="<div>IPFS</div>" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-21" value="<div>IPFS</div>" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="680" y="50" width="80" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-14" value="Sequencer" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-22" value="Sequencer" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="360" y="50" width="80" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-15" value="Voter" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-23" value="Voter" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="120" y="50" width="80" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-16" value="Organizer" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-24" value="Organizer" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="40" y="50" width="80" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-20" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-25" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="560" y="480" as="sourcePoint" /> <mxPoint x="400" y="480" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-21" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-26" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="560" y="380" as="sourcePoint" /> <mxPoint x="560" y="400" as="targetPoint" />@@ -103,7 +103,7 @@ <mxPoint x="600" y="400" />
</Array> </mxGeometry> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-22" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-27" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="560" y="320" as="sourcePoint" /> <mxPoint x="560" y="340" as="targetPoint" />@@ -115,7 +115,7 @@ <mxPoint x="600" y="340" />
</Array> </mxGeometry> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-30" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-28" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="160" y="720" as="sourcePoint" /> <mxPoint x="160" y="740" as="targetPoint" />@@ -125,7 +125,7 @@ <mxPoint x="240" y="740" />
</Array> </mxGeometry> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-31" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-29" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="160" y="780" as="sourcePoint" /> <mxPoint x="160" y="800" as="targetPoint" />@@ -135,13 +135,13 @@ <mxPoint x="240" y="800" />
</Array> </mxGeometry> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-34" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-30" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="400" y="880" as="sourcePoint" /> <mxPoint x="560" y="880" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-37" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-31" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="400" y="920" as="sourcePoint" /> <mxPoint x="400" y="940" as="targetPoint" />@@ -152,7 +152,7 @@ <mxPoint x="480" y="940" />
</Array> </mxGeometry> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-38" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-32" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="400" y="980" as="sourcePoint" /> <mxPoint x="400" y="1000" as="targetPoint" />@@ -162,125 +162,196 @@ <mxPoint x="480" y="1000" />
</Array> </mxGeometry> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-39" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-33" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="400" y="1040" as="sourcePoint" /> <mxPoint x="560" y="1040" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-40" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-34" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="400" y="1120" as="sourcePoint" /> <mxPoint x="560" y="1120" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-41" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-35" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="560" y="1160" as="sourcePoint" /> <mxPoint x="400" y="1160" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-47" value="Publish census Merkle tree" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-36" value="Publish census Merkle tree" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="280" y="100" width="240" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-50" value="Create new voting process (Merkle tree, details) and pay" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-37" value="Create new voting process (Merkle tree, details) and pay" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="180" y="140" width="280" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-2" value="" style="endArrow=none;dashed=1;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-38" value="" style="endArrow=none;dashed=1;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="160" y="1240" as="sourcePoint" /> <mxPoint x="160" y="80" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-51" value="Provide collateral for participation" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-39" value="Provide collateral for participation" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="410" y="220" width="140" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-17" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-40" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="80" y="120" as="sourcePoint" /> <mxPoint x="720" y="120" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-18" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-41" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="80" y="160" as="sourcePoint" /> <mxPoint x="560" y="160" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-52" value="Generate and publish encryption share" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-42" value="Generate and publish encryption share" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="410" y="260" width="140" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-19" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-43" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="400" y="240" as="sourcePoint" /> <mxPoint x="560" y="240" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-23" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-44" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="400" y="280" as="sourcePoint" /> <mxPoint x="560" y="280" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-56" value="Download census Merkle tree" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-45" value="Download census Merkle tree" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="490" y="500" width="140" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-24" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-46" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="400" y="520" as="sourcePoint" /> <mxPoint x="720" y="520" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-57" value="<font style="font-size: 8px;">DKG process</font>" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=bottom;fontStyle=1;align=center;" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-47" value="<font style="font-size: 8px;">DKG process</font>" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=bottom;fontStyle=1;align=center;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="360" y="200" width="80" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-58" value="<font style="font-size: 8px;">voting loop</font>" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=bottom;fontStyle=1;align=center;" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-48" value="<font style="font-size: 8px;">voting loop</font>" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=bottom;fontStyle=1;align=center;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="120" y="560" width="80" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-59" value="Fetch voting process details" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-49" value="Fetch voting process details" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="240" y="580" width="240" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-60" value="Fetch census Merkle proof" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-50" value="Fetch census Merkle proof" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="200" y="620" width="160" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-61" value="Fetch encryption public key" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-51" value="Fetch encryption public key" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="240" y="660" width="240" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-25" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-52" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="160" y="600" as="sourcePoint" /> <mxPoint x="560" y="600" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-27" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-53" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="160" y="680" as="sourcePoint" /> <mxPoint x="560" y="680" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-26" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-54" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="160" y="640" as="sourcePoint" /> <mxPoint x="400" y="640" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-64" value="Send encrypted vote, Merkle proof, and identity proof" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-55" value="Send encrypted vote, Merkle proof, and identity proof" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="180" y="820" width="200" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-32" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-56" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="160" y="840" as="sourcePoint" /> <mxPoint x="400" y="840" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-72" value="Decrypt results once the EPK threshold is reached" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-57" value="Decrypt results once the EPK threshold is reached" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fillColor=default;fontSize=8;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry x="200" y="1180" width="240" height="20" as="geometry" /> </mxCell> - <mxCell id="pK1FVDeCFm6uw4lnA_kY-42" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="1"> + <mxCell id="uh6mISBTfNlAuI6w20cs-58" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="uh6mISBTfNlAuI6w20cs-1"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="560" y="1200" as="sourcePoint" /> <mxPoint x="80" y="1200" as="targetPoint" /> </mxGeometry> + </mxCell> + <mxCell id="a0KAleaLAFgNvNXqD-Cy-32" value="" style="group" vertex="1" connectable="0" parent="uh6mISBTfNlAuI6w20cs-1"> + <mxGeometry x="530" y="-10" width="60" height="50" as="geometry" /> + </mxCell> + <mxCell id="a0KAleaLAFgNvNXqD-Cy-28" value="" style="group;fillColor=#dae8fc;strokeColor=#6c8ebf;container=0;" vertex="1" connectable="0" parent="a0KAleaLAFgNvNXqD-Cy-32"> + <mxGeometry width="60" height="50" as="geometry" /> + </mxCell> + <mxCell id="a0KAleaLAFgNvNXqD-Cy-31" value="" style="shape=image;html=1;verticalAlign=top;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;imageAspect=0;aspect=fixed;image=https://icons.diagrams.net/icon-cache1/Currency_and_Cryptocurrency_signs-2219/cryptocurrency_blockchain_Ethereum_ETH-1099.svg" vertex="1" parent="a0KAleaLAFgNvNXqD-Cy-32"> + <mxGeometry x="6" y="2.142857142857143" width="45.714285714285715" height="45.714285714285715" as="geometry" /> + </mxCell> + <mxCell id="a0KAleaLAFgNvNXqD-Cy-34" value="" style="group" vertex="1" connectable="0" parent="uh6mISBTfNlAuI6w20cs-1"> + <mxGeometry x="50" y="-10" width="60" height="50" as="geometry" /> + </mxCell> + <mxCell id="a0KAleaLAFgNvNXqD-Cy-6" value="" style="group;fillColor=#fff2cc;strokeColor=#d6b656;container=0;" vertex="1" connectable="0" parent="a0KAleaLAFgNvNXqD-Cy-34"> + <mxGeometry width="60" height="50" as="geometry" /> + </mxCell> + <mxCell id="a0KAleaLAFgNvNXqD-Cy-9" value="" style="group" vertex="1" connectable="0" parent="a0KAleaLAFgNvNXqD-Cy-34"> + <mxGeometry x="9.75" y="7.142857142857143" width="41.25" height="41.42857142857143" as="geometry" /> + </mxCell> + <mxCell id="a0KAleaLAFgNvNXqD-Cy-10" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#F5F5F5;strokeColor=#818C80;" vertex="1" parent="a0KAleaLAFgNvNXqD-Cy-9"> + <mxGeometry y="11.300344656525207" width="41.25" height="22.593910462026756" as="geometry" /> + </mxCell> + <mxCell id="a0KAleaLAFgNvNXqD-Cy-11" value="" style="verticalLabelPosition=bottom;verticalAlign=top;html=1;shape=mxgraph.basic.acute_triangle;dx=0.5;fillColor=#F5F5F5;strokeColor=#666666;" vertex="1" parent="a0KAleaLAFgNvNXqD-Cy-9"> + <mxGeometry width="41.25" height="11.298085039517328" as="geometry" /> + </mxCell> + <mxCell id="a0KAleaLAFgNvNXqD-Cy-12" value="" style="swimlane;startSize=0;fillColor=#F5F5F5;strokeColor=#666666;" vertex="1" parent="a0KAleaLAFgNvNXqD-Cy-9"> + <mxGeometry y="11.300344656525207" width="41.25" height="22.593910462026756" as="geometry"> + <mxRectangle y="15.002999999999963" width="50" height="40" as="alternateBounds" /> + </mxGeometry> + </mxCell> + <mxCell id="a0KAleaLAFgNvNXqD-Cy-13" value="" style="endArrow=none;html=1;rounded=0;exitX=0.25;exitY=1;exitDx=0;exitDy=0;entryX=0.25;entryY=0;entryDx=0;entryDy=0;strokeColor=#666666;" edge="1" parent="a0KAleaLAFgNvNXqD-Cy-9" source="a0KAleaLAFgNvNXqD-Cy-12" target="a0KAleaLAFgNvNXqD-Cy-12"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="-12.375" y="30.128226772046222" as="sourcePoint" /> + <mxPoint x="8.25" y="11.298085039517305" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="a0KAleaLAFgNvNXqD-Cy-14" value="" style="endArrow=none;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;entryPerimeter=0;strokeColor=#666666;" edge="1" parent="a0KAleaLAFgNvNXqD-Cy-9" source="a0KAleaLAFgNvNXqD-Cy-12" target="a0KAleaLAFgNvNXqD-Cy-11"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="37.125" y="67.78851023710398" as="sourcePoint" /> + <mxPoint x="37.125" y="45.19234015806929" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="a0KAleaLAFgNvNXqD-Cy-15" value="" style="endArrow=none;html=1;rounded=0;exitX=0.75;exitY=1;exitDx=0;exitDy=0;entryX=0.75;entryY=0;entryDx=0;entryDy=0;strokeColor=#666666;" edge="1" parent="a0KAleaLAFgNvNXqD-Cy-9" source="a0KAleaLAFgNvNXqD-Cy-12" target="a0KAleaLAFgNvNXqD-Cy-12"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="45.375" y="67.78851023710398" as="sourcePoint" /> + <mxPoint x="45.375" y="45.19234015806929" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="a0KAleaLAFgNvNXqD-Cy-35" value="" style="group" vertex="1" connectable="0" parent="uh6mISBTfNlAuI6w20cs-1"> + <mxGeometry x="130" y="-10" width="60" height="50" as="geometry" /> + </mxCell> + <mxCell id="a0KAleaLAFgNvNXqD-Cy-18" value="" style="group;fillColor=#d5e8d4;strokeColor=#82b366;container=0;" vertex="1" connectable="0" parent="a0KAleaLAFgNvNXqD-Cy-35"> + <mxGeometry width="60" height="50" as="geometry" /> + </mxCell> + <mxCell id="a0KAleaLAFgNvNXqD-Cy-20" value="" style="shape=actor;whiteSpace=wrap;html=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;container=0;" vertex="1" parent="a0KAleaLAFgNvNXqD-Cy-35"> + <mxGeometry x="15" y="5.714285714285714" width="30" height="35.714285714285715" as="geometry" /> + </mxCell> + <mxCell id="a0KAleaLAFgNvNXqD-Cy-37" value="" style="group" vertex="1" connectable="0" parent="uh6mISBTfNlAuI6w20cs-1"> + <mxGeometry x="370" y="-10" width="60" height="50" as="geometry" /> + </mxCell> + <mxCell id="a0KAleaLAFgNvNXqD-Cy-38" value="" style="group;fillColor=#e1d5e7;strokeColor=#9673a6;container=0;" vertex="1" connectable="0" parent="a0KAleaLAFgNvNXqD-Cy-37"> + <mxGeometry width="60" height="50" as="geometry" /> + </mxCell> + <mxCell id="a0KAleaLAFgNvNXqD-Cy-39" value="" style="shape=actor;whiteSpace=wrap;html=1;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;container=0;" vertex="1" parent="a0KAleaLAFgNvNXqD-Cy-37"> + <mxGeometry x="15" y="5.714285714285714" width="30" height="35.714285714285715" as="geometry" /> + </mxCell> + <mxCell id="a0KAleaLAFgNvNXqD-Cy-26" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#333333;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> + <mxGeometry x="690" y="-10" width="60" height="50" as="geometry" /> + </mxCell> + <mxCell id="a0KAleaLAFgNvNXqD-Cy-27" value="" style="html=1;verticalLabelPosition=bottom;align=center;labelBackgroundColor=#ffffff;verticalAlign=top;strokeWidth=1;shadow=0;dashed=0;shape=mxgraph.ios7.icons.data;" vertex="1" parent="uh6mISBTfNlAuI6w20cs-1"> + <mxGeometry x="697.5" y="-2.857142857142861" width="45" height="35.714285714285715" as="geometry" /> </mxCell> </root> </mxGraphModel>
@@ -162,7 +162,7 @@ \paragraph{Keccak256.} Keccak256 is the standard hash function used by Ethereum and is employed in \davinci to compress messages for signing and deriving 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}).
\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). +\paragraph{MiMC-7.} Finally, we use functions from the MiMC family. On the one side, 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). {\color{blue}On the other side, XXX.} $\hlset{\Multimimc}$. \martai{MiMC two instantiations: MiMC and MiMC-7, and also the curves. Check!}@@ -375,19 +375,12 @@ \noi To each Merkle tree $\tree$, we associate the following functions:
\begin{itemize} \item ${\tree.\hlset{\MTRoot}}()$: it returns the root of the tree. - \item ${\tree.\hlset{\MTInsert}}()$: it inserts a new leaf in the tree. If the position is passed as an input, the element is inserted in that position. Otherwise, the new element is inserted in the first empty position. The root is updated. - \item ${\tree.\hlset{\MTRemove}}()$: it removes a leaf from the tree. The root is updated. - \item ${\tree.\hlset{\MTOpen}}()$: it returns the Merkle tree inclusion proof of the given leaf. - % \item ${\MT.\Prove}_{\pp}((\leaf_i)_{i=1}^q, \pos)$. - %This algorithm is run by the committer to output the value $m$ at position $i$ in $\vec{m}$, and the corresponding proof $\proof_i$. - % \item ${\MT.\Verify}_{\pp}(\leaf, \pos, \root, \proof)$. - %The verification algorithm accepts only if $\proof$ is a valid proof that $m_i$ is at the $i$th position of the vector commited in $\com$. - % \item ${\MT.\UpdateRoot}_{\pp}({\leaf, \pos, \root})$: it updates the root - I am not sure this function is needed! + \item ${\tree.\hlset{\MTInsert}}()$: it inserts a new leaf in the tree. The root is updated. +% \item ${\tree.\hlset{\MTRemove}}()$: it removes a leaf from the tree. The root is updated. + \item ${\tree.\hlset{\MTProof}}()$: it returns the Merkle tree inclusion proof of the given leaf. + % \item ${\MT.\UpdateRoot}_{\pp}({\leaf, \pos, \root})$: it updates the root. \item ${\tree.\hlset{\MTVerify}} - ()$: it takes a Merkle proof and a root as an input and verifies the proof against the given root. The output is accept/reject. - %This algorithm is run by the committer who produced $\com$ and wants to update it by changing the $i$-th message to $m'$. The algorithm outputs a new commitment $\com'$. - % \item ${\MT.\UpdateProof}_{\pp}({\leaf, \pos, \proof})$. - %This algorithm produces an updated proof $\proof'$ that $m'$ (instead of $m$) is in the $i$-th position of the vector. + ()$: it takes a Merkle proof and a root as an input and verifies the proof against the given root. \end{itemize} \martai{\textbf{(1) State MT:} Poseidon with BN254 scalar field. \textbf{(2) Census MT:} MiMC with BLS12-377 scalar field.}
@@ -1,6 +1,7 @@
% !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. +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.
@@ -384,10 +384,8 @@
\sequencers -- this process is always open: \begin{enumerate} \item Register this and that way. - \item Public keys? - \martai{Sequencers must also publish how they can be reached (either when they register or when they contribute to the DKG). They can use a URI: Uniform Resource Identifier.} - \item PROVIDE COLLATERAL. - \martai{What happens to the collateral? If done only once, then you lose it? Do you need to send a new tx with more collateral?} + \item Public keys? Sequencers must also publish how they can be reached (either when they register or when they contribute to the DKG). They can use a URI: Uniform Resource Identifier. + \item PROVIDE COLLATERAL. What happens to the collateral? If done only once, then you lose it? Do you need to send a new tx with more collateral? \item Send transaction to Sequencer registry smart contract (pay for tx fee). \end{enumerate}@@ -396,15 +394,15 @@ \label{sec:vocdoni-protocol:start}
\organizer \begin{enumerate} - \item Prepares the census data \texttt{census\_data}. - \item Generates the census commitment \texttt{MT\_census.root = Com(census\_data)}. - \martai{In general, make use (link) to the functions defined in Section~\ref{sec:cryptographic-primitives}. For example, here the \texttt{MT.root()}.} + \item Prepares the census data \censusdata and generates census Merkle tree. + \item Generates the census commitment: $\censusroot = \hlget{\MTRoot}()$. \martai{Additionally, after this step, the organizer should make a Merkle proof available to all eligible voters.} - \item Set voting details: duration, options, type, etc. + CENSUS MT ROOT. - \item \processid: the process identifier is a unique 32-byte number that uniquely identifies a specific voting process. This variable encapsulates essential information about the voting, such as the rules and constraints for ballots and the unique identifier of the \davinci blockchain instance. - \martai{the identifier is computed from the organization address, the Eth nonce, chain ID (e.g. mainnet), formatejat in a certain way.} - \item Also a timeout for the DKG ceremony + minimum number of sequencers. - \item Send transaction to the Ethereum process management smart contract with all data. Note this transaction has a cost (Eth tx fees) that needs to be covered by the organizer. + \item Set voting details: {\color{blue}duration, options, type, etc. + CENSUS MT ROOT.} + \item Compute the process identifier \processid, which is a unique 32-byte number derived from the organizer's Ethereum address and nonce, and the chain ID. + %that uniquely identifies a specific voting process. This variable encapsulates essential information about the voting, such as the rules and constraints for ballots and the unique identifier of the \davinci blockchain instance. + \item Set security factors for DKG: a timeout for the DKG ceremony + minimum number of sequencers. + \item Send transaction to the Ethereum process management smart contract with all data. Note this transaction has a cost (Eth tx fees) that needs to be covered by the organizer. The transaction includes the fields: + \[\processid, etc.\] \end{enumerate} \subsubsection{Encryption key generation process} %Voting key generation@@ -412,21 +410,14 @@ \label{sec:vocdoni-protocol:dkg}
\sequencers \begin{enumerate} - \item Download all required data from the PM smart contract which includes the census MT root to handle the new vote. - \item Make contributions to DKG ceremony. + \item Fetch the \processid, \ballotmode, and \censusroot from the process management smart contract. + \item Make contributions to DKG ceremony before the timeout set by the organizer. \end{enumerate} -After XXX time (set by the organizer in the PM contract?): all contributions to DKG are done. +\noi After the timeout, all contributions to DKG are done. The smart contract checks if minimum number of sequencers is reached. If so, the \epk ``becomes available". -\martai{The organizer decides a minimum number of sequencers (security factor).} - -\begin{itemize} - \item EPK ``becomes available". - \martai{I understand EPK becomes available in the SR smart contract, and that key is sent to the PM contract?} - \martai{The idea here is that some sequencer makes EPK available (a.k.a. sends a transaction). Alternatively, generate a SNARK proving the EPK has been generated correctly and the SC verifies it.} -\end{itemize} +\martai{The idea here is that some sequencer makes EPK available (a.k.a. sends a transaction). Alternatively, generate a SNARK proving the EPK has been generated correctly and the SC verifies it. It is not clear to me if it is sent to SR or PM. } -\newpage \subsubsection{Voting process} \label{sec:vocdoni-protocol:voting} \voter@@ -441,27 +432,22 @@ \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(\processid \conc \address \conc k). + \voteid = \hlget{\Multimimc}(\processid \conc \address \conc k). \end{equation} - \martai{The hash used in voteID is MultiMiMC7.} - \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 \zkproof: the voter generates a ZK proof to prove the correctness of the ballot and encryption process: - \[ \zkproof = \text{Prove(), Circuit()}. \] - This proof proves the correct computation of the vote encryption, the nullifier, the commitment, and the compliance with the ballot protocol rules. + \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$. + \[ \voteproof = \text{Prove(), Circuit()}.\] \item Sign $\voteid$ using the user's secret key $\sk$ to authenticates the vote and ensure that was cast by a legitimate voter: \[ \signature = \hlget{\SSign}_{\sk}(\voteid).\] - \item Send the encrypted vote, Merkle proof, validity proof, and identity proof to the sequencer: - \[ \vote = [ \processid, \voteid, \encryptedballot, \censuspf, \zkproof, \signature ]. \] + \item Send the following data, which includes the encrypted vote, census membership proof, signature and vote proof, to the selected sequencer: + \[ \vote = [ \processid, \voteid, \encryptedballot, \censuspf, \zkproof, \signature ]. \] \end{itemize} -\martai{In the code, the struct is just: address, commitment, nullifier and ballot. Check!} - -\martai{Actually, the address could be recomputed by the sequencer (add it as a footnote).} - -\martai{In the code, they call it vote, verifierVote. Alternative: envelope.} +\martai{\\ + 1. Add as a footnote that the address is not send because it can be recomputed from the signature.\\ + 2. In the code, they call it \textit{vote}, \textit{verifierVote}. Alternative: \textit{envelope}.} \noi \sequencers