arnaucube
arnaucube/davinci-paperPublic Self-hosted repository
update circuits figures + descriptions
bellesmarta belles.mm@gmail.com
Wed, 07 Jan 2026 22:54:06 +0100
commit

ee4c27665dca4b49f5108f4b937ecaa2e551eb95

parent

95167cdafe556dd741a4b2f8afb483ce688dc96c

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

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

@misc{todocitation, author = {{AAAATODOauthor}}, - title = {{TODOtitle remove it when cryptographic-primitives.tex "encryption key pair used for ballots encryption~\cite{todocitation}." fixed}}, + title = {{TODOtitle}}, url = {TODOurl}, year = 9999}
M v2/build/preamble-macros.tex → v2/build/preamble-macros.tex

@@ -13,6 +13,15 @@ \definedir{\secs}{../sections}

\definedir{\figs}{../figures} \definedir{\bib}{../bibliography} +% Hyperref setup +%\hypersetup{ +% final=true, +% colorlinks=true, +% linkcolor=blue, +% urlcolor=blue, +% citecolor=blue, +%} + % Comments \newcommand{\marta}[1]{\todo[size=\small, color=red!40]{\textbf{Marta}: #1}} \newcommand{\martai}[1]{\todo[inline, size=\small, color=red!40]{\textbf{Marta}: #1}}

@@ -166,6 +175,8 @@ \newcommand{\signature}{\variablestyle{signature}}

\newcommand{\address}{\variablestyle{address}} \newcommand{\stateproof}{\variablestyle{stateProof}} \newcommand{\merkleproofs}{\variablestyle{merkleProofs}} +\newcommand{\merkleInclusionPf}{\variablestyle{merkleInclusionProof}} +\newcommand{\merkleNInclusionPf}{\variablestyle{merkleNonInclusionProof}} % State Merkle tree \newcommand{\censusroot}{\variablestyle{censusRoot}}

@@ -189,7 +200,8 @@ % Others

\newcommand{\noi}{\noindent} \newcommand{\conc}{\:||\:} \newcommand{\batchsize}{\variablestyle{batchSize}} - +\newcommand{\old}{\texttt{old}\xspace} +\newcommand{\new}{\texttt{new}\xspace} % Hyperlinks \newcommand{\hlset}[1]{\hypertarget{\detokenize{#1}}{#1}} \newcommand{\hlget}[1]{\hyperlink{\detokenize{#1}}{#1}}
M v2/figures/circuits.drawio → v2/figures/circuits.drawio

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

-<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:146.0) Gecko/20100101 Firefox/146.0" version="29.2.9" pages="6"> +<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:146.0) Gecko/20100101 Firefox/146.0" version="29.2.10" pages="6"> <diagram name="1. voter" id="-BY3RIMELlOST2Ke_Soi"> - <mxGraphModel dx="1350" dy="673" 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="1245" dy="586" 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,18 +143,18 @@ </root>

</mxGraphModel> </diagram> <diagram name="2. authentication" id="WzA6qX0mKvumESjFDZzn"> - <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="1465" dy="1539" 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="3f8I2EUOT3BU8Yha7U0F-0" /> <mxCell id="3f8I2EUOT3BU8Yha7U0F-1" parent="3f8I2EUOT3BU8Yha7U0F-0" /> <mxCell id="WidNY7TYG4Gs_5p9z0Nr-0" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" value="&lt;div&gt;&lt;br&gt;&lt;/div&gt;" vertex="1"> - <mxGeometry height="400" width="1200" x="67" y="-760" as="geometry" /> + <mxGeometry height="410" width="1217" x="50" y="-770" as="geometry" /> </mxCell> <mxCell id="WidNY7TYG4Gs_5p9z0Nr-1" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" value="&lt;div&gt;&lt;br&gt;&lt;/div&gt;" vertex="1"> - <mxGeometry height="240" width="1140" x="97" y="-680" as="geometry" /> + <mxGeometry height="250" width="1157" x="80" y="-690" as="geometry" /> </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-4" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" value="$$\text{Proof.verify}(\text{voteProof, public inputs})$$" vertex="1"> - <mxGeometry height="40" width="200" x="110" y="-509.88" as="geometry" /> + <mxCell id="3f8I2EUOT3BU8Yha7U0F-4" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" value="$$\text{P.Verify}(\text{ballotProof, public inputs})$$" vertex="1"> + <mxGeometry height="40" width="220" x="100" y="-509.88" as="geometry" /> </mxCell> <mxCell id="3f8I2EUOT3BU8Yha7U0F-5" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-7" 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;" target="3f8I2EUOT3BU8Yha7U0F-4" value=""> <mxGeometry height="50" relative="1" width="50" as="geometry">

@@ -169,16 +169,16 @@ <mxPoint x="210" y="-320" as="targetPoint" />

</mxGeometry> </mxCell> <mxCell id="3f8I2EUOT3BU8Yha7U0F-7" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="&lt;div style=&quot;font-size: 11px;&quot;&gt;$$\text{ballotProof}$$&lt;/div&gt;" vertex="1"> - <mxGeometry height="40" width="80" x="120" y="-736.88" as="geometry" /> + <mxGeometry height="40" width="80" x="115" y="-746.88" as="geometry" /> </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-8" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-9" 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;" target="3f8I2EUOT3BU8Yha7U0F-4" value=""> + <mxCell id="3f8I2EUOT3BU8Yha7U0F-8" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;startArrow=none;startFill=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points"> <mxPoint x="525" y="-540" /> <mxPoint x="260" y="-540" /> </Array> <mxPoint x="585" y="-570" as="sourcePoint" /> - <mxPoint x="820" y="-470.88" as="targetPoint" /> + <mxPoint x="260" y="-510" as="targetPoint" /> </mxGeometry> </mxCell> <mxCell id="3f8I2EUOT3BU8Yha7U0F-9" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" value="$$\text{public inputs}$$" vertex="1">

@@ -188,7 +188,7 @@ <mxCell id="3f8I2EUOT3BU8Yha7U0F-10" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-11" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" target="3f8I2EUOT3BU8Yha7U0F-15" value="">

<mxGeometry relative="1" as="geometry" /> </mxCell> <mxCell id="3f8I2EUOT3BU8Yha7U0F-11" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;fontStyle=0" value="$$pk$$" vertex="1"> - <mxGeometry height="40" width="60" x="1040" y="-736.88" as="geometry" /> + <mxGeometry height="40" width="60" x="1040" y="-746.88" as="geometry" /> </mxCell> <mxCell id="3f8I2EUOT3BU8Yha7U0F-12" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.75;entryY=0;entryDx=0;entryDy=0;" target="3f8I2EUOT3BU8Yha7U0F-15"> <mxGeometry relative="1" as="geometry">

@@ -196,14 +196,14 @@ <mxPoint x="1160" y="-309.88" as="targetPoint" />

</mxGeometry> </mxCell> <mxCell id="3f8I2EUOT3BU8Yha7U0F-13" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{signature}$$" vertex="1"> - <mxGeometry height="40" width="80" x="1130" y="-736.88" as="geometry" /> + <mxGeometry height="40" width="80" x="1130" y="-746.88" as="geometry" /> </mxCell> <mxCell id="3f8I2EUOT3BU8Yha7U0F-14" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-15" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="3f8I2EUOT3BU8Yha7U0F-28"> <mxGeometry relative="1" as="geometry"> <mxPoint x="1200" y="-320" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-15" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" value="$$\text{Signature.verify}_{pk}(\text{voteID, signature})$$" vertex="1"> + <mxCell id="3f8I2EUOT3BU8Yha7U0F-15" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" value="$$\text{S.Verify}_{pk}(\text{voteID, signature})$$" vertex="1"> <mxGeometry height="40" width="200" x="1020" y="-509.88" as="geometry" /> </mxCell> <mxCell id="3f8I2EUOT3BU8Yha7U0F-16" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;startArrow=oval;startFill=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="3f8I2EUOT3BU8Yha7U0F-32" value="">

@@ -232,28 +232,28 @@ <mxPoint x="1031.1999999999998" y="-559.6806" as="targetPoint" />

</mxGeometry> </mxCell> <mxCell id="3f8I2EUOT3BU8Yha7U0F-19" parent="3f8I2EUOT3BU8Yha7U0F-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" value="VOTER&#39;S PROOF VERIFICATION" vertex="1"> - <mxGeometry height="40" width="700" x="130" y="-319.25" as="geometry" /> + <mxGeometry height="40" width="730" x="100" y="-319.25" as="geometry" /> </mxCell> <mxCell id="3f8I2EUOT3BU8Yha7U0F-20" parent="3f8I2EUOT3BU8Yha7U0F-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" value="AUTHENTICATION + NON-MALLEABILITY" vertex="1"> <mxGeometry height="40" width="400" x="850" y="-319.25" as="geometry" /> </mxCell> <mxCell id="3f8I2EUOT3BU8Yha7U0F-21" parent="3f8I2EUOT3BU8Yha7U0F-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> - <mxGeometry height="699.88" width="20" x="469.32" y="-679.2" as="geometry" /> + <mxGeometry height="730.68" width="20" x="453.92" y="-694.6" as="geometry" /> </mxCell> <mxCell id="3f8I2EUOT3BU8Yha7U0F-22" parent="3f8I2EUOT3BU8Yha7U0F-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> <mxGeometry height="402" width="20" x="1038.44" y="-530.25" as="geometry" /> </mxCell> <mxCell id="3f8I2EUOT3BU8Yha7U0F-23" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="&lt;div&gt;$$\text{ballotMode}$$&lt;/div&gt;" vertex="1"> - <mxGeometry height="40" width="70" x="320" y="-736.88" as="geometry" /> + <mxGeometry height="40" width="70" x="320" y="-746.88" as="geometry" /> </mxCell> <mxCell id="3f8I2EUOT3BU8Yha7U0F-24" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{encryptionKey}$$" vertex="1"> - <mxGeometry height="40" width="90" x="400" y="-736.88" as="geometry" /> + <mxGeometry height="40" width="90" x="400" y="-746.88" as="geometry" /> </mxCell> <mxCell id="3f8I2EUOT3BU8Yha7U0F-25" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{encryptedBallot}$$" vertex="1"> - <mxGeometry height="40" width="100" x="500" y="-736.88" as="geometry" /> + <mxGeometry height="40" width="100" x="500" y="-746.88" as="geometry" /> </mxCell> <mxCell id="3f8I2EUOT3BU8Yha7U0F-26" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="&lt;div&gt;$$\text{processID}$$&lt;/div&gt;" vertex="1"> - <mxGeometry height="40" width="70" x="240" y="-736.88" as="geometry" /> + <mxGeometry height="40" width="70" x="240" y="-746.88" as="geometry" /> </mxCell> <mxCell id="3f8I2EUOT3BU8Yha7U0F-27" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="true" vertex="1"> <mxGeometry height="40" width="80" x="170" y="-410" as="geometry" />

@@ -262,10 +262,10 @@ <mxCell id="3f8I2EUOT3BU8Yha7U0F-28" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="true" vertex="1">

<mxGeometry height="40" width="80" x="1080" y="-410" as="geometry" /> </mxCell> <mxCell id="3f8I2EUOT3BU8Yha7U0F-29" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{weight}$$" vertex="1"> - <mxGeometry height="40" width="60" x="680" y="-736.88" as="geometry" /> + <mxGeometry height="40" width="60" x="680" y="-746.88" as="geometry" /> </mxCell> <mxCell id="3f8I2EUOT3BU8Yha7U0F-30" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{voteID}$$" vertex="1"> - <mxGeometry height="40" width="60" x="610" y="-736.88" as="geometry" /> + <mxGeometry height="40" width="60" x="610" y="-746.88" as="geometry" /> </mxCell> <mxCell id="3f8I2EUOT3BU8Yha7U0F-31" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;jumpStyle=arc;startArrow=oval;startFill=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" target="3f8I2EUOT3BU8Yha7U0F-34" value=""> <mxGeometry relative="1" as="geometry">

@@ -280,7 +280,7 @@ <mxCell id="3f8I2EUOT3BU8Yha7U0F-32" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" value="$$\text{Hash}(pk)$$" vertex="1">

<mxGeometry height="40" width="80" x="920" y="-610" as="geometry" /> </mxCell> <mxCell id="3f8I2EUOT3BU8Yha7U0F-33" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{address}$$" vertex="1"> - <mxGeometry height="40" width="60" x="750" y="-736.88" as="geometry" /> + <mxGeometry height="40" width="60" x="750" y="-746.88" as="geometry" /> </mxCell> <mxCell id="3f8I2EUOT3BU8Yha7U0F-34" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" value="&lt;div&gt;$$\text{address} =? \text{ Hash}(pk)$$&lt;/div&gt;" vertex="1"> <mxGeometry height="40" width="160" x="840" y="-509.88" as="geometry" />

@@ -288,254 +288,296 @@ </mxCell>

<mxCell id="3f8I2EUOT3BU8Yha7U0F-35" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="true" vertex="1"> <mxGeometry height="40" width="80" x="880" y="-410" as="geometry" /> </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-36" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;" value=""> + <mxCell id="3f8I2EUOT3BU8Yha7U0F-36" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-23" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points"> - <mxPoint x="354.40999999999997" y="-646.88" /> - <mxPoint x="354.40999999999997" y="-646.88" /> + <mxPoint x="355" y="-647" /> </Array> <mxPoint x="354.40999999999997" y="-696.88" as="sourcePoint" /> <mxPoint x="354.40999999999997" y="-609.88" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-37" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;" value=""> + <mxCell id="3f8I2EUOT3BU8Yha7U0F-37" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-26" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points"> - <mxPoint x="280" y="-647" /> - <mxPoint x="280" y="-647" /> + <mxPoint x="275" y="-611" /> </Array> <mxPoint x="280" y="-697" as="sourcePoint" /> - <mxPoint x="280" y="-610" as="targetPoint" /> + <mxPoint x="275" y="-611" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-38" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;" value=""> + <mxCell id="3f8I2EUOT3BU8Yha7U0F-38" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-24" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points"> - <mxPoint x="459.83" y="-646.88" /> - <mxPoint x="459.83" y="-646.88" /> + <mxPoint x="445" y="-610" /> </Array> <mxPoint x="459.83" y="-696.88" as="sourcePoint" /> - <mxPoint x="459.83" y="-609.88" as="targetPoint" /> + <mxPoint x="445" y="-610" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-39" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;" value=""> + <mxCell id="3f8I2EUOT3BU8Yha7U0F-39" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-25" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="550" y="-646.88" /> - <mxPoint x="550" y="-646.88" /> - </Array> + <Array as="points" /> <mxPoint x="550" y="-696.88" as="sourcePoint" /> <mxPoint x="550" y="-609.88" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-40" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;" value=""> + <mxCell id="3f8I2EUOT3BU8Yha7U0F-40" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-30" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="639.83" y="-646.88" /> - <mxPoint x="639.83" y="-646.88" /> - </Array> + <Array as="points" /> <mxPoint x="639.83" y="-696.88" as="sourcePoint" /> <mxPoint x="639.83" y="-609.88" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-41" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;" value=""> + <mxCell id="3f8I2EUOT3BU8Yha7U0F-41" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-29" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="709.83" y="-646.88" /> - <mxPoint x="709.83" y="-646.88" /> - </Array> + <Array as="points" /> <mxPoint x="709.83" y="-696.88" as="sourcePoint" /> <mxPoint x="709.83" y="-609.88" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-42" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;" value=""> + <mxCell id="3f8I2EUOT3BU8Yha7U0F-42" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-33" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="779.83" y="-646.88" /> - <mxPoint x="779.83" y="-646.88" /> - </Array> + <Array as="points" /> <mxPoint x="779.83" y="-696.88" as="sourcePoint" /> <mxPoint x="779.83" y="-609.88" as="targetPoint" /> </mxGeometry> </mxCell> + <mxCell id="e3s4HrUR3a-s9xtcPCWI-1" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;jumpStyle=arc;startArrow=oval;startFill=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="3f8I2EUOT3BU8Yha7U0F-15" value=""> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="1120" y="-670" /> + </Array> + <mxPoint x="640" y="-670.25" as="sourcePoint" /> + <mxPoint x="740" y="-530.25" as="targetPoint" /> + </mxGeometry> + </mxCell> </root> </mxGraphModel> </diagram> - <diagram name="2. authentication (bis)" id="qSWGO9y53fd-XVT_9cLn"> - <mxGraphModel dx="2264" dy="1915" 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="2. authentication (bis)" id="LuADnGaQK4kse1oG0egb"> + <mxGraphModel dx="1465" dy="1539" 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="388Bjxzc-1rhyMH9rcjR-0" /> - <mxCell id="388Bjxzc-1rhyMH9rcjR-1" parent="388Bjxzc-1rhyMH9rcjR-0" /> - <mxCell id="A7fSoE6CzBmzdETQdoIF-0" parent="388Bjxzc-1rhyMH9rcjR-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" value="&lt;div&gt;&lt;br&gt;&lt;/div&gt;" vertex="1"> - <mxGeometry height="500" width="1110" x="80" y="-760" as="geometry" /> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-0" /> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-1" parent="ivgGZHrRByy_Q-LoWHiO-0" /> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-2" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" value="&lt;div&gt;&lt;br&gt;&lt;/div&gt;" vertex="1"> + <mxGeometry height="410" width="1310" x="50" y="-770" as="geometry" /> </mxCell> - <mxCell id="A7fSoE6CzBmzdETQdoIF-1" parent="388Bjxzc-1rhyMH9rcjR-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" value="&lt;div&gt;&lt;br&gt;&lt;/div&gt;" vertex="1"> - <mxGeometry height="339.88" width="1050" x="110" y="-683.88" as="geometry" /> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-3" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" value="&lt;div&gt;&lt;br&gt;&lt;/div&gt;" vertex="1"> + <mxGeometry height="250" width="1250" x="80" y="-690" as="geometry" /> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-4" parent="388Bjxzc-1rhyMH9rcjR-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" value="$$\text{Proof.verify}(\text{voteProof, public inputs})$$" vertex="1"> - <mxGeometry height="40" width="200" x="130" y="-410" as="geometry" /> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-4" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" value="$$\text{P.Verify}(\text{ballotProof, public inputs})$$" vertex="1"> + <mxGeometry height="40" width="220" x="100" y="-509.88" as="geometry" /> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-5" edge="1" parent="388Bjxzc-1rhyMH9rcjR-1" source="388Bjxzc-1rhyMH9rcjR-7" 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;" target="388Bjxzc-1rhyMH9rcjR-4" value=""> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-5" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-7" 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;" target="ivgGZHrRByy_Q-LoWHiO-4" value=""> <mxGeometry height="50" relative="1" width="50" as="geometry"> - <mxPoint x="159.89" y="-639.88" as="sourcePoint" /> - <mxPoint x="159.89" y="-589.88" as="targetPoint" /> + <mxPoint x="139.89" y="-639.88" as="sourcePoint" /> + <mxPoint x="139.89" y="-589.88" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-6" edge="1" parent="388Bjxzc-1rhyMH9rcjR-1" source="388Bjxzc-1rhyMH9rcjR-4" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="388Bjxzc-1rhyMH9rcjR-31" value=""> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-6" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-4" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="ivgGZHrRByy_Q-LoWHiO-27" value=""> <mxGeometry height="50" relative="1" width="50" as="geometry"> - <mxPoint x="229.57999999999998" y="-449.88" as="sourcePoint" /> - <mxPoint x="230" y="-320" as="targetPoint" /> + <mxPoint x="209.57999999999998" y="-449.88" as="sourcePoint" /> + <mxPoint x="210" y="-320" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-7" parent="388Bjxzc-1rhyMH9rcjR-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="&lt;div style=&quot;font-size: 11px;&quot;&gt;$$\text{ballotProof}$$&lt;/div&gt;" vertex="1"> - <mxGeometry height="40" width="80" x="140" y="-736.88" as="geometry" /> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-7" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="&lt;div style=&quot;font-size: 11px;&quot;&gt;$$\text{ballotProof}$$&lt;/div&gt;" vertex="1"> + <mxGeometry height="40" width="80" x="115" y="-746.88" as="geometry" /> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-8" edge="1" parent="388Bjxzc-1rhyMH9rcjR-1" source="388Bjxzc-1rhyMH9rcjR-9" 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;" target="388Bjxzc-1rhyMH9rcjR-4" value=""> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-8" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;startArrow=none;startFill=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points"> - <mxPoint x="540" y="-440" /> - <mxPoint x="280" y="-440" /> + <mxPoint x="525" y="-540" /> + <mxPoint x="260" y="-540" /> </Array> - <mxPoint x="560" y="-440" as="sourcePoint" /> - <mxPoint x="760" y="-470.88" as="targetPoint" /> + <mxPoint x="585" y="-570" as="sourcePoint" /> + <mxPoint x="260" y="-510" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-9" parent="388Bjxzc-1rhyMH9rcjR-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" value="$$\text{public inputs}$$" vertex="1"> - <mxGeometry height="40" width="540" x="270" y="-509.88" as="geometry" /> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-9" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" value="$$\text{public inputs}$$" vertex="1"> + <mxGeometry height="40" width="570" x="240" y="-610" as="geometry" /> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-10" edge="1" parent="388Bjxzc-1rhyMH9rcjR-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;startArrow=oval;startFill=1;" target="388Bjxzc-1rhyMH9rcjR-15" value=""> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-10" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-11" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="ivgGZHrRByy_Q-LoWHiO-15" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points"> - <mxPoint x="970" y="-670" /> - <mxPoint x="1070" y="-670" /> + <mxPoint x="1130" y="-700" /> + <mxPoint x="1130" y="-700" /> </Array> - <mxPoint x="870" y="-670" as="sourcePoint" /> </mxGeometry> </mxCell> - <mxCell id="_0NUNidTl2WasRkNqES5-0" edge="1" parent="388Bjxzc-1rhyMH9rcjR-1" source="388Bjxzc-1rhyMH9rcjR-11" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" target="388Bjxzc-1rhyMH9rcjR-38" value=""> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-11" parent="388Bjxzc-1rhyMH9rcjR-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;fontStyle=0" value="$$pk$$" vertex="1"> - <mxGeometry height="40" width="60" x="840" y="-736.88" as="geometry" /> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-11" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;fontStyle=0" value="$$pk$$" vertex="1"> + <mxGeometry height="40" width="40" x="1110" y="-746.88" as="geometry" /> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-12" edge="1" parent="388Bjxzc-1rhyMH9rcjR-1" source="388Bjxzc-1rhyMH9rcjR-13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.75;entryY=0;entryDx=0;entryDy=0;" target="388Bjxzc-1rhyMH9rcjR-15"> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-12" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.877;entryY=0.019;entryDx=0;entryDy=0;entryPerimeter=0;" target="ivgGZHrRByy_Q-LoWHiO-15"> <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="1205" y="-707" /> + </Array> <mxPoint x="1160" y="-309.88" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-13" parent="388Bjxzc-1rhyMH9rcjR-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{signature}$$" vertex="1"> - <mxGeometry height="40" width="80" x="1050" y="-736.88" as="geometry" /> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-13" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{signature}$$" vertex="1"> + <mxGeometry height="40" width="80" x="1165" y="-746.88" as="geometry" /> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-14" edge="1" parent="388Bjxzc-1rhyMH9rcjR-1" source="388Bjxzc-1rhyMH9rcjR-15" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="388Bjxzc-1rhyMH9rcjR-32"> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-14" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-15" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="ivgGZHrRByy_Q-LoWHiO-28"> <mxGeometry relative="1" as="geometry"> <mxPoint x="1200" y="-320" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-15" parent="388Bjxzc-1rhyMH9rcjR-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" value="$$\text{Signature.verify}_{pk}(\text{voteID, signature})$$" vertex="1"> - <mxGeometry height="40" width="200" x="940" y="-509.88" as="geometry" /> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-15" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" value="$$\text{S.Verify}_{pk}(\text{voteID, signature})$$" vertex="1"> + <mxGeometry height="40" width="200" x="1030" y="-509.88" as="geometry" /> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-17" edge="1" parent="388Bjxzc-1rhyMH9rcjR-1" source="388Bjxzc-1rhyMH9rcjR-38" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="Ed4UcY_SSiyH-G17I0Am-0"> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-17" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-34" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" target="ivgGZHrRByy_Q-LoWHiO-35"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="870" y="-570" as="sourcePoint" /> - <mxPoint x="870" y="-310" as="targetPoint" /> + <mxPoint x="1012" y="-520" as="sourcePoint" /> + <mxPoint x="880" y="-309.8800000000001" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-18" edge="1" parent="388Bjxzc-1rhyMH9rcjR-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.941;entryY=-0.036;entryDx=0;entryDy=0;jumpStyle=arc;entryPerimeter=0;startArrow=oval;startFill=1;" target="388Bjxzc-1rhyMH9rcjR-9" value=""> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-18" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-32" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;jumpStyle=arc;" target="ivgGZHrRByy_Q-LoWHiO-34" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points"> - <mxPoint x="870" y="-560" /> - <mxPoint x="778" y="-560" /> + <mxPoint x="960" y="-550" /> + <mxPoint x="960" y="-550" /> </Array> - <mxPoint x="870" y="-560" as="sourcePoint" /> + <mxPoint x="1080" y="-559.88" as="sourcePoint" /> <mxPoint x="1031.1999999999998" y="-559.6806" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-19" parent="388Bjxzc-1rhyMH9rcjR-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" value="VOTER&#39;S PROOF VERIFICATION" vertex="1"> - <mxGeometry height="40" width="700" x="130" y="-219.25" as="geometry" /> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-19" parent="ivgGZHrRByy_Q-LoWHiO-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" value="VOTER&#39;S PROOF VERIFICATION" vertex="1"> + <mxGeometry height="40" width="730" x="100" y="-319.25" as="geometry" /> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-20" parent="388Bjxzc-1rhyMH9rcjR-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" value="AUTHENTICATION + NON-MALLEABILITY" vertex="1"> - <mxGeometry height="40" width="300" x="850" y="-219.25" as="geometry" /> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-20" parent="ivgGZHrRByy_Q-LoWHiO-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" value="AUTHENTICATION + NON-MALLEABILITY" vertex="1"> + <mxGeometry height="40" width="400" x="850" y="-319.25" as="geometry" /> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-21" parent="388Bjxzc-1rhyMH9rcjR-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> - <mxGeometry height="699.88" width="20" x="469.32" y="-579.2" as="geometry" /> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-21" parent="ivgGZHrRByy_Q-LoWHiO-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> + <mxGeometry height="730.68" width="20" x="453.92" y="-694.6" as="geometry" /> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-22" parent="388Bjxzc-1rhyMH9rcjR-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> - <mxGeometry height="300.25" width="20" x="987.56" y="-379.38" as="geometry" /> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-22" parent="ivgGZHrRByy_Q-LoWHiO-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> + <mxGeometry height="402" width="20" x="1038.44" y="-530.25" as="geometry" /> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-23" edge="1" parent="388Bjxzc-1rhyMH9rcjR-1" source="388Bjxzc-1rhyMH9rcjR-24" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="385" y="-510" as="targetPoint" /> - </mxGeometry> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-23" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="&lt;div&gt;$$\text{ballotMode}$$&lt;/div&gt;" vertex="1"> + <mxGeometry height="40" width="70" x="320" y="-746.88" as="geometry" /> + </mxCell> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-24" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{encryptionKey}$$" vertex="1"> + <mxGeometry height="40" width="90" x="400" y="-746.88" as="geometry" /> + </mxCell> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-25" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{encryptedBallot}$$" vertex="1"> + <mxGeometry height="40" width="100" x="500" y="-746.88" as="geometry" /> + </mxCell> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-26" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="&lt;div&gt;$$\text{processID}$$&lt;/div&gt;" vertex="1"> + <mxGeometry height="40" width="70" x="240" y="-746.88" as="geometry" /> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-24" parent="388Bjxzc-1rhyMH9rcjR-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="&lt;div&gt;$$\text{ballotMode}$$&lt;/div&gt;" vertex="1"> - <mxGeometry height="40" width="70" x="350" y="-736.88" as="geometry" /> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-27" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="true" vertex="1"> + <mxGeometry height="40" width="80" x="170" y="-410" as="geometry" /> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-25" edge="1" parent="388Bjxzc-1rhyMH9rcjR-1" source="388Bjxzc-1rhyMH9rcjR-26" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-28" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="true" vertex="1"> + <mxGeometry height="40" width="80" x="1090" y="-410" as="geometry" /> + </mxCell> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-29" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{weight}$$" vertex="1"> + <mxGeometry height="40" width="60" x="680" y="-746.88" as="geometry" /> + </mxCell> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-30" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{voteID}$$" vertex="1"> + <mxGeometry height="40" width="60" x="610" y="-746.88" as="geometry" /> + </mxCell> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-31" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;jumpStyle=arc;startArrow=oval;startFill=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" target="ivgGZHrRByy_Q-LoWHiO-34" value=""> <mxGeometry relative="1" as="geometry"> - <mxPoint x="460" y="-510" as="targetPoint" /> + <Array as="points"> + <mxPoint x="880" y="-650" /> + </Array> + <mxPoint x="780" y="-650" as="sourcePoint" /> + <mxPoint x="1162" y="-318.8800000000001" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-26" parent="388Bjxzc-1rhyMH9rcjR-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$EPK$$" vertex="1"> - <mxGeometry height="40" width="60" x="430" y="-736.88" as="geometry" /> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-32" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" value="$$\text{Hash}(pk)$$" vertex="1"> + <mxGeometry height="40" width="80" x="920" y="-610" as="geometry" /> + </mxCell> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-33" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{address}$$" vertex="1"> + <mxGeometry height="40" width="60" x="750" y="-746.88" as="geometry" /> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-27" edge="1" parent="388Bjxzc-1rhyMH9rcjR-1" source="388Bjxzc-1rhyMH9rcjR-28" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-34" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" value="&lt;div&gt;$$\text{address} =? \text{ Hash}(pk)$$&lt;/div&gt;" vertex="1"> + <mxGeometry height="40" width="160" x="840" y="-509.88" as="geometry" /> + </mxCell> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-35" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="true" vertex="1"> + <mxGeometry height="40" width="80" x="880" y="-410" as="geometry" /> + </mxCell> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-36" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-23" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> <mxGeometry relative="1" as="geometry"> - <mxPoint x="550" y="-510" as="targetPoint" /> + <Array as="points"> + <mxPoint x="355" y="-647" /> + </Array> + <mxPoint x="354.40999999999997" y="-696.88" as="sourcePoint" /> + <mxPoint x="354.40999999999997" y="-609.88" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-28" parent="388Bjxzc-1rhyMH9rcjR-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{encryptedBallot}$$" vertex="1"> - <mxGeometry height="40" width="100" x="500" y="-736.88" as="geometry" /> - </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-29" edge="1" parent="388Bjxzc-1rhyMH9rcjR-1" source="388Bjxzc-1rhyMH9rcjR-30" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-37" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-26" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> <mxGeometry relative="1" as="geometry"> - <mxPoint x="305" y="-510" as="targetPoint" /> + <Array as="points"> + <mxPoint x="275" y="-611" /> + </Array> + <mxPoint x="280" y="-697" as="sourcePoint" /> + <mxPoint x="275" y="-611" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-30" parent="388Bjxzc-1rhyMH9rcjR-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="&lt;div&gt;$$\text{processID}$$&lt;/div&gt;" vertex="1"> - <mxGeometry height="40" width="70" x="270" y="-736.88" as="geometry" /> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-38" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-24" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> + <mxGeometry relative="1" as="geometry"> + <Array as="points"> + <mxPoint x="445" y="-610" /> + </Array> + <mxPoint x="459.83" y="-696.88" as="sourcePoint" /> + <mxPoint x="445" y="-610" as="targetPoint" /> + </mxGeometry> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-31" parent="388Bjxzc-1rhyMH9rcjR-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="true" vertex="1"> - <mxGeometry height="40" width="80" x="190" y="-320" as="geometry" /> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-39" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-25" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + <mxPoint x="550" y="-696.88" as="sourcePoint" /> + <mxPoint x="550" y="-609.88" as="targetPoint" /> + </mxGeometry> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-32" parent="388Bjxzc-1rhyMH9rcjR-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="true" vertex="1"> - <mxGeometry height="40" width="80" x="1000" y="-320" as="geometry" /> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-40" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-30" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + <mxPoint x="639.83" y="-696.88" as="sourcePoint" /> + <mxPoint x="639.83" y="-609.88" as="targetPoint" /> + </mxGeometry> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-33" parent="388Bjxzc-1rhyMH9rcjR-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{weight}$$" vertex="1"> - <mxGeometry height="40" width="60" x="680" y="-736.88" as="geometry" /> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-41" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-29" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + <mxPoint x="709.83" y="-696.88" as="sourcePoint" /> + <mxPoint x="709.83" y="-609.88" as="targetPoint" /> + </mxGeometry> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-34" parent="388Bjxzc-1rhyMH9rcjR-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{voteID}$$" vertex="1"> - <mxGeometry height="40" width="60" x="610" y="-736.88" as="geometry" /> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-42" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-33" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> + <mxGeometry relative="1" as="geometry"> + <Array as="points" /> + <mxPoint x="779.83" y="-696.88" as="sourcePoint" /> + <mxPoint x="779.83" y="-609.88" as="targetPoint" /> + </mxGeometry> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-35" edge="1" parent="388Bjxzc-1rhyMH9rcjR-1" source="388Bjxzc-1rhyMH9rcjR-34" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.684;entryY=0.047;entryDx=0;entryDy=0;entryPerimeter=0;" target="388Bjxzc-1rhyMH9rcjR-9"> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-43" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;jumpStyle=arc;startArrow=oval;startFill=1;entryX=0.143;entryY=-0.009;entryDx=0;entryDy=0;entryPerimeter=0;" target="ivgGZHrRByy_Q-LoWHiO-15" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points"> - <mxPoint x="640" y="-610" /> - <mxPoint x="639" y="-610" /> + <mxPoint x="1059" y="-670" /> </Array> - <mxPoint x="700" y="-600" as="sourcePoint" /> - <mxPoint x="600" y="-510" as="targetPoint" /> + <mxPoint x="640" y="-670.25" as="sourcePoint" /> + <mxPoint x="740" y="-530.25" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-36" edge="1" parent="388Bjxzc-1rhyMH9rcjR-1" source="388Bjxzc-1rhyMH9rcjR-33" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;jumpStyle=arc;"> + <mxCell id="ivgGZHrRByy_Q-LoWHiO-16" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;startArrow=oval;startFill=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;jumpStyle=arc;" target="ivgGZHrRByy_Q-LoWHiO-32" value=""> <mxGeometry relative="1" as="geometry"> <Array as="points"> - <mxPoint x="710" y="-509" /> + <mxPoint x="960" y="-640" /> </Array> - <mxPoint x="719.97" y="-676.88" as="sourcePoint" /> - <mxPoint x="710" y="-509" as="targetPoint" /> + <mxPoint x="1130" y="-640" as="sourcePoint" /> + <mxPoint x="960" y="-600" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="388Bjxzc-1rhyMH9rcjR-38" parent="388Bjxzc-1rhyMH9rcjR-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" value="$$\text{Hash}(pk)$$" vertex="1"> - <mxGeometry height="40" width="80" x="830" y="-640" as="geometry" /> - </mxCell> - <mxCell id="Ed4UcY_SSiyH-G17I0Am-0" parent="388Bjxzc-1rhyMH9rcjR-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{address}$$" vertex="1"> - <mxGeometry height="40" width="60" x="840" y="-320" as="geometry" /> - </mxCell> </root> </mxGraphModel> </diagram> <diagram name="3. aggregation" id="wAmNdo2rwqAe7TFG6LFr"> - <mxGraphModel dx="1369" dy="554" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> + <mxGraphModel dx="1245" dy="586" 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="ecz03OsYZvi9N8fAGkOF-0" /> <mxCell id="ecz03OsYZvi9N8fAGkOF-1" parent="ecz03OsYZvi9N8fAGkOF-0" />

@@ -639,12 +681,12 @@ </root>

</mxGraphModel> </diagram> <diagram name="4. state-transition" id="gqVSyPOq0HqqUG1E7rmp"> - <mxGraphModel dx="4426" dy="2196" 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="4213" dy="2315" 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="YdgG6UzsnOPgAgFR6wUF-0" /> <mxCell id="YdgG6UzsnOPgAgFR6wUF-1" parent="YdgG6UzsnOPgAgFR6wUF-0" /> <mxCell id="FyhsC8kHZ14GA4Zg5NcN-0" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" value="&lt;div&gt;&lt;br&gt;&lt;/div&gt;" vertex="1"> - <mxGeometry height="1410" width="2780" x="-720" y="-350" as="geometry" /> + <mxGeometry height="1350" width="2780" x="-720" y="-290" as="geometry" /> </mxCell> <mxCell id="FyhsC8kHZ14GA4Zg5NcN-1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" value="&lt;div&gt;&lt;br&gt;&lt;/div&gt;" vertex="1"> <mxGeometry height="980" width="2595" x="-585" y="-60" as="geometry" />

@@ -873,7 +915,7 @@ </mxCell>

<mxCell id="YdgG6UzsnOPgAgFR6wUF-52" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;" value="&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;$$\text{stateRoot}^{\text{old}} = \text{stateRoot}^{\text{new}}$$&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;$$\text{numVotes}^{\text{old}} = \text{numVotes}^{\text{new}}$$&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;$$\text{numOverwrites}^{\text{old}} = \text{numOverwrites}^{\text{new}}$$&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;$$\text{resultsAdd}^{\text{old}} = \text{resultsAdd}^{\text{new}}$$&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;$$\text{resultsSub}^{\text{old}} = \text{resultsSub}^{\text{new}}$$&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;" vertex="1"> <mxGeometry height="230" width="240" x="1270" y="490" as="geometry" /> </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-53" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" value="&lt;div&gt;&lt;u&gt;&lt;b&gt;VERIFY INITIAL STATE&lt;/b&gt;&lt;b&gt;&lt;br&gt;&lt;br&gt;&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;b&gt;1.&lt;/b&gt; Verify the MTProofs that prove that the first leafs of the tree store the public parameters of the voting process:&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp; 0x0 = &lt;b&gt;processID&lt;/b&gt;, 0x1 = &lt;b&gt;censusOrigin&lt;/b&gt;, 0x2 = &lt;b&gt;ballotMode&lt;/b&gt;, 0x3 = &lt;b&gt;encryptionKey&lt;/b&gt;, 0x4 = &lt;b&gt;resultsAdd^{old}&lt;/b&gt;, 0x5 = &lt;b&gt;resultsAdd^{sub}&lt;/b&gt;. &lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;b&gt;2.&lt;/b&gt; Verify the MTProofs that prove that none of the &lt;b&gt;voteIDs&lt;/b&gt; belong to the tree.&lt;br&gt;&lt;b&gt;&lt;br&gt;3.&lt;/b&gt; Verify the MTProofs of each &lt;b&gt;address&lt;/b&gt;:&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp; - If it is an inclusion proof: consider the vote &lt;b&gt;(c1, c2)&lt;/b&gt; an &lt;b&gt;overwrite&lt;/b&gt;.&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&amp;nbsp; - If it is a non-inclusion proof: consider the vote &lt;b&gt;(c1, c2)&lt;/b&gt; a &lt;b&gt;newVote&lt;/b&gt;.&lt;/div&gt;" vertex="1"> + <mxCell id="YdgG6UzsnOPgAgFR6wUF-53" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" value="&lt;div&gt;&lt;u&gt;&lt;b&gt;VERIFY INITIAL STATE&lt;/b&gt;&lt;b&gt;&lt;br&gt;&lt;br&gt;&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;b&gt;1.&lt;/b&gt; Verify the MTProofs that prove that the first leafs of the tree store the public parameters of the voting process:&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp; 0x0 = &lt;b&gt;processID&lt;/b&gt;, 0x1 = &lt;b&gt;censusOrigin&lt;/b&gt;, 0x2 = &lt;b&gt;ballotMode&lt;/b&gt;, 0x3 = &lt;b&gt;encryptionKey&lt;/b&gt;, 0x4 = &lt;b&gt;resultsAdd^{old}&lt;/b&gt;, 0x5 = &lt;b&gt;resultsAdd^{sub}&lt;/b&gt;. &lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;b&gt;2.&lt;/b&gt; Verify the MTProofs that prove that none of the &lt;b&gt;voteIDs&lt;/b&gt; belong to the tree.&lt;br&gt;&lt;b&gt;&lt;br&gt;3.&lt;/b&gt; Verify the MTProofs of each &lt;b&gt;address&lt;/b&gt;:&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp; - If it is an inclusion proof: consider &lt;b&gt;encryptedBallot&lt;/b&gt; an &lt;b&gt;overwrite&lt;/b&gt;.&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&amp;nbsp; - If it is a non-inclusion proof: consider&amp;nbsp;&lt;b&gt;encryptedBallot&lt;/b&gt;&amp;nbsp;a &lt;b&gt;newVote&lt;/b&gt;.&lt;/div&gt;" vertex="1"> <mxGeometry height="220" width="1040" x="280" y="80" as="geometry" /> </mxCell> <mxCell id="YdgG6UzsnOPgAgFR6wUF-54" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#f8cecc;strokeColor=#b85450;" value="$$\text{address}_i$$" vertex="1">

@@ -993,7 +1035,7 @@ <mxPoint x="720" y="110" as="sourcePoint" />

<mxPoint x="720" y="200" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-77" parent="YdgG6UzsnOPgAgFR6wUF-74" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=left;" value="&lt;div align=&quot;center&quot;&gt;&lt;b&gt;&lt;u&gt;APPLY STATE TRANSITIONS&lt;br&gt;&lt;br&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/b&gt;If the vote is a &lt;b&gt;newVote: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/b&gt;If the vote is an &lt;b&gt;overwrite&lt;/b&gt;:&lt;b&gt; &lt;br&gt;&lt;/b&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;b&gt;1.&lt;/b&gt; Include &lt;b&gt;address&lt;/b&gt;, &lt;b&gt;voteID&lt;/b&gt;, and &lt;b&gt;(C1&#39;, C2&#39;)&lt;/b&gt;.&amp;nbsp;&amp;nbsp; &lt;span style=&quot;white-space: pre;&quot;&gt;&#x9;&lt;/span&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.&lt;/b&gt; Update vote associated to &lt;b&gt;address&lt;/b&gt; to&lt;b&gt; (C1&#39;, C2&#39;)&lt;/b&gt; and include &lt;b&gt;voteID&lt;/b&gt;.&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;b&gt;2.&lt;/b&gt; Update &lt;b&gt;numVotes&lt;/b&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;2.&lt;/b&gt; Update &lt;b&gt;numVotes&lt;/b&gt; and &lt;b&gt;numOverwrites&lt;/b&gt;.&lt;div align=&quot;left&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;b&gt;3.&lt;/b&gt; Update &lt;b&gt;resultsAdd&lt;/b&gt;.&amp;nbsp; &amp;nbsp; &lt;span style=&quot;white-space: pre;&quot;&gt;&#x9;&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&#x9;&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&#x9;&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&#x9;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;3.&lt;/b&gt; Update &lt;b&gt;resultsAdd&lt;/b&gt; and &lt;b&gt;resultsSub&lt;/b&gt;.&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;4.&lt;/b&gt; Update &lt;b&gt;stateRoot&lt;/b&gt;.&lt;span style=&quot;white-space: pre;&quot;&gt;&#x9;&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&#x9;&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&#x9;&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&#x9;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;4.&lt;/b&gt; Update &lt;b&gt;stateRoot&lt;/b&gt;.&lt;/div&gt;&lt;/div&gt;" vertex="1"> + <mxCell id="YdgG6UzsnOPgAgFR6wUF-77" parent="YdgG6UzsnOPgAgFR6wUF-74" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=left;" value="&lt;div align=&quot;center&quot;&gt;&lt;b&gt;&lt;u&gt;APPLY STATE TRANSITIONS&lt;br&gt;&lt;br&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/b&gt;If the vote is a &lt;b&gt;newVote: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/b&gt;If the vote is an &lt;b&gt;overwrite&lt;/b&gt;:&lt;b&gt; &lt;br&gt;&lt;/b&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;b&gt;1.&lt;/b&gt; Include &lt;b&gt;voteID&lt;/b&gt;.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;1.&lt;/b&gt; Include &lt;b&gt;voteID&lt;/b&gt;.&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;b&gt;2.&lt;/b&gt; In leaf path &lt;b&gt;address&lt;/b&gt;, write &lt;b&gt;reEncryptedBallot&#39;&lt;/b&gt;.&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;2.&lt;/b&gt; In leaf with path &lt;b&gt;address&lt;/b&gt;, update the content to &lt;b&gt;reEncryptedBallot&#39;&lt;/b&gt;.&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;b&gt;3.&lt;/b&gt; Update &lt;b&gt;numVotes&lt;/b&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;3.&lt;/b&gt; Update &lt;b&gt;numVotes&lt;/b&gt; and &lt;b&gt;numOverwrites&lt;/b&gt;.&lt;div align=&quot;left&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;b&gt;4.&lt;/b&gt; Update &lt;b&gt;resultsAdd&lt;/b&gt;.&amp;nbsp; &amp;nbsp; &lt;span style=&quot;white-space: pre;&quot;&gt;&#x9;&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&#x9;&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&#x9;&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&#x9;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;4.&lt;/b&gt; Update &lt;b&gt;resultsAdd&lt;/b&gt; and &lt;b&gt;resultsSub&lt;/b&gt;.&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;5.&lt;/b&gt; Update &lt;b&gt;stateRoot&lt;/b&gt;.&lt;span style=&quot;white-space: pre;&quot;&gt;&#x9;&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&#x9;&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&#x9;&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&#x9;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;5.&lt;/b&gt; Update &lt;b&gt;stateRoot&lt;/b&gt;.&lt;/div&gt;&lt;/div&gt;" vertex="1"> <mxGeometry height="160" width="880" as="geometry" /> </mxCell> <mxCell id="YdgG6UzsnOPgAgFR6wUF-78" parent="YdgG6UzsnOPgAgFR6wUF-74" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;strokeColor=#9673a6;fontFamily=Courier New;align=left;" value="" vertex="1">

@@ -1027,11 +1069,11 @@ <mxPoint x="890" y="-130" as="sourcePoint" />

<mxPoint x="890" y="80" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-86" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="&lt;div&gt;$$\text{MTProofs}_i$$&lt;/div&gt;&lt;div&gt;(inclusion or non-inclusion)&lt;/div&gt;" vertex="1"> + <mxCell id="YdgG6UzsnOPgAgFR6wUF-86" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="&lt;div&gt;$$\text{MTProofs}_i$$&lt;/div&gt;" vertex="1"> <mxGeometry height="130" width="80" x="850" y="-210" as="geometry" /> </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-87" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#647687;strokeColor=#314354;fontFamily=Courier New;align=left;fontColor=#ffffff;" value="&lt;div align=&quot;left&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; MISSING&lt;/b&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;b&gt;1.&lt;/b&gt; For &lt;i&gt;some&lt;/i&gt; existing leafs, also reencrypt the votes.&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;b&gt;2.&lt;/b&gt; Data blobs.&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;b&gt;3.&lt;/b&gt; Add some details, like specifics of resultsAdd.&lt;/div&gt;" vertex="1"> - <mxGeometry height="150" width="380" x="-598" y="-320" as="geometry" /> + <mxCell id="YdgG6UzsnOPgAgFR6wUF-87" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e3c800;strokeColor=#B09500;fontFamily=Courier New;align=center;fontColor=#000000;" value="&lt;div align=&quot;center&quot;&gt;&lt;font style=&quot;font-size: 12px;&quot;&gt;&lt;b&gt;&lt;u&gt;MISSING&lt;/u&gt;: reencrypt the votes for &lt;i&gt;some&lt;/i&gt; existing leafs.&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;" vertex="1"> + <mxGeometry height="60" width="410" x="-680" y="-250" as="geometry" /> </mxCell> <mxCell id="YdgG6UzsnOPgAgFR6wUF-88" parent="YdgG6UzsnOPgAgFR6wUF-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" value="AGGREGATION VERIFICATION" vertex="1"> <mxGeometry height="40" width="440" x="-580" y="1117.18" as="geometry" />

@@ -1045,7 +1087,7 @@ </mxCell>

<mxCell id="YdgG6UzsnOPgAgFR6wUF-91" parent="YdgG6UzsnOPgAgFR6wUF-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> <mxGeometry height="1127.5" width="20" x="828.75" y="533.75" as="geometry" /> </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-92" parent="YdgG6UzsnOPgAgFR6wUF-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#ffe6cc;strokeColor=#d79b00;fontSize=11;" value="CENSUS MEMBERSHIP" vertex="1"> + <mxCell id="YdgG6UzsnOPgAgFR6wUF-92" parent="YdgG6UzsnOPgAgFR6wUF-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#ffe6cc;strokeColor=#d79b00;fontSize=11;" value="CENSUS MEMBERSHIP VERIFICATION" vertex="1"> <mxGeometry height="40" width="350" x="-110" y="1117.19" as="geometry" /> </mxCell> <mxCell id="YdgG6UzsnOPgAgFR6wUF-93" parent="YdgG6UzsnOPgAgFR6wUF-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1">

@@ -1067,7 +1109,7 @@ </mxCell>

<mxCell id="YdgG6UzsnOPgAgFR6wUF-97" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{censusRoot}$$" vertex="1"> <mxGeometry height="40" width="80" x="-10" y="-120" as="geometry" /> </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-98" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" value="&lt;div&gt;&lt;u&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;b&gt;VERIFY CENSUS MEMBERSHIP PROOFS&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;- If &lt;b&gt;censusOrigin&lt;/b&gt; = &lt;b&gt;CSP&lt;/b&gt;, then verify CPS&#39;s signature:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;$$\text{S.Verify}_\text{censusRoot}((\text{weight}_i, \text{address}_i), \text{censusProof}_i)$$&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;- Else, do:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div&gt;$$\text{MT.Verify}((\text{weight}_i, \text{address}_i), \text{censusProof}_i, \text{censusRoot})$$&lt;/div&gt;" vertex="1"> + <mxCell id="YdgG6UzsnOPgAgFR6wUF-98" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" value="&lt;div&gt;&lt;u&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;b&gt;VERIFY CENSUS MEMBERSHIP PROOFS&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;- If &lt;b&gt;\(\text{censusOrigin}\)&lt;/b&gt;&amp;nbsp;= CSP, then verify CPS&#39;s signature:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;$$\text{S.Verify}_\text{censusRoot}((\text{weight}_i, \text{address}_i), \text{censusProof}_i)$$&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;- Else, do:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div&gt;$$\text{MT.Verify}((\text{weight}_i, \text{address}_i), \text{censusProof}_i, \text{censusRoot})$$&lt;/div&gt;" vertex="1"> <mxGeometry height="220" width="370" x="-130" y="80" as="geometry" /> </mxCell> <mxCell id="YdgG6UzsnOPgAgFR6wUF-99" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-34" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.346;entryY=-0.013;entryDx=0;entryDy=0;entryPerimeter=0;" target="YdgG6UzsnOPgAgFR6wUF-53" value="">

@@ -1213,10 +1255,10 @@ </mxCell>

<mxCell id="_rE4CFF2qiUWnB8IBAZF-13" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" value="Construct polynomial \(p(x)\)" vertex="1"> <mxGeometry height="40" width="190" x="1510" y="340" as="geometry" /> </mxCell> - <mxCell id="_rE4CFF2qiUWnB8IBAZF-15" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#f8cecc;strokeColor=#b85450;fontStyle=1" value="Blob \(B\)" vertex="1"> - <mxGeometry height="40" width="120" x="1360" y="340" as="geometry" /> + <mxCell id="_rE4CFF2qiUWnB8IBAZF-15" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#f8cecc;strokeColor=#b85450;fontStyle=0" value="Create &lt;b&gt;blob&lt;/b&gt; \(B\) from all state tree leafs that changed" vertex="1"> + <mxGeometry height="60" width="120" x="1360" y="330" as="geometry" /> </mxCell> - <mxCell id="_rE4CFF2qiUWnB8IBAZF-21" parent="YdgG6UzsnOPgAgFR6wUF-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" value="DATA BLOB" vertex="1"> + <mxCell id="_rE4CFF2qiUWnB8IBAZF-21" parent="YdgG6UzsnOPgAgFR6wUF-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" value="DATA BLOB CONSISTENCY CHECK" vertex="1"> <mxGeometry height="40" width="560" x="1430" y="1117.18" as="geometry" /> </mxCell> <mxCell id="_rE4CFF2qiUWnB8IBAZF-22" parent="YdgG6UzsnOPgAgFR6wUF-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1">
M v2/sections/background.tex → v2/sections/background.tex

@@ -23,22 +23,17 @@

\subsection{Merkle trees} \label{sec:background:mt} -Merkle trees~\cite{merkle1987digital} are cryptographic hash trees that enable compact proofs of data inclusion or exclusion. Formally, a Merkle tree is a binary tree structure where each leaf node $L_i$ represents the cryptographic hash of a data block and every non-leaf node is derived from the hash of its children: $H_{parent} = Hash(H_L || H_R)$. The apex of the tree, the \textit{Merkle root}, acts as a succinct cryptographic commitment to the entire dataset. +Merkle trees~\cite{merkle1987digital} are cryptographic hash trees that enable compact proofs of data inclusion. Formally, a Merkle tree is a binary tree structure where each leaf node represents the cryptographic hash of a set of data and every non-leaf node is derived from the hash of its children. The apex of the tree, the \textit{Merkle root}, acts as a succinct cryptographic commitment to the entire dataset. %This structure allows for efficient membership verification. -To prove that a specific element $x$ exists within the set, a prover provides a Merkle path consisting of the sibling nodes along the path from the leaf to the root. A verifier can reconstruct the root in logarithmic time $O(\log n)$ and check it against the committed state, without requiring access to the full dataset. In the context of \davinci, we leverage two specialized variants of this structure to address distinct requirements of the voting protocol: the Census and the Ballot Box. - -The \davinci protocol uses two specialized Merkle structures to commit to critical data: a sparse Merkle tree for the voting state and a lean incremental Merkle tree for the voter registry (census). - - - +To prove that a specific element $x$ exists within the set, a prover provides a Merkle path consisting of the sibling nodes along the path from the leaf to the root. A verifier can reconstruct the root in logarithmic time $O(\log n)$ and check it against the committed state, without requiring access to the full dataset. In \davinci, we use two specialized variants of this structure to commit critical data: a sparse Merkle tree for the voting state and a lean incremental Merkle tree for the voter registry (census). \paragraph{Sparse Merkle trees.} -A \ac{SMT} represents a key-value map where each leaf is the hash of a (key, value) pair and each parent node is the hash of its two children. In an \ac{SMT}, every possible key maps to a unique leaf position {\color{blue}(with empty slots defaulting to a zero value), yielding a fixed-height binary tree}. This property is circuit-friendly, since the proof of a leaf’s membership or non-membership has a consistent length and can be efficiently verified inside a \ac{ZK-SNARK} circuit using a SNARK-optimized hash (Poseidon). In \davinci, the state tree is implemented as an \ac{SMT} of fixed depth. Various pieces of election state are stored at predetermined addresses (leaf indices) in this tree - for example, configuration parameters occupy reserved leaf addresses, each voter’s encrypted ballot is stored at a leaf indexed by their unique identifier (e.g. hashed address), and each one-time vote nullifier or identifier is recorded at a dedicated leaf path. Because the \ac{SMT} covers a vast key space, a user or sequencer can prove that a given key is present in the state (or conversely, that it remains empty) by providing a short Merkle proof against the tree’s root, rather than revealing the entire state. This enables compact proofs of state correctness - for instance, showing in zero-knowledge that a nullifier has not appeared before (to prevent double voting) or that a new ballot’s ciphertext is correctly inserted into the state. The \ac{SMT} used in \davinci follows the circomlib Merkle tree specification (Poseidon-based) for compatibility with the \ac{ZK} circuits, ensuring that state updates can be verified succinctly on-chain via the posted Merkle root and proof. +A \ac{SMT} represents a key-value map where each leaf is the hash of a (key, value) pair and each parent node is the hash of its two children. In an \ac{SMT}, every possible key maps to a unique leaf position (with empty slots defaulting to a zero value), yielding a fixed-height binary tree. This property is circuit-friendly, since the proof of a leaf’s membership or non-membership has a consistent length and can be efficiently verified inside a \ac{ZK-SNARK} circuit using a SNARK-optimized hash. In \davinci, the state tree is implemented as an \ac{SMT} of fixed depth. In particular, configuration parameters occupy reserved leaf addresses, each voter’s encrypted ballot is stored at a leaf indexed by their unique identifier, and each one-time vote identifier is recorded at a dedicated leaf path. Because the \ac{SMT} covers a vast key space, a user or sequencer can prove that a given key is present in the state (or conversely, that it remains empty) by providing a short Merkle proof against the tree’s root, rather than revealing the entire state. This enables compact proofs of state correctness. For instance, showing in ZK that a vote identifier has not appeared before or that a new ballot’s ciphertext is correctly inserted into the state. The \ac{SMT} used in \davinci follows the circomlib Merkle tree specification (Poseidon-based)~\cite{todocitation}, ensuring that state updates can be verified succinctly on-chain via the Merkle root and proof. \paragraph{Lean incremental Merkle trees.} -The census (voter registry) is maintained with a lean \ac{IMT}, a binary Merkle tree designed for efficient sequential updates. Unlike a sparse tree, the lean \ac{IMT} grows in height only as needed with the number of leaves and eliminates the overhead of hashing dummy ``zero'' siblings. In this scheme, voters are assigned sequential leaf indices in a continuously evolving tree, rather than being placed at cryptographic key-derived positions. This incremental index approach keeps the tree perfectly balanced and filled, which avoids the large empty regions and random collisions that a sparse key assignment would introduce. In \davinci, the census Merkle tree is built as a lean \ac{IMT}: each eligible voter’s identifier (or a commitment to it) and voting weight are stored in the next available leaf, and only the Merkle root of this tree (the \censusroot) is published on-chain. This design makes membership updates and proof generation extremely low-cost for the census. Appending a new voter requires recomputing hashes only along the single path from the new leaf to the root, and the tree’s depth adjusts optimally (e.g. a tree of N voters has height $\approx \log_2{N}$, instead of a fixed large height). Consequently, proving one’s inclusion in the voter list is more efficient than it would be with an SMT: the Merkle proof is shorter and involves no unnecessary default nodes. A voter can thus obtain a small proof of their membership in the census (their leaf’s existence under the known root) without revealing their index or identity, and include this in a \ac{ZK-SNARK} to demonstrate eligibility. In summary, the lean \ac{IMT}’s focus on sequential insertion and minimal hashing overhead makes it well-suited for the frequently-updated census tree, offering better update performance and smaller circuits for verification than a traditional sparse Merkle structure in this context. +The census (voter registry) is maintained with a lean \ac{IMT}, a binary Merkle tree designed for efficient sequential updates~\cite{todocitation}. Unlike a sparse tree, the lean \ac{IMT} grows in height only as needed with the number of leaves and eliminates the overhead of hashing dummy ``zero'' siblings. In this scheme, voters are assigned sequential leaf indices in a continuously evolving tree, rather than being placed at cryptographic key-derived positions. In \davinci, the census Merkle tree is built as a lean \ac{IMT}: each eligible voter’s identifier (or a commitment to it) and voting weight are stored in the next available leaf, and only the Merkle root of this tree (the \censusroot) is published on-chain. This design makes membership updates and proof generation extremely low-cost for the census. Appending a new voter requires recomputing hashes only along the single path from the new leaf to the root, and the tree’s depth adjusts optimally (e.g. a tree of N voters has height $\approx \log_2{N}$, instead of a fixed large height). Consequently, proving one’s inclusion in the voter list is more efficient than it would be with an SMT: the Merkle proof is shorter and involves no unnecessary default nodes. A voter can thus obtain a small proof of their membership in the census (their leaf’s existence under the known root) without revealing their index or identity, and include this in a \ac{ZK-SNARK} to demonstrate eligibility. In summary, the lean \ac{IMT}’s focus on sequential insertion and minimal hashing overhead makes it well-suited for the frequently-updated census tree, offering better update performance and smaller circuits for verification than a traditional sparse Merkle structure in this context. \subsection{Zero-knowledge proofs} \label{sec:background:zkp}
M v2/sections/circuits.tex → v2/sections/circuits.tex

@@ -62,7 +62,7 @@ \noi \textbf{Public inputs}

\begin{itemize} \item \public $\processid$: election identifier. \item \public $\ballotmode$: ballot protocol configuration. - \item \public $\epk$ ($EPK$): encryption public key. + \item \public $\epk$: encryption public key. \item \public $\encryptedballot$: encrypted ballot. \item \public $\voteid$: vote's unique identifier. \item \public $\address$: voter's address.

@@ -76,15 +76,25 @@ \item \private $\ballotproof$: voter's ballot proof.

\end{itemize} \textbf{Constraints} \begin{itemize} - \item \emph{Authentication + non-malleability.} The signature of the vote's identifier is valid for the given public key: - $$ \hlget{\SVer}_{\pk}(\voteid, \signature) = \true. $$ - \item Compute the address derived from the user's public key: $ \address = \hlget{\Keccak}(\pk)$. - \item \emph{Voter's proof verification.} The voter's submitted proof is valid for the inputs provided: - \begin{align*} - &\hlget{\PVerify}(\ballotproof, \publicinputs = (\processid, \ballotmode, \epk, \encryptedballot, - \voteid, \\ - &\weight, \address)) = \true. - \end{align*} + \item \emph{Authentication + non-malleability.} The voter submitted and signed their vote. + \begin{itemize} + \renewcommand{\labelitemii}{$\circ$} + \item The signature of the vote's identifier is valid for the given public key: + $$ \hlget{\SVer}_{\pk}(\voteid, \signature) = \true. $$ + \item The address is correctly derived from the user's public key: + $$\address = \hlget{\Keccak}(\pk).$$ + \end{itemize} + \item \emph{Voter's proof verification.} The voter's submitted proof is valid for the inputs provided. + \begin{itemize} + \renewcommand{\labelitemii}{$\circ$} + \item Set public inputs: + \begin{align*} + \publicinputs = (\processid, \ballotmode, \epk, \encryptedballot, + \voteid, \weight, \address). + \end{align*} + \item Verify proof: + $$\hlget{\PVerify}(\ballotproof, \publicinputs) = \true.$$ + \end{itemize} \end{itemize} \vspace{-0.3cm} \end{spacing}

@@ -117,11 +127,16 @@ \item \private $\{\authenticationproof_i\}_{i=1}^{\batchsize}$: set of authentication proofs.

\end{itemize} \textbf{Constraints} \\ \vspace{-0.4cm} \begin{itemize} - \item \emph{Votes aggregation.} The accumulated authentication proofs are valid. That is, for every $i\in\{1,\dots,\batchsize\}$: - \begin{align*} - &\hlget{\PVerify}(\authenticationproof_i, \publicinputs = (\encryptedballot_i, \voteid_i, \address_i, \weight_i, \processid, \\ - &\ballotmode, \epk)) = \true. - \end{align*} + \item \emph{Votes aggregation.} The accumulated authentication proofs are valid. For every $i\in\{1,\dots,\batchsize\}$: + \begin{itemize} + \renewcommand{\labelitemii}{$\circ$} + \item Set public inputs: + \begin{align*} + \publicinputs = (\encryptedballot_i, \voteid_i, \address_i, \weight_i, \processid, \ballotmode, \epk). + \end{align*} + \item Verify proof: + $$\hlget{\PVerify}(\authenticationproof_i, \publicinputs) = \true.$$ + \end{itemize} \item \emph{Shared public inputs.} All authentication proofs are verified using the same public inputs \processid, \ballotmode, and \epk. \end{itemize} \vspace{-0.3cm}

@@ -133,87 +148,111 @@ \caption{Aggregation circuit. All public values are framed in green.}

\label{fig:circuit-aggregate} \end{figure} +\vspace{-0.5cm} \subsubsection{State transition circuit} \label{sec:vocdoni-protocol:circuits:state-transition} -The state transition circuit (\hlset{\statetransitioncircuit}), illustrated in Figure~\ref{fig:circuit-state-transition-v2}, is generated by the sequencer to update the global state of the election. Its purpose is to verify that a batch of aggregated votes has been correctly incorporated into the state Merkle tree, that overwrites and vote identifiers are handled consistently, and that the accumulators of encrypted results are updated accordingly. The correctness of this circuit is attested by a \ac{ZK} proof generated using the \ac{ZK-SNARK} protocol described in Section~\ref{sec:cryptographic-primitives:zkp}, instantiated over the BN254 curve, which is supported by Ethereum’s native precompiles for proof verification. We call the resulting proof the \textit{state proof} and denote it as $\hlset{\stateproof}$. This proof is submitted on-chain and verified by the process management smart contract, ensuring that every accepted state transition complies with the protocol rules. - -To formalize the setting, let the sequencer collect a batch of $N$ votes ($N\leq60$), of which $n$ are new submissions and $m = N-n$ are overwrites of previously cast ballots. In the following, we describe the inputs and constraints of the state transition circuit in detail. +The state transition circuit (\hlset{\statetransitioncircuit}), illustrated in Figure~\ref{fig:circuit-state-transition-v2}, is generated by the sequencer to update the global state of the election. Its purpose is to verify that a batch of aggregated votes has been correctly incorporated into the state Merkle tree, that overwrites and vote identifiers are handled consistently, and that the accumulators of encrypted results are updated accordingly {\color{blue}[+census membership +blobs]}. The correctness of this circuit is attested by a \ac{ZK} proof generated using the \ac{ZK-SNARK} protocol described in Section~\ref{sec:cryptographic-primitives:zkp}, instantiated over the BN254 curve, which is supported by Ethereum’s native precompiles for proof verification. We call the resulting proof the \textit{state proof} and denote it as $\hlset{\stateproof}$. This proof is submitted on-chain and verified by the process management smart contract, ensuring that every accepted state transition complies with the protocol rules. +To formalize the setting, let the sequencer collect a batch of $N$ votes ($N\leq60$), of which $n$ are new vote submissions and $m = N-n$ are overwrites of previously cast ballots. Without loss of generality, we assume that the batch is ordered such that the first $n$ votes correspond to new submissions, and the remaining $m$ votes correspond to overwrites. In the following, we describe the inputs and constraints of the state transition circuit in detail. \begin{spacing}{1.25} \vspace{0.3cm} \noi \textbf{Public inputs} \begin{itemize} - \item \public $\censusroot$: census Merkle tree root. - \item \public $\stateroot^{old}$: current state tree root. - \item \public $\stateroot^{new}$: new tree root after all state transitions are applied. - \item \public $\numoverwrites^{old}$: current number of overwrites. - \item \public $\numoverwrites^{new}$: number of overwrites after all state transitions are applied. - \item \public $\numvotes^{old}$: current number of votes. - \item \public $\numvotes^{new}$: total number of votes after all state transitions are applied. + \item \public $\censusroot$: Merkle root of the census tree. + \item \public $\stateroot^\old$: current Merkle root of the state tree. + \item \public $\stateroot^\new$: new tree root after all state transitions are applied. + \item \public $\numoverwrites^\old$: current number of overwrites. + \item \public $\numoverwrites^\new$: number of overwrites after all state transitions are applied. + \item \public $\numvotes^\old$: current number of votes. + \item \public $\numvotes^\new$: total number of votes after all state transitions are applied. \item \public $C$: commitment to the data blob. \end{itemize} \textbf{Private inputs} \begin{itemize} - \item \private $\censusorigin$: census origin parameter. - \item \private $\{\aggregationproof_i\}_{i= 1}^{N}$: set of aggregation proofs. - \item \private $\{\censuspf_i\}_{i = 1}^N$: census membership proofs. + \item \private $\processid$: election identifier. + \item \private $\censusorigin$: census origin parameter. \item \private $\ballotmode$: ballot protocol configuration. \item \private $\epk$: encryption public key. - \item \private $\processid$: election identifier. - \item \private $\{\voteid_i\}_{i= 1}^{N}$: set of vote's identifiers. - \item \private $\{\encryptedballot_i\}_{i= 1}^{N}$: set of voters' encrypted ballots. - \item \private $\{\pk_i\}_{i= 1}^{N}$: list of voters' public keys. - \item \private $\{\merkleproofs^{encBallots}_i\}_{i= 1}^{N}$: Merkle tree proofs of encrypted ballots. If it is a new vote, the proof will be a non-inclusion proof, if it is an overwrite, an inclusion proof. - \item \private $\{\merkleproofs^{\voteid}_i\}_{i= 1}^{N}$: non-membership proofs of vote identifiers. - \item \private $\addaccumulator^{old}$: current accumulator of votes (before the transitions). - \item \private $\substractaccumulator^{old}$: current accumulator of votes that have been overwritten (before the transition). + \item \private $\addaccumulator^\old$: current accumulator of votes (before transitions are applied). + \item \private $\substractaccumulator^\old$: current accumulator of votes that have been overwritten (before transitions). \\ + % + \item \private $\{\aggregationproof_i\}_{i = 1}^{N}$: set of aggregation proofs. + \item \private $\{\censuspf_i\}_{i = 1}^N$: census membership proofs. + % + \item \private $\{\voteid_i\}_{i = 1}^{N}$: set of vote's identifiers. + \item \private $\{\encryptedballot_i\}_{i = 1}^{N}$: set of voters' encrypted ballots. + \item \private $\{\encryptedballot_i^\old\}_{i = n+1}^{N}$: set of all old encrypted ballots that will be overwritten. + \item \private $\{\address_i\}_{i = 1}^{N}$: list of voters' addresses. + \item \private $\{\weight_i\}_{i = 1}^{N}$: list of voters' weights. \\ + % + \item \private $\merkleInclusionPf^{\processid}$: proof that $\processid$ is stored in leaf $\texttt{0x0}$ of the state tree. + \item \private $\merkleInclusionPf^{\censusorigin}$: proof that $\censusorigin$ is stored in leaf $\texttt{0x1}$ of the tree. + \item \private $\merkleInclusionPf^{\ballotmode}$: proof that $\ballotmode$ is stored in leaf $\texttt{0x2}$ of the state tree. + \item \private $\merkleInclusionPf^{\addaccumulator}$: proof that $\addaccumulator^\old$ is stored in leaf $\texttt{0x3}$ of the state tree. + \item \private $\merkleInclusionPf^{\substractaccumulator}$: proof that $\substractaccumulator^\old$ is stored in leaf $\texttt{0x4}$ of the state tree.\\ + % + \item \private $\{\merkleNInclusionPf^{\encryptedballot}_i\}_{i = 1}^{n}$: proof that the leaf corresponding to a voter's $\address$ that submits a new vote is empty. + \item \private $\{\merkleInclusionPf^{\encryptedballot}_i\}_{i = n+1}^{N}$: proof that the vote $\encryptedballot_i^\old$ is stored in the leaf corresponding to a voter's $\address$ that submits the vote overwrite $\encryptedballot_i$. + \item \private $\{\merkleNInclusionPf^{\voteid}_i\}_{i= 1}^{N}$: non-membership proofs of vote identifiers.\\ + % \item \private $k$: random scalar. \item \private $\openproof$: KZG opening proof. \end{itemize} \textbf{Constraints} \\ \vspace{-0.4cm} \begin{itemize} \item \emph{Aggregation verification.} The accumulated authentication proofs are valid. For every $i\in\{1,\dots,N\}$: - \begin{align*} - &\hlget{\PVerify}(\aggregationproof_i, \publicinputs = (\weight_i, \address_i, \encryptedballot_i, \voteid_i, \ballotmode, \\ - &\epk, \processid)) = \true. - \end{align*} - \item \emph{Census membership.} The address derived from the user's public key is part of the census, and verifies the census proof with the user's weight provided: - $$ \hlget{\censusTree}.\hlget{\MTVerify}\left(\weight, \address, \censuspf, \censusroot\right) = \true. $$ - \item \emph{Transition verification.} Verify initial state and state transitions are applied correctly. + \begin{itemize} + \renewcommand{\labelitemii}{$\circ$} + \item Set public inputs: + \begin{align*} + \publicinputs = (\weight_i, \address_i, \encryptedballot_i, \voteid_i, \ballotmode, \epk, \processid). + \end{align*} + \item Verify proof: + $$\hlget{\PVerify}(\aggregationproof_i, \publicinputs) = \true.$$ + \end{itemize} + \item \emph{Census membership.} The voter's address and weight are part of the census. For every $i\in\{1,\dots,N\}$: + $$ \hlget{\censusTree}.\hlget{\MTVerify}\left((\weight_i, \address_i), {\color{blue}{path??}}, \censuspf_i, \censusroot\right) = \true. $$ + \item \emph{Transition verification.} Verify that the initial state and the state transition updates are applied correctly. \begin{itemize} \renewcommand{\labelitemii}{$\circ$} - \item Verify that the inputs $\processid$, $\censusroot$, $\ballotmode$, $\epk$, $\addaccumulator$, and $\substractaccumulator$ correspond to the content of the census Merkle tree leaves $\texttt{0x0}$, $\texttt{0x1}$, $\texttt{0x2}$, $\texttt{0x3}$, $\texttt{0x4}$, $\texttt{0x5}$, respectively. {\color{blue} The root of the tree, with all data and those six leaves, results in \stateroot.} - \[\stateTree\text{(with these six leaves and the rest)}.\MTRoot() = \stateroot.\] + \item Verify that the inputs $\processid$, $\censusorigin$, $\ballotmode$, $\epk$, $\addaccumulator^\old$, and $\substractaccumulator^\old$ correspond to the content of the first state tree leaves. + \begin{align*} + &\hlget{\stateTree}.\hlget{\MTVerify}(\processid, \texttt{0x0}, \merkleInclusionPf^{\processid}, \stateroot^\old). \\ + &\hlget{\stateTree}.\hlget{\MTVerify}(\censusorigin, \texttt{0x1}, \merkleInclusionPf^{\censusorigin}, \stateroot^\old). \\ + &\hlget{\stateTree}.\hlget{\MTVerify}(\ballotmode, \texttt{0x2}, \merkleInclusionPf^{\ballotmode}, \stateroot^\old). \\ + &\hlget{\stateTree}.\hlget{\MTVerify}(\epk, \texttt{0x3}, \merkleInclusionPf^{\epk}, \stateroot^\old). \\ + &\hlget{\stateTree}.\hlget{\MTVerify}(\addaccumulator^\old, \texttt{0x4}, \merkleInclusionPf^{\addaccumulator}, \stateroot^\old). \\ + &\hlget{\stateTree}.\hlget{\MTVerify}(\substractaccumulator^\old, \texttt{0x5}, \merkleInclusionPf^{\substractaccumulator}, \stateroot^\old). + \end{align*} \item Verify that none of the $\voteid_i$ for all $i\in\{1,\dots,N\}$ are initially part of the tree: - \[\stateTree.NonInclusionVerify(\voteid_i, \merkleproofs^{\voteid}_i, \stateroot).\] + \[\hlget{\stateTree}.\hlget{\MTVerify}(\voteid_i, \merkleNInclusionPf^{\voteid}_i, \stateroot^\old).\] \item Ensure that new votes are not part of the tree yet. For $i = 1, \dots, n$: - \[\stateTree \text{-- the leaf following the $\address_i = \hlget{\Keccak}(\pk_i)$ path is empty}.\] + \[\hlget{\stateTree}.\hlget{\MTVerify}(\textsc{\color{blue}EMPTY}, \address_i, \merkleNInclusionPf^{\encryptedballot}_i, \stateroot^\old).\] \item Ensure that overwrites do correspond to votes that were already on the tree. For $i = n+1, \dots, N$: - \[\stateTree \text{-- the leaf following the $\address_i = \hlget{\Keccak}(\pk_i)$ path stores an encrypted ballot}.\] + \[\hlget{\stateTree}.\hlget{\MTVerify}(\encryptedballot_i^\old, \address_i, \merkleInclusionPf^{\encryptedballot}_i, \stateroot^\old).\] \item State transitions. \begin{itemize} - \item For new votes (keep iterating for all of them): + \item For every new vote $i = 1, \dots, n$: \begin{enumerate} - \item Add encrypted ballot to the tree: $\stateTree.\hlget{\MTInsert}(\address = \hlget{\Keccak}(\pk), \encryptedballot)$. - \item Add vote identifier: $\stateTree.\hlget{\MTInsert}(\voteid)$. + \item Add encrypted ballot to the tree: $\hlget{\stateTree}.\hlget{\MTInsert}(\encryptedballot_i, \address_i)$. + \item Add vote identifier: $\hlget{\stateTree}.\hlget{\MTInsert}(\voteid)$. \item Increase votes counter: $\numvotes = \numvotes + 1$. - \item Aggregate the vote to the results accumulator: $\addaccumulator = \addaccumulator + \encryptedballot$. + \item Aggregate the vote to the results accumulator: $\addaccumulator = \addaccumulator + \encryptedballot_i$. \end{enumerate} - \item For overwritten votes (keep iterating for all of them): + \item For every overwritten vote $i = n+1, \dots, N$: \begin{enumerate} - \item Overwrite the encrypted ballot: $\stateTree.\hlget{\MTUpdate}(\address = \hlget{\Keccak}(\pk), \encryptedballot)$. - \item Add vote identifier: $\stateTree.\hlget{\MTInsert}(\voteid)$. + \item Overwrite the encrypted ballot: $\hlget{\stateTree}.\hlget{\MTUpdate}(\encryptedballot, \address_i)$. + \item Add vote identifier: $\hlget{\stateTree}.\hlget{\MTInsert}(\voteid)$. \item Increase votes counter: $\numvotes = \numvotes + 1$. \item Increase overwrites counter: $\numoverwrites = \numoverwrites + 1$. - \item Aggregate the vote to the results accumulator: $\addaccumulator = \addaccumulator + \encryptedballot$. - \item Aggregate the old vote to the accumulator: $\substractaccumulator = \substractaccumulator + \encryptedballot^{old}$. + \item Aggregate the vote to the results accumulator: $\addaccumulator = \addaccumulator + \encryptedballot_i$. + \item Aggregate the old vote to the accumulator: $\substractaccumulator = \substractaccumulator + \encryptedballot^\old_i$. \end{enumerate} - {\color{blue}The old $\encryptedballot^{old}$ should also be inputs or retrieved from the MT inclusion proofs -- YES.} \end{itemize} \item After all previous state transitions are done, recompute new tree root: - \[\stateroot^{new} = \stateTree.\hlget{\MTRoot}().\] + \[\stateroot^\new = \hlget{\stateTree}.\hlget{\MTRoot}().\] \item Reencrypt all leafs of the tree (both old and new ones). {\color{blue}New are ok, but for those that are old, also verify MTProofs of membership? -- YES}. \[newLeafContent = \hlget{\ReEnc}_{\epk}(\encryptedballot_i, k), \quad k = Hash(k).\] \end{itemize}

@@ -239,7 +278,7 @@ \begin{landscape}

\centering {\setkeys{Gin}{draft=false}%shows image even in draft mode \includegraphics[width=\linewidth]{\figs/circuit4.pdf}} - \captionof{figure}{State transition circuit. All public values are framed in green.} + \captionof{figure}{State transition circuit. All public values are framed in green. {\color{blue}\textbf{Missing inputs:} old encryptedBallots.}} \label{fig:circuit-state-transition-v2} \end{landscape}
M v2/sections/protocol-intuition.tex → v2/sections/protocol-intuition.tex

@@ -26,7 +26,7 @@ Once the encryption public key is securely computed and published in the smart contract, the voting period can start.\\

% \item \textit{Voting period}. During the voting period, two actors interact continuously: \textit{voters}, who cast their encrypted ballots, and \emph{sequencers}, independent entities responsible for collecting, verifying, and processing these ballots before committing them to the shared state. Both processes, ballot submission by voters (\ref{sec:protocol-intuition:vote-casting}) and vote batching by sequencers (\ref{sec:protocol-intuition:vote-batching}), occur continuously and in parallel throughout this phase. - The voting period remains open until the deadline defined by the organizer, allowing voters to submit or overwrite ballots at any time, while sequencers periodically process new submissions and update the election state accordingly. + The voting period remains open until the deadline defined by the organizer, allowing voters to submit or overwrite ballots at any time, while sequencers periodically process new submissions and update the election state accordingly.\\ %to a separate entity called \textit{sequencers}, which are independent participants responsible for collecting, validating, and processing votes before committing them to the shared state.