add circuit 4 + fix typos
@@ -1,4 +1,4 @@
-<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0" version="28.0.4" pages="5"> +<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0" version="27.1.6" pages="6"> <diagram name="1. voter-circuit" id="-BY3RIMELlOST2Ke_Soi"> <mxGraphModel dx="945" dy="517" 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>@@ -497,327 +497,575 @@ </mxCell>
</root> </mxGraphModel> </diagram> - <diagram name="4. state-transition-circuit" id="x6B-zyxiSRkjN1jwR15T"> - <mxGraphModel dx="2642" dy="1760" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> + <diagram name="4. state-transition-circuit" id="PK6FMuq_bwtaiANtLuxe"> + <mxGraphModel dx="3782" dy="1928" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> <root> - <mxCell id="ZdTqr67gGV_Two7x-mBu-0" /> - <mxCell id="ZdTqr67gGV_Two7x-mBu-1" parent="ZdTqr67gGV_Two7x-mBu-0" /> - <mxCell id="phJliGzTQF7XW9zZiR-q-19" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.727;entryY=-0.02;entryDx=0;entryDy=0;entryPerimeter=0;" parent="ZdTqr67gGV_Two7x-mBu-1" source="ZdTqr67gGV_Two7x-mBu-4" target="JGRwFc0fyMI5h4bvW3bD-0" edge="1"> - <mxGeometry relative="1" as="geometry" /> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-0" /> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-1" parent="D6Gzr2-08hJ62fW1Y4SW-0" /> + <mxCell id="ojYA5p9BOs-s12dUr8XO-1" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry x="-390" y="-340" width="1990" height="1380" as="geometry" /> + </mxCell> + <mxCell id="ojYA5p9BOs-s12dUr8XO-0" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry x="-250" y="-60" width="1800" height="980" as="geometry" /> + </mxCell> + <mxCell id="EZ67WfkGteQ7pZBN_wck-0" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fontStyle=1;dashed=1;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry x="280" y="330" width="1040" height="550" as="geometry" /> </mxCell> - <mxCell id="ZdTqr67gGV_Two7x-mBu-4" value="$$\text{voteID}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="120" y="40" width="80" height="40" as="geometry" /> + <mxCell id="EZ67WfkGteQ7pZBN_wck-7" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fontStyle=1;dashed=1;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry x="290" y="480" width="160" height="60" as="geometry" /> </mxCell> - <mxCell id="ZdTqr67gGV_Two7x-mBu-9" value="$$\text{censusRoot}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="440" y="-10" width="80" height="40" as="geometry" /> + <mxCell id="EZ67WfkGteQ7pZBN_wck-1" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fontStyle=1;dashed=1;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry x="915" y="347" width="355" height="113" as="geometry" /> </mxCell> - <mxCell id="ZdTqr67gGV_Two7x-mBu-10" value="<div>$$\text{ballotMode}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="440" y="-110" width="80" height="40" as="geometry" /> + <mxCell id="0c9yVQNtpXtt_NukVZet-10" value="" style="rounded=0;whiteSpace=wrap;html=1;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="320" y="-310" width="380" height="230" as="geometry" /> </mxCell> - <mxCell id="ZdTqr67gGV_Two7x-mBu-11" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="440" y="-60" width="80" height="40" as="geometry" /> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-3" value="$$\text{voteID}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="480" y="-190" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="phJliGzTQF7XW9zZiR-q-13" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="ZdTqr67gGV_Two7x-mBu-1" source="ZdTqr67gGV_Two7x-mBu-12" target="phJliGzTQF7XW9zZiR-q-1" edge="1"> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-1" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="D6Gzr2-08hJ62fW1Y4SW-10" target="yhMjlz7L6oX0I03LSNM_-0" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="640" y="-30" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-10" value="$$pk_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="600" y="-140" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-26" value="$$\text{stateRoot}^{\text{old}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="1160" y="-120" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="SGKnkJu5_sYSCg57PFAC-7" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" target="xZoSSO8U0oyJhFnYmJBx-8"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="779.67" y="230" as="sourcePoint" /> + <mxPoint x="779.67" y="620" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="I46Z3Tsccw4bTtzRbnAU-12" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="xZoSSO8U0oyJhFnYmJBx-9" target="xZoSSO8U0oyJhFnYmJBx-5"> <mxGeometry relative="1" as="geometry" /> </mxCell> - <mxCell id="ZdTqr67gGV_Two7x-mBu-12" value="$$(C_1, C_2)_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="320" y="40" width="80" height="40" as="geometry" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-22" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="505" y="1220" as="sourcePoint" /> + <mxPoint x="505" y="1220" as="targetPoint" /> + </mxGeometry> </mxCell> - <mxCell id="ZdTqr67gGV_Two7x-mBu-13" value="<div>$$\text{processID}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="440" y="40" width="80" height="40" as="geometry" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-30" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.513;entryDx=0;entryDy=0;entryPerimeter=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="xZoSSO8U0oyJhFnYmJBx-25" edge="1" target="EZ67WfkGteQ7pZBN_wck-1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1280" y="405" as="targetPoint" /> + <Array as="points"> + <mxPoint x="1390" y="830" /> + <mxPoint x="1390" y="405" /> + </Array> + </mxGeometry> </mxCell> - <mxCell id="ZdTqr67gGV_Two7x-mBu-14" value="$$pk_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="120" y="-10" width="80" height="40" as="geometry" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-23" value="$$\text{stateRoot}^{\text{new}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="1040" y="810" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="phJliGzTQF7XW9zZiR-q-21" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="ZdTqr67gGV_Two7x-mBu-1" source="ZdTqr67gGV_Two7x-mBu-32" edge="1"> + <mxCell id="EZ67WfkGteQ7pZBN_wck-18" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="xZoSSO8U0oyJhFnYmJBx-24"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="-100" y="160" as="targetPoint" /> + <mxPoint x="680" y="960" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="ZdTqr67gGV_Two7x-mBu-32" value="<div style="font-size: 11px;">$$\text{aggregationProof}_i$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="-160" y="40" width="120" height="40" as="geometry" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-24" value="<div><div>$$\text{numVotes}^{\text{new}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="620" y="810" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="xnlEkFcDW3wDAF-mUqor-2" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="ZdTqr67gGV_Two7x-mBu-1" source="JGRwFc0fyMI5h4bvW3bD-0" target="xnlEkFcDW3wDAF-mUqor-0" edge="1"> + <mxCell id="EZ67WfkGteQ7pZBN_wck-16" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="xZoSSO8U0oyJhFnYmJBx-25"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="60" y="270" as="targetPoint" /> + <mxPoint x="540" y="960" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="JGRwFc0fyMI5h4bvW3bD-0" value="recursive SNARK batch verifier" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="-160" y="160" width="440" height="40" as="geometry" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-25" value="<div><div>$$\text{numOverwrites}^{\text{new}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="480" y="810" width="120" height="40" as="geometry" /> + </mxCell> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-26" value="<div><div>$$\text{resultsAdd}^{\text{new}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="900" y="810" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="tK7HVng925d0syRrVfO4-0" value="AGGREGATION VERIFICATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="-170" y="440" width="440" height="40" as="geometry" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-27" value="<div><div>$$\text{resultsSub}^{\text{new}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="760" y="810" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="d2DoWqZH1p_f5rfd7LTq-0" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="42.18" y="202.82" width="20" height="435" as="geometry" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-34" value="$$\text{stateRoot}^{\text{new}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="1040" y="960" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="wiVq041o4hXXWoejm4On-0" value="TRANSITION VERIFICATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=11;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="720" y="440" width="400" height="40" as="geometry" /> + <mxCell id="0c9yVQNtpXtt_NukVZet-3" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="kZ82RYXQcsU66MAzuXJf-0" target="kZ82RYXQcsU66MAzuXJf-1" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="-145" y="-10" as="targetPoint" /> + </mxGeometry> </mxCell> - <mxCell id="wiVq041o4hXXWoejm4On-1" value="VOTES COUNT" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="480" y="440" width="200" height="40" as="geometry" /> + <mxCell id="kZ82RYXQcsU66MAzuXJf-0" value="<div style="font-size: 11px;">$$\text{aggregationProof}_i$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="-165" y="-120" width="130" height="40" as="geometry" /> </mxCell> - <mxCell id="phJliGzTQF7XW9zZiR-q-0" value="VOTES REENCRYPTION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#ffe6cc;strokeColor=#d79b00;fontSize=11;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="290" y="440" width="140" height="40" as="geometry" /> + <mxCell id="kZ82RYXQcsU66MAzuXJf-1" value="recursive SNARK batch verifier" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="-210" y="80" width="440" height="220" as="geometry" /> </mxCell> - <mxCell id="phJliGzTQF7XW9zZiR-q-11" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.083;entryY=-0.018;entryDx=0;entryDy=0;entryPerimeter=0;" parent="ZdTqr67gGV_Two7x-mBu-1" source="phJliGzTQF7XW9zZiR-q-1" target="phJliGzTQF7XW9zZiR-q-10" edge="1"> + <mxCell id="0c9yVQNtpXtt_NukVZet-4" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="D6Gzr2-08hJ62fW1Y4SW-3" edge="1"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="710" y="300" as="targetPoint" /> + <mxPoint x="520.09" y="-60" as="sourcePoint" /> + <mxPoint x="520" y="80" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> + </mxCell> + <mxCell id="0c9yVQNtpXtt_NukVZet-1" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.75;entryY=0;entryDx=0;entryDy=0;startArrow=oval;startFill=1;jumpStyle=arc;" parent="D6Gzr2-08hJ62fW1Y4SW-1" target="kZ82RYXQcsU66MAzuXJf-1" edge="1"> + <mxGeometry width="50" height="50" relative="1" as="geometry"> + <mxPoint x="320" y="-120" as="sourcePoint" /> + <mxPoint x="570" y="-110" as="targetPoint" /> <Array as="points"> - <mxPoint x="360" y="220" /> - <mxPoint x="680" y="220" /> - <mxPoint x="680" y="300" /> - <mxPoint x="680" y="300" /> + <mxPoint x="120" y="-120" /> + <mxPoint x="120" /> </Array> </mxGeometry> </mxCell> - <mxCell id="phJliGzTQF7XW9zZiR-q-1" value="$$ReEnc()$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="320" y="160" width="80" height="40" as="geometry" /> + <mxCell id="yhMjlz7L6oX0I03LSNM_-1" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="yhMjlz7L6oX0I03LSNM_-0" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="640.0222222222224" y="29.88000000000011" as="sourcePoint" /> + <mxPoint x="640" y="80" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> </mxCell> - <mxCell id="phJliGzTQF7XW9zZiR-q-25" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.271;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" parent="ZdTqr67gGV_Two7x-mBu-1" source="phJliGzTQF7XW9zZiR-q-3" target="phJliGzTQF7XW9zZiR-q-10" edge="1"> + <mxCell id="yhMjlz7L6oX0I03LSNM_-0" value="$$\text{Hash}(pk_i)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="600" y="-40" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="D1O2pzwOY9OCH-spyj_d-0" value="$$\text{address}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=default;strokeColor=none;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="610" y="20" width="60" height="39.88" as="geometry" /> + </mxCell> + <mxCell id="yhMjlz7L6oX0I03LSNM_-6" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="D6Gzr2-08hJ62fW1Y4SW-24" edge="1"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="770" y="190" as="targetPoint" /> + <mxPoint x="898.95" y="-80" as="sourcePoint" /> + <mxPoint x="900" y="80" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> + </mxCell> + <mxCell id="yhMjlz7L6oX0I03LSNM_-7" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="xZoSSO8U0oyJhFnYmJBx-20" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1059.47" y="-80" as="sourcePoint" /> + <mxPoint x="1060" y="80" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> + </mxCell> + <mxCell id="yhMjlz7L6oX0I03LSNM_-8" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1199.47" y="-80" as="sourcePoint" /> + <mxPoint x="1199" y="80" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> + </mxCell> + <mxCell id="0c9yVQNtpXtt_NukVZet-11" value="public inputs" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="160" y="-140" width="120" height="40" as="geometry" /> + </mxCell> + <mxCell id="jH9XEzTzumLLzgrA1KFi-0" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="kZ82RYXQcsU66MAzuXJf-1" target="jH9XEzTzumLLzgrA1KFi-1" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint y="310" as="targetPoint" /> + <mxPoint y="240" as="sourcePoint" /> + </mxGeometry> + </mxCell> + <mxCell id="jH9XEzTzumLLzgrA1KFi-1" value="true" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="-30" y="960" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="0c9yVQNtpXtt_NukVZet-8" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="D6Gzr2-08hJ62fW1Y4SW-4" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="400" y="-80" as="sourcePoint" /> + <mxPoint x="400" y="80" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> + </mxCell> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-4" value="$$\text{censusRoot}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="360" y="-290" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-5" value="<div>$$\text{ballotMode}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="360" y="-240" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-6" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="360" y="-190" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-9" value="<div>$$\text{processID}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="360" y="-140" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-8" value="$$(C_1, C_2)_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="480" y="-140" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-23" value="<div>$$\text{numVotes}^{\text{old}}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="840" y="-120" width="120" height="40" as="geometry" /> + </mxCell> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-24" value="<div>$$\text{numOverwrites}^{\text{old}}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="840" y="-170" width="120" height="40" as="geometry" /> + </mxCell> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-20" value="<div>$$\text{resultsAdd}^{\text{old}}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="1000" y="-170" width="120" height="40" as="geometry" /> + </mxCell> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-21" value="<div>$$\text{resultsSub}^{\text{old}}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="1000" y="-120" width="120" height="40" as="geometry" /> + </mxCell> + <mxCell id="I46Z3Tsccw4bTtzRbnAU-13" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="RKRk78QnPbcHQFYOCmT4-4" target="xZoSSO8U0oyJhFnYmJBx-5"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="I46Z3Tsccw4bTtzRbnAU-2" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;jumpStyle=arc;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="I46Z3Tsccw4bTtzRbnAU-0" target="I46Z3Tsccw4bTtzRbnAU-3"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="320" y="730" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="phJliGzTQF7XW9zZiR-q-3" value="<div>$$\text{totalNewVotes}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="720" y="80" width="100" height="40" as="geometry" /> + <mxCell id="I46Z3Tsccw4bTtzRbnAU-0" value="$$k$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry x="-350" y="490" width="60" height="40" as="geometry" /> </mxCell> - <mxCell id="phJliGzTQF7XW9zZiR-q-4" value="<div>$$\text{totalOverwrites}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="720" y="30" width="100" height="40" as="geometry" /> + <mxCell id="I46Z3Tsccw4bTtzRbnAU-4" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="I46Z3Tsccw4bTtzRbnAU-3" target="xZoSSO8U0oyJhFnYmJBx-5"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="440" y="730" as="sourcePoint" /> + </mxGeometry> + </mxCell> + <mxCell id="I46Z3Tsccw4bTtzRbnAU-3" value="$$\text{Hash}(k)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry x="360" y="490" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="phJliGzTQF7XW9zZiR-q-5" value="$$AddBN254()$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="520" y="320" width="80" height="40" as="geometry" /> + <mxCell id="I46Z3Tsccw4bTtzRbnAU-18" value="" style="text;whiteSpace=wrap;html=1;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry x="880" y="1020" width="60" height="50" as="geometry" /> </mxCell> - <mxCell id="phJliGzTQF7XW9zZiR-q-6" value="$$\text{stateRoot}^{\text{old}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="1040" y="30" width="80" height="40" as="geometry" /> + <mxCell id="KAu6sMc1Uvy6INGLTeTi-1" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.173;exitY=0.992;exitDx=0;exitDy=0;exitPerimeter=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="D6Gzr2-08hJ62fW1Y4SW-31" target="RKRk78QnPbcHQFYOCmT4-4"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="512" y="320" as="sourcePoint" /> + <mxPoint x="560" y="580" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> </mxCell> - <mxCell id="phJliGzTQF7XW9zZiR-q-7" value="$$\text{stateRoot}^{\text{new}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="1040" y="80" width="80" height="40" as="geometry" /> + <mxCell id="KAu6sMc1Uvy6INGLTeTi-2" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" target="xZoSSO8U0oyJhFnYmJBx-9"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="596.5" y="300" as="sourcePoint" /> + <mxPoint x="596.5" y="550" as="targetPoint" /> + </mxGeometry> </mxCell> - <mxCell id="phJliGzTQF7XW9zZiR-q-27" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="ZdTqr67gGV_Two7x-mBu-1" source="phJliGzTQF7XW9zZiR-q-8" target="phJliGzTQF7XW9zZiR-q-10" edge="1"> + <mxCell id="KAu6sMc1Uvy6INGLTeTi-4" value="" 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;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" target="xZoSSO8U0oyJhFnYmJBx-7"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="880" y="215" as="targetPoint" /> + <mxPoint x="870" y="300" as="sourcePoint" /> + <mxPoint x="870" y="550" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="phJliGzTQF7XW9zZiR-q-8" value="merkleTree<br>parameters<br>witness" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="840" y="30" width="80" height="90" as="geometry" /> + <mxCell id="KAu6sMc1Uvy6INGLTeTi-5" value="" 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;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" target="xZoSSO8U0oyJhFnYmJBx-13"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="979.5" y="250" as="sourcePoint" /> + <mxPoint x="979.5" y="500" as="targetPoint" /> + </mxGeometry> </mxCell> - <mxCell id="phJliGzTQF7XW9zZiR-q-9" value="merkleTree<br>state transition proofs" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="940" y="30" width="80" height="90" as="geometry" /> + <mxCell id="KAu6sMc1Uvy6INGLTeTi-6" value="" 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;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" target="xZoSSO8U0oyJhFnYmJBx-17"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1109" y="250" as="sourcePoint" /> + <mxPoint x="1109" y="500" as="targetPoint" /> + </mxGeometry> </mxCell> - <mxCell id="phJliGzTQF7XW9zZiR-q-10" value="$$MerkleTreeProcessor()$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="640" y="320" width="480" height="40" as="geometry" /> + <mxCell id="KAu6sMc1Uvy6INGLTeTi-7" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" target="xZoSSO8U0oyJhFnYmJBx-11"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1219.5" y="300" as="sourcePoint" /> + <mxPoint x="1219.5" y="550" as="targetPoint" /> + </mxGeometry> </mxCell> - <mxCell id="phJliGzTQF7XW9zZiR-q-12" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;startArrow=oval;startFill=1;" parent="ZdTqr67gGV_Two7x-mBu-1" edge="1"> + <mxCell id="KAu6sMc1Uvy6INGLTeTi-11" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="560" y="220" as="sourcePoint" /> - <mxPoint x="560" y="320" as="targetPoint" /> + <mxPoint x="779.29" y="440" as="sourcePoint" /> + <mxPoint x="779" y="610" as="targetPoint" /> <Array as="points"> - <mxPoint x="560" y="230" /> - <mxPoint x="560" y="230" /> + <mxPoint x="779" y="520" /> + <mxPoint x="779" y="520" /> </Array> </mxGeometry> </mxCell> - <mxCell id="phJliGzTQF7XW9zZiR-q-14" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;startArrow=oval;startFill=1;" parent="ZdTqr67gGV_Two7x-mBu-1" edge="1"> + <mxCell id="KAu6sMc1Uvy6INGLTeTi-12" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="360" y="140" as="sourcePoint" /> - <mxPoint x="240" y="160" as="targetPoint" /> + <mxPoint x="979.41" y="350" as="sourcePoint" /> + <mxPoint x="980" y="610" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-31" value="<div><div><div><div><div><div><div><div><div><div>$$\text{stateRoot}^{\text{old}} = \text{stateRoot}^{\text{new}}$$</div><div><br></div></div></div></div>$$\text{numVotes}^{\text{old}} = \text{numVotes}^{\text{new}}$$</div></div></div>$$\text{numOverwrites}^{\text{old}} = \text{numOverwrites}^{\text{new}}$$</div><div><br></div><div><div><div><div><div><div><div>$$\text{resultsAdd}^{\text{old}} = \text{resultsAdd}^{\text{new}}$$</div></div></div>$$\text{resultsSub}^{\text{old}} = \text{resultsSub}^{\text{new}}$$</div></div></div></div></div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="1270" y="490" width="240" height="230" as="geometry" /> + </mxCell> + <mxCell id="D6Gzr2-08hJ62fW1Y4SW-31" value="<div><u><b>VERIFY INITIAL STATE</b><b><br><br></b></u></div><div><b><br></b></div><div align="left"><b>1.</b> Verify the MTProofs that prove that the first leafs of the tree store the public parameters of the voting process:<br><br>&nbsp;&nbsp; 0x0 = <b>processID</b>, 0x1 = <b>censusRoot</b>, 0x2 = <b>ballotMode</b>, 0x3 = <b>EPK</b>, 0x4 = <b>resultsAdd^{old}</b>, 0x5 = <b>resultsAdd^{sub}</b>. <br><br></div><div align="left"><b>2.</b> Verify the MTProofs that prove that none of the <b>voteIDs</b> belong to the tree.<br><b><br>3.</b> Verify the MTProofs of each <b>address</b>:<br><br>&nbsp;&nbsp; - If it is an inclusion proof: consider the vote <b>(c1, c2)</b> an <b>overwrite</b>.</div><div align="left">&nbsp;&nbsp; - If it is a non-inclusion proof: consider the vote <b>(c1, c2)</b> a <b>newVote</b>.</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="360" y="80" width="880" height="220" as="geometry" /> + </mxCell> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-7" value="$$\text{address}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#f8cecc;strokeColor=#b85450;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="830" y="410" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-8" value="$$\text{voteID}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="740" y="410" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-9" value="$$(C_1, C_2)_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="557" y="410" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="RKRk78QnPbcHQFYOCmT4-4" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry x="472" y="410" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="c3b2KowYPhYfo68HtMrI-6" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="869.9499999999999" y="450" as="sourcePoint" /> + <mxPoint x="870" y="610" as="targetPoint" /> <Array as="points"> - <mxPoint x="240" y="140" /> - <mxPoint x="240" y="160" /> + <mxPoint x="869.66" y="530" /> + <mxPoint x="869.66" y="530" /> </Array> </mxGeometry> </mxCell> - <mxCell id="phJliGzTQF7XW9zZiR-q-22" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;startArrow=oval;startFill=1;jumpStyle=arc;" parent="ZdTqr67gGV_Two7x-mBu-1" edge="1"> + <mxCell id="c3b2KowYPhYfo68HtMrI-9" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="I46Z3Tsccw4bTtzRbnAU-20"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="480" y="120" as="sourcePoint" /> - <mxPoint x="200" y="160" as="targetPoint" /> + <mxPoint x="550" y="520" as="sourcePoint" /> + <mxPoint x="550" y="570" as="targetPoint" /> <Array as="points"> - <mxPoint x="320" y="120" /> - <mxPoint x="200" y="120" /> + <mxPoint x="549.71" y="550" /> + <mxPoint x="549.71" y="550" /> </Array> </mxGeometry> </mxCell> - <mxCell id="phJliGzTQF7XW9zZiR-q-23" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;startArrow=none;startFill=0;" parent="ZdTqr67gGV_Two7x-mBu-1" target="phJliGzTQF7XW9zZiR-q-10" edge="1"> + <mxCell id="c3b2KowYPhYfo68HtMrI-10" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1109.41" y="350" as="sourcePoint" /> + <mxPoint x="1110" y="610" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="c3b2KowYPhYfo68HtMrI-11" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="480" y="80" as="sourcePoint" /> - <mxPoint x="480" y="180" as="targetPoint" /> + <mxPoint x="1219.4099999999999" y="450" as="sourcePoint" /> + <mxPoint x="1219" y="610" as="targetPoint" /> <Array as="points"> - <mxPoint x="480" y="160" /> - <mxPoint x="720" y="160" /> + <mxPoint x="1219.12" y="530" /> + <mxPoint x="1219.12" y="530" /> </Array> </mxGeometry> </mxCell> - <mxCell id="phJliGzTQF7XW9zZiR-q-28" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="ZdTqr67gGV_Two7x-mBu-1" edge="1"> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-13" value="<div><div>$$\text{numOverwrites}^{\text{old}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="920" y="360" width="120" height="40" as="geometry" /> + </mxCell> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-17" value="<div><div>$$\text{resultsAdd}^{\text{old}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="1050" y="360" width="120" height="40" as="geometry" /> + </mxCell> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-11" value="$$\text{stateRoot}^{\text{old}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="1180" y="410" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-12" value="<div><div>$$\text{numVotes}^{\text{old}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="920" y="410" width="120" height="40" as="geometry" /> + </mxCell> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-18" value="<div><div>$$\text{resultsSub}^{\text{old}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="1050" y="410" width="120" height="40" as="geometry" /> + </mxCell> + <mxCell id="c3b2KowYPhYfo68HtMrI-13" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="979.75" y="120" as="sourcePoint" /> - <mxPoint x="979.75" y="320" as="targetPoint" /> + <mxPoint x="550" y="520" as="sourcePoint" /> + <mxPoint x="550" y="610" as="targetPoint" /> + <Array as="points" /> </mxGeometry> </mxCell> - <mxCell id="phJliGzTQF7XW9zZiR-q-29" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="ZdTqr67gGV_Two7x-mBu-1" edge="1"> + <mxCell id="I46Z3Tsccw4bTtzRbnAU-20" value="$$(C_1', C_2')_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry x="510" y="543" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-5" value="$$\mathsf{ReEnc}_{EPK}(C_1, C_2)_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="470" y="490" width="170" height="40" as="geometry" /> + </mxCell> + <mxCell id="c3b2KowYPhYfo68HtMrI-15" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="1079.75" y="120" as="sourcePoint" /> - <mxPoint x="1079.75" y="320" as="targetPoint" /> + <mxPoint x="539.41" y="720" as="sourcePoint" /> + <mxPoint x="539.41" y="810" as="targetPoint" /> + <Array as="points" /> </mxGeometry> </mxCell> - <mxCell id="xnlEkFcDW3wDAF-mUqor-0" value="true" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="20" y="360" width="80" height="40" as="geometry" /> + <mxCell id="c3b2KowYPhYfo68HtMrI-16" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="679.6" y="720" as="sourcePoint" /> + <mxPoint x="679.6" y="810" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> </mxCell> - <mxCell id="IpKGK8iQcOz9ALTK2j-a-0" value="$$ReEnc()$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="890" y="200" width="80" height="40" as="geometry" /> + <mxCell id="c3b2KowYPhYfo68HtMrI-17" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="820" y="720" as="sourcePoint" /> + <mxPoint x="820" y="810" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> </mxCell> - <mxCell id="IpKGK8iQcOz9ALTK2j-a-1" value="Old votes also need to be reencrypted! (at least, some)" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> - <mxGeometry x="710" y="250" width="400" height="20" as="geometry" /> + <mxCell id="c3b2KowYPhYfo68HtMrI-12" value="" style="group" vertex="1" connectable="0" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry x="360" y="610" width="880" height="160" as="geometry" /> </mxCell> - </root> - </mxGraphModel> - </diagram> - <diagram name="Copy of Copy of 4. state-transition-circuit" id="PK6FMuq_bwtaiANtLuxe"> - <mxGraphModel dx="2675" dy="1635" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> - <root> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-0" /> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-1" parent="D6Gzr2-08hJ62fW1Y4SW-0" /> - <mxCell id="OkW-e4A8a0NEPaUt7MZw-0" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry x="-320" y="-420" width="2000" height="1710" as="geometry" /> + <mxCell id="c3b2KowYPhYfo68HtMrI-18" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="c3b2KowYPhYfo68HtMrI-12"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="600" y="110" as="sourcePoint" /> + <mxPoint x="600" y="200" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> + </mxCell> + <mxCell id="c3b2KowYPhYfo68HtMrI-19" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="c3b2KowYPhYfo68HtMrI-12"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="720" y="110" as="sourcePoint" /> + <mxPoint x="720" y="200" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> + </mxCell> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-3" value="<div align="center"><b><u>APPLY STATE TRANSITIONS<br><br></u></b></div><div align="left"><b><br></b></div><div align="left"><b>&nbsp;&nbsp;&nbsp; </b>If the vote is a <b>newVote: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </b>If the vote is an <b>overwrite</b>:<b> <br></b></div><div align="left"><br></div><div align="left">&nbsp; &nbsp; <b>1.</b> Include <b>address</b>, <b>voteID</b>, and <b>(C1', C2')</b>.&nbsp;&nbsp; <span style="white-space: pre;">	</span><b>&nbsp;&nbsp;&nbsp; 1.</b> Update vote associated to <b>address</b> to<b> (C1', C2')</b> and include <b>voteID</b>.</div><div align="left">&nbsp; &nbsp; <b>2.</b> Update <b>numVotes</b>.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>2.</b> Update <b>numVotes</b> and <b>numOverwrites</b>.<div align="left">&nbsp; &nbsp; <b>3.</b> Update <b>resultsAdd</b>.&nbsp; &nbsp; <span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span>&nbsp;&nbsp;&nbsp; <b>3.</b> Update <b>resultsAdd</b> and <b>resultsSub</b>.<br>&nbsp;&nbsp;&nbsp; <b>4.</b> Update <b>stateRoot</b>.<span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span>&nbsp;&nbsp;&nbsp; <b>4.</b> Update <b>stateRoot</b>.</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=left;" parent="c3b2KowYPhYfo68HtMrI-12" vertex="1"> + <mxGeometry width="880" height="160" as="geometry" /> </mxCell> - <mxCell id="0c9yVQNtpXtt_NukVZet-10" value="" style="rounded=0;whiteSpace=wrap;html=1;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="320" y="-310" width="380" height="230" as="geometry" /> + <mxCell id="c3b2KowYPhYfo68HtMrI-3" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;strokeColor=#9673a6;fontFamily=Courier New;align=left;" vertex="1" parent="c3b2KowYPhYfo68HtMrI-12"> + <mxGeometry x="10" y="50" width="350" height="100" as="geometry" /> </mxCell> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-3" value="$$\text{voteID}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="480" y="-190" width="80" height="40" as="geometry" /> + <mxCell id="c3b2KowYPhYfo68HtMrI-4" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;strokeColor=#9673a6;fontFamily=Courier New;align=left;" vertex="1" parent="c3b2KowYPhYfo68HtMrI-12"> + <mxGeometry x="375" y="50" width="495" height="100" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-1" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="D6Gzr2-08hJ62fW1Y4SW-10" target="yhMjlz7L6oX0I03LSNM_-0" edge="1"> + <mxCell id="EZ67WfkGteQ7pZBN_wck-6" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;endArrow=none;startFill=0;endFill=1;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="I46Z3Tsccw4bTtzRbnAU-3"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="640" y="-30" as="targetPoint" /> + <mxPoint x="-430" y="604.47" as="sourcePoint" /> + <mxPoint x="200" y="510" as="targetPoint" /> + <Array as="points"> + <mxPoint x="400" y="570" /> + <mxPoint x="200" y="570" /> + <mxPoint x="200" y="510" /> + </Array> </mxGeometry> </mxCell> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-10" value="$$pk_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="600" y="-140" width="80" height="40" as="geometry" /> + <mxCell id="EZ67WfkGteQ7pZBN_wck-5" value="<div><div><div><div><div><div><div><div><div><div>$$k = \text{Hash}(k)$$</div></div></div></div></div></div></div></div><div><div><div></div></div></div></div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry x="230" y="550" width="100" height="40" as="geometry" /> </mxCell> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-21" value="$$ReEnc()$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="320" y="850" width="80" height="40" as="geometry" /> + <mxCell id="EZ67WfkGteQ7pZBN_wck-8" value="$$\text{Iterate over } i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;align=center;spacingBottom=-4;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry x="290" y="340" width="130" height="53" as="geometry" /> </mxCell> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-26" value="$$\text{stateRoot}^{\text{old}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="1160" y="-120" width="80" height="40" as="geometry" /> + <mxCell id="EZ67WfkGteQ7pZBN_wck-10" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="EZ67WfkGteQ7pZBN_wck-8" target="EZ67WfkGteQ7pZBN_wck-8"> + <mxGeometry relative="1" as="geometry" /> </mxCell> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-31" value="<div><b>INITIAL STATE VERIFICATION</b></div><div><b><br></b></div><div><b>1.</b> Verify MT proofs that public parameters are in leafs 1, 2, etc.</div><div><b>2.</b> Verify that none of the voteIDs are not part of the tree.<br><b>3.</b> For each of the (c1, c2) and pks, verify their MTproofs.<br><i>If it is a non-inclusion proof, the vote is considered a newVote, if the address is already in the tree, it is considered overwrite.</i></div><div><b>4.</b> Verify that newVoteOverwirtec, etc. are also all part of the tree in leafs... (+ root is the current root).</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="360" y="120" width="880" height="120" as="geometry" /> + <mxCell id="EZ67WfkGteQ7pZBN_wck-19" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1079.38" y="850" as="sourcePoint" /> + <mxPoint x="1079.38" y="960" as="targetPoint" /> + </mxGeometry> </mxCell> - <mxCell id="cint6MjWe4dI7ch5Elqv-3" value="For some leafs, reencrypt the votes." style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="440" y="850" width="720" height="40" as="geometry" /> + <mxCell id="EZ67WfkGteQ7pZBN_wck-20" value="<div><div>$$\text{numVotes}^{\text{new}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry x="620" y="960" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-2" value="<div>$$\text{MTProofs}_i$$</div><div>(inclusion or non-inclusion)</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="720" y="-200" width="80" height="120" as="geometry" /> + <mxCell id="EZ67WfkGteQ7pZBN_wck-21" value="<div><div>$$\text{numOverwrites}^{\text{new}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry x="480" y="960" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-3" value="<div align="center"><b>NEW VOTES</b></div><div align="left"><br></div><div align="left">&nbsp; &nbsp; &nbsp;1. Reencrypt (C1, C2) = (C1', C2')<br>&nbsp; &nbsp; &nbsp;2. Include address, voteID and (C1', C2')</div><div align="left">&nbsp; &nbsp; &nbsp;3. Update numNewVotes</div><div align="left">&nbsp; &nbsp; &nbsp;4. Update newResultsAdd</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=left;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="440" y="560" width="320" height="120" as="geometry" /> + <mxCell id="EZ67WfkGteQ7pZBN_wck-22" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="760" y="-130" as="sourcePoint" /> + <mxPoint x="760" y="80" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-4" value="<div align="center"><b>OVERWRITES<br><br></b></div><div align="left">&nbsp; &nbsp; &nbsp;1. Reencrypt (C1, C2) = (C1', C2')<br>&nbsp; &nbsp; &nbsp;2. Update vote associated to address to<br>&nbsp; &nbsp; &nbsp; &nbsp; (C1', C2') and include voteID.</div><div align="left">&nbsp; &nbsp; &nbsp;3. Update numNewOverwrites</div><div align="left">&nbsp; &nbsp; &nbsp;4. Update newResultsAdd and newResultsSub</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="840" y="560" width="320" height="120" as="geometry" /> + <mxCell id="xZoSSO8U0oyJhFnYmJBx-2" value="<div>$$\text{MTProofs}_i$$</div><div>(inclusion or non-inclusion)</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxGeometry x="720" y="-200" width="80" height="120" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-5" value="Those votes that are newVotes<br>(address is not part of the MT)" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="440" y="440" width="320" height="50" as="geometry" /> + <mxCell id="GPVaXYSz-EfsHx1UZKMQ-0" value="<div align="left"><b>&nbsp;&nbsp; MISSING</b></div><div align="left"><b><br></b></div><div align="left">&nbsp;&nbsp; <b>1.</b> For <i>some</i> existing leafs, also reencrypt the votes.</div><div align="left">&nbsp;&nbsp; <b>2.</b> Data blobs.</div><div align="left">&nbsp;&nbsp; <b>3.</b> Add some details, like specifics of resultsAdd.</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#647687;strokeColor=#314354;fontFamily=Courier New;align=left;fontColor=#ffffff;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry x="1200" y="-320" width="380" height="150" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-6" value="Those votes that are overwrites<br>(address is not part of the MT)" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="840" y="440" width="320" height="50" as="geometry" /> + <mxCell id="3ep81gfC2W1f0rtrtprN-0" value="AGGREGATION VERIFICATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry x="-200" y="1117.18" width="440" height="40" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-7" value="$$\text{address}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="700" y="360" width="80" height="40" as="geometry" /> + <mxCell id="3ep81gfC2W1f0rtrtprN-1" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry x="12.17999999999995" y="880" width="20" height="435" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-8" value="$$\text{voteID}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="600" y="310" width="80" height="40" as="geometry" /> + <mxCell id="3ep81gfC2W1f0rtrtprN-2" value="TRANSITION VERIFICATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=11;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry x="280" y="1117.18" width="1120" height="40" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-9" value="$$(C_1, C_2)_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="600" y="360" width="80" height="40" as="geometry" /> + <mxCell id="3ep81gfC2W1f0rtrtprN-3" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> + <mxGeometry x="832.5" y="537.5" width="20" height="1120" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-11" value="$$\text{stateRoot}^{\text{old}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="1080" y="360" width="80" height="40" as="geometry" /> + </root> + </mxGraphModel> + </diagram> + <diagram name="Copy of 4. state-transition-circuit" id="vOdGFxvcKQLxlt7TpMJr"> + <mxGraphModel dx="4453" dy="2198" 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="bshJnAdmZ42-ucYETjzj-0" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-1" parent="bshJnAdmZ42-ucYETjzj-0" /> + <mxCell id="w6cd1Epp7pFjK3pMSPcm-0" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="-380" y="-300" width="1990" height="1330" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-12" value="<div>$$\text{numNewVotes}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="800" y="360" width="120" height="40" as="geometry" /> + <mxCell id="w6cd1Epp7pFjK3pMSPcm-1" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="-240" y="-10" width="1800" height="925" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-13" value="<div>$$\text{numNewOverwrites}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="800" y="310" width="120" height="40" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-4" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fontStyle=1;dashed=1;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="280" y="380" width="1040" height="500" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-14" value="<font style="font-size: 14px;">OUTPUTS</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;fontColor=#333333;fontStyle=1" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="320" y="310" width="120" height="90" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-5" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fontStyle=1;dashed=1;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="290" y="480" width="160" height="60" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-17" value="<div>$$\text{newResultsAdd}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="930" y="310" width="120" height="40" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-6" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fontStyle=1;dashed=1;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="915" y="394" width="355" height="113" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-18" value="<div>$$\text{newResultsSub}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="930" y="360" width="120" height="40" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-7" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="320" y="-260" width="380" height="230" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-22" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="cint6MjWe4dI7ch5Elqv-3" target="cint6MjWe4dI7ch5Elqv-3" edge="1"> - <mxGeometry relative="1" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-8" value="$$\text{voteID}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="480" y="-140" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-30" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="xZoSSO8U0oyJhFnYmJBx-23" edge="1"> + <mxCell id="bshJnAdmZ42-ucYETjzj-9" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-10" target="bshJnAdmZ42-ucYETjzj-30"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="1200" y="360" as="targetPoint" /> - <Array as="points"> - <mxPoint x="1280" y="790" /> - <mxPoint x="1280" y="360" /> - </Array> + <mxPoint x="640" y="20" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-23" value="$$\text{stateRoot}^{\text{new}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="900" y="770" width="80" height="40" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-10" value="$$pk_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="600" y="-90" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-24" value="<div>$$\text{numNewVotes}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="620" y="770" width="120" height="40" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-11" value="$$\text{stateRoot}^{\text{old}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="1160" y="-70" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-25" value="<div>$$\text{numNewOverwrites}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="620" y="720" width="120" height="40" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-12" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" target="bshJnAdmZ42-ucYETjzj-65"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="779.67" y="230" as="sourcePoint" /> + <mxPoint x="779.67" y="620" as="targetPoint" /> + </mxGeometry> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-26" value="<div>$$\text{newResultsAdd}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="750" y="720" width="120" height="40" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-13" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-66" target="bshJnAdmZ42-ucYETjzj-79"> + <mxGeometry relative="1" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-27" value="<div>$$\text{newResultsSub}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="750" y="770" width="120" height="40" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-14" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="505" y="1200" as="sourcePoint" /> + <mxPoint x="505" y="1200" as="targetPoint" /> + </mxGeometry> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-31" value="<div>$$\text{newResultsAdd}^{old} = \text{newResults}^{new}$$<br><br>ETC. PER TOTES LES 5 VARIABLES</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="1320" y="480" width="240" height="200" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-15" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.513;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-20" target="bshJnAdmZ42-ucYETjzj-6"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1280" y="405" as="targetPoint" /> + <Array as="points"> + <mxPoint x="1390" y="830" /> + <mxPoint x="1390" y="451" /> + </Array> + </mxGeometry> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-32" value="<div>Caixa amb línies discontínues i escriure <i>for every i</i></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="1320" y="320" width="240" height="80" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-16" value="$$\text{stateRoot}^{\text{new}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="1040" y="810" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-34" value="$$\text{stateRoot}^{\text{new}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="910" y="1010" width="80" height="40" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-17" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-18"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="680" y="960" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-18" value="<div><div>$$\text{numVotes}^{\text{new}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="620" y="810" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-35" value="<div>$$\text{numNewVotes}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="630" y="1010" width="120" height="40" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-19" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-20"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="540" y="960" as="targetPoint" /> + </mxGeometry> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-36" value="<div>$$\text{numNewOverwrites}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="630" y="960" width="120" height="40" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-20" value="<div><div>$$\text{numOverwrites}^{\text{new}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="480" y="810" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-37" value="<div>$$\text{newResultsAdd}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="760" y="960" width="120" height="40" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-21" value="<div><div>$$\text{resultsAdd}^{\text{new}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="900" y="810" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-38" value="<div>$$\text{newResultsSub}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="760" y="1010" width="120" height="40" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-22" value="<div><div>$$\text{resultsSub}^{\text{new}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="760" y="810" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-39" value="Posar NEW i això seran<br>els outputs finals!" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="1300" y="990" width="240" height="60" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-23" value="$$\text{stateRoot}^{\text{new}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="1040" y="960" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="0c9yVQNtpXtt_NukVZet-3" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="kZ82RYXQcsU66MAzuXJf-0" target="kZ82RYXQcsU66MAzuXJf-1" edge="1"> + <mxCell id="bshJnAdmZ42-ucYETjzj-24" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-25" target="bshJnAdmZ42-ucYETjzj-26"> <mxGeometry relative="1" as="geometry"> <mxPoint x="-145" y="-10" as="targetPoint" /> </mxGeometry> </mxCell> - <mxCell id="kZ82RYXQcsU66MAzuXJf-0" value="<div style="font-size: 11px;">$$\text{aggregationProof}_i$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="-165" y="-120" width="130" height="40" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-25" value="<div style="font-size: 11px;">$$\text{aggregationProof}_i$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="-165" y="-70" width="130" height="40" as="geometry" /> </mxCell> - <mxCell id="kZ82RYXQcsU66MAzuXJf-1" value="recursive SNARK batch verifier" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="-210" y="120" width="440" height="120" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-26" value="recursive SNARK batch verifier" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="-210" y="130" width="440" height="220" as="geometry" /> </mxCell> - <mxCell id="0c9yVQNtpXtt_NukVZet-4" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="D6Gzr2-08hJ62fW1Y4SW-3" edge="1"> + <mxCell id="bshJnAdmZ42-ucYETjzj-27" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-8"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="520.09" y="-60" as="sourcePoint" /> - <mxPoint x="520" y="120" as="targetPoint" /> + <mxPoint x="520.09" y="-10" as="sourcePoint" /> + <mxPoint x="520" y="130" as="targetPoint" /> <Array as="points" /> </mxGeometry> </mxCell> - <mxCell id="0c9yVQNtpXtt_NukVZet-1" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.75;entryY=0;entryDx=0;entryDy=0;startArrow=oval;startFill=1;jumpStyle=arc;" parent="D6Gzr2-08hJ62fW1Y4SW-1" target="kZ82RYXQcsU66MAzuXJf-1" edge="1"> + <mxCell id="bshJnAdmZ42-ucYETjzj-28" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.75;entryY=0;entryDx=0;entryDy=0;startArrow=oval;startFill=1;jumpStyle=arc;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" target="bshJnAdmZ42-ucYETjzj-26"> <mxGeometry width="50" height="50" relative="1" as="geometry"> <mxPoint x="320" y="-120" as="sourcePoint" /> <mxPoint x="570" y="-110" as="targetPoint" />@@ -827,110 +1075,536 @@ <mxPoint x="120" />
</Array> </mxGeometry> </mxCell> - <mxCell id="0c9yVQNtpXtt_NukVZet-7" value="All leafs of the tree are at the end made public?" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="440" y="1160" width="720" height="40" as="geometry" /> - </mxCell> - <mxCell id="yhMjlz7L6oX0I03LSNM_-1" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="yhMjlz7L6oX0I03LSNM_-0" edge="1"> + <mxCell id="bshJnAdmZ42-ucYETjzj-29" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.318;entryY=0.003;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="kXBYuY-UTKVdfyJdre-C-0" target="bshJnAdmZ42-ucYETjzj-63"> <mxGeometry relative="1" as="geometry"> <mxPoint x="640.0222222222224" y="29.88000000000011" as="sourcePoint" /> - <mxPoint x="640" y="120" as="targetPoint" /> - <Array as="points" /> + <mxPoint x="640" y="80" as="targetPoint" /> + <Array as="points"> + <mxPoint x="640" y="40" /> + <mxPoint x="640" y="40" /> + </Array> </mxGeometry> </mxCell> - <mxCell id="yhMjlz7L6oX0I03LSNM_-0" value="$$\text{Hash}(pk_i)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="600" y="-40" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="D1O2pzwOY9OCH-spyj_d-0" value="$$\text{address}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=default;strokeColor=none;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="610" y="20" width="60" height="39.88" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-30" value="$$\text{Hash}(pk_i)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="600" y="10" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="yhMjlz7L6oX0I03LSNM_-5" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="758.95" y="-80" as="sourcePoint" /> - <mxPoint x="759" y="120" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> + <mxCell id="bshJnAdmZ42-ucYETjzj-31" value="$$\text{address}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=default;strokeColor=none;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="1090" y="270" width="60" height="39.88" as="geometry" /> </mxCell> - <mxCell id="yhMjlz7L6oX0I03LSNM_-6" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="D6Gzr2-08hJ62fW1Y4SW-24" edge="1"> + <mxCell id="bshJnAdmZ42-ucYETjzj-32" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-45"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="898.95" y="-80" as="sourcePoint" /> - <mxPoint x="900" y="120" as="targetPoint" /> + <mxPoint x="898.95" y="-30" as="sourcePoint" /> + <mxPoint x="900" y="130" as="targetPoint" /> <Array as="points" /> </mxGeometry> </mxCell> - <mxCell id="yhMjlz7L6oX0I03LSNM_-7" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="xZoSSO8U0oyJhFnYmJBx-20" edge="1"> + <mxCell id="bshJnAdmZ42-ucYETjzj-33" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-46"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="1059.47" y="-80" as="sourcePoint" /> - <mxPoint x="1059" y="120" as="targetPoint" /> + <mxPoint x="1059.47" y="-30" as="sourcePoint" /> + <mxPoint x="1060" y="130" as="targetPoint" /> <Array as="points" /> </mxGeometry> </mxCell> - <mxCell id="yhMjlz7L6oX0I03LSNM_-8" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" edge="1"> + <mxCell id="bshJnAdmZ42-ucYETjzj-34" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="1199.47" y="-80" as="sourcePoint" /> - <mxPoint x="1199" y="120" as="targetPoint" /> + <mxPoint x="1199.47" y="-30" as="sourcePoint" /> + <mxPoint x="1199" y="130" as="targetPoint" /> <Array as="points" /> </mxGeometry> </mxCell> - <mxCell id="0c9yVQNtpXtt_NukVZet-11" value="public inputs" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxCell id="bshJnAdmZ42-ucYETjzj-35" value="public inputs" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> <mxGeometry x="160" y="-140" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="jH9XEzTzumLLzgrA1KFi-0" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="kZ82RYXQcsU66MAzuXJf-1" target="jH9XEzTzumLLzgrA1KFi-1" edge="1"> + <mxCell id="bshJnAdmZ42-ucYETjzj-36" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-26" target="bshJnAdmZ42-ucYETjzj-37"> <mxGeometry relative="1" as="geometry"> <mxPoint y="310" as="targetPoint" /> <mxPoint y="240" as="sourcePoint" /> </mxGeometry> </mxCell> - <mxCell id="jH9XEzTzumLLzgrA1KFi-1" value="true" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="-30" y="1000" width="80" height="40" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-37" value="true" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="-30" y="960" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="0c9yVQNtpXtt_NukVZet-8" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="D6Gzr2-08hJ62fW1Y4SW-4" edge="1"> + <mxCell id="bshJnAdmZ42-ucYETjzj-38" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-39"> <mxGeometry relative="1" as="geometry"> - <mxPoint x="400" y="-80" as="sourcePoint" /> - <mxPoint x="400" y="120" as="targetPoint" /> + <mxPoint x="400" y="-30" as="sourcePoint" /> + <mxPoint x="400" y="130" as="targetPoint" /> <Array as="points" /> </mxGeometry> </mxCell> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-4" value="$$\text{censusRoot}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="360" y="-290" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-5" value="<div>$$\text{ballotMode}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxCell id="bshJnAdmZ42-ucYETjzj-39" value="$$\text{censusRoot}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> <mxGeometry x="360" y="-240" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-6" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxCell id="bshJnAdmZ42-ucYETjzj-40" value="<div>$$\text{ballotMode}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> <mxGeometry x="360" y="-190" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-9" value="<div>$$\text{processID}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxCell id="bshJnAdmZ42-ucYETjzj-41" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> <mxGeometry x="360" y="-140" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-8" value="$$(C_1, C_2)_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="480" y="-140" width="80" height="40" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-42" value="<div>$$\text{processID}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="360" y="-90" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-23" value="<div>$$\text{numNewVotes}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="840" y="-120" width="120" height="40" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-43" value="$$(C_1, C_2)_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="480" y="-90" width="80" height="40" as="geometry" /> </mxCell> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-24" value="<div>$$\text{numNewOverwrites}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="840" y="-170" width="120" height="40" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-44" value="<div>$$\text{numVotes}^{\text{old}}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="840" y="-70" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-20" value="<div>$$\text{newResultsAdd}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="1000" y="-170" width="120" height="40" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-45" value="<div>$$\text{numOverwrites}^{\text{old}}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="840" y="-120" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-21" value="<div>$$\text{newResultsSub}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> + <mxCell id="bshJnAdmZ42-ucYETjzj-46" value="<div>$$\text{resultsAdd}^{\text{old}}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> <mxGeometry x="1000" y="-120" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="aSzBlrVS5-gQ2GT8Me-F-0" value="$$AddBN254()$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="960" y="720" width="80" height="40" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-47" value="<div>$$\text{resultsSub}^{\text{old}}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="1000" y="-70" width="120" height="40" as="geometry" /> </mxCell> - <mxCell id="NTlY1420kHvwssuNSfi3-0" value="CAL LA PK PER A REENCRIPTAR" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="120" y="830" width="160" height="80" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-48" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-67" target="bshJnAdmZ42-ucYETjzj-79"> + <mxGeometry relative="1" as="geometry" /> </mxCell> - <mxCell id="vYktKLvkopS5NTYujC_s-1" value="TAMBÉ BLINDER <i>k</i>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry x="120" y="920" width="160" height="40" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-49" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;jumpStyle=arc;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-50" target="bshJnAdmZ42-ucYETjzj-52"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="320" y="730" as="targetPoint" /> + </mxGeometry> </mxCell> - <mxCell id="vYktKLvkopS5NTYujC_s-2" value="RATIO / PERCENTATGE DE REENCRYPTIONS?" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry x="120" y="660" width="160" height="140" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-50" value="$$k$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="-350" y="490" width="60" height="40" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-51" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-52" target="bshJnAdmZ42-ucYETjzj-79"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="440" y="730" as="sourcePoint" /> + </mxGeometry> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-52" value="$$\text{Hash}(k)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="360" y="490" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-53" value="" style="text;whiteSpace=wrap;html=1;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="880" y="1020" width="60" height="50" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-54" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.173;exitY=0.992;exitDx=0;exitDy=0;exitPerimeter=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-63" target="bshJnAdmZ42-ucYETjzj-67"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="512" y="320" as="sourcePoint" /> + <mxPoint x="560" y="580" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> </mxCell> - <mxCell id="-tYBgsssYuGcHSFQUePz-4" value="ON VAN ELS BLOBS?" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fontStyle=1" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry x="120" y="1100" width="160" height="140" as="geometry" /> + <mxCell id="bshJnAdmZ42-ucYETjzj-55" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" target="bshJnAdmZ42-ucYETjzj-66"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="596.5" y="300" as="sourcePoint" /> + <mxPoint x="596.5" y="550" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-56" value="" 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;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" target="bshJnAdmZ42-ucYETjzj-64"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="870" y="300" as="sourcePoint" /> + <mxPoint x="870" y="550" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-57" value="" 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;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" target="bshJnAdmZ42-ucYETjzj-72"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="979.5" y="250" as="sourcePoint" /> + <mxPoint x="979.5" y="500" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-58" value="" 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;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" target="bshJnAdmZ42-ucYETjzj-73"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1109" y="250" as="sourcePoint" /> + <mxPoint x="1109" y="500" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-59" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" target="bshJnAdmZ42-ucYETjzj-74"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1219.5" y="300" as="sourcePoint" /> + <mxPoint x="1219.5" y="550" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-60" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="779.29" y="440" as="sourcePoint" /> + <mxPoint x="779" y="610" as="targetPoint" /> + <Array as="points"> + <mxPoint x="779" y="520" /> + <mxPoint x="779" y="520" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-61" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-75"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="979.41" y="350" as="sourcePoint" /> + <mxPoint x="980" y="610" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-62" value="<div><div><div><div><div><div><div><div><div><div>$$\text{stateRoot}^{\text{old}} = \text{stateRoot}^{\text{new}}$$</div><div><br></div></div></div></div>$$\text{numVotes}^{\text{old}} = \text{numVotes}^{\text{new}}$$</div></div></div>$$\text{numOverwrites}^{\text{old}} = \text{numOverwrites}^{\text{new}}$$</div><div><br></div><div><div><div><div><div><div><div>$$\text{resultsAdd}^{\text{old}} = \text{resultsAdd}^{\text{new}}$$</div></div></div>$$\text{resultsSub}^{\text{old}} = \text{resultsSub}^{\text{new}}$$</div></div></div></div></div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="1270" y="490" width="240" height="230" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-63" value="<div><u><b>VERIFY INITIAL STATE</b><b><br><br></b></u></div><div><b><br></b></div><div align="left"><b>1.</b> Verify the MTProofs that prove that the first leafs of the tree store the public parameters of the voting process:<br><br>&nbsp;&nbsp; 0x0 = <b>processID</b>, 0x1 = <b>censusRoot</b>, 0x2 = <b>ballotMode</b>, 0x3 = <b>EPK</b>, 0x4 = <b>resultsAdd^{old}</b>, 0x5 = <b>resultsAdd^{sub}</b>. <br><br></div><div align="left"><b>2.</b> Verify the MTProofs that prove that none of the <b>voteIDs</b> belong to the tree.<br><b><br>3.</b> Verify the MTProofs of each <b>address</b>:<br><br>&nbsp;&nbsp; - If it is an inclusion proof: consider the vote <b>(c1, c2)</b> an <b>overwrite</b>.</div><div align="left">&nbsp;&nbsp; - If it is a non-inclusion proof: consider the vote <b>(c1, c2)</b> a <b>newVote</b>.</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="360" y="130" width="880" height="220" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-64" value="$$\text{address}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#f8cecc;strokeColor=#b85450;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="830" y="410" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-65" value="$$\text{voteID}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="740" y="410" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-66" value="$$(C_1, C_2)_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="557" y="410" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-67" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="472" y="410" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-68" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="869.9499999999999" y="450" as="sourcePoint" /> + <mxPoint x="870" y="610" as="targetPoint" /> + <Array as="points"> + <mxPoint x="869.66" y="530" /> + <mxPoint x="869.66" y="530" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-69" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-78"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="550" y="520" as="sourcePoint" /> + <mxPoint x="550" y="570" as="targetPoint" /> + <Array as="points"> + <mxPoint x="549.71" y="550" /> + <mxPoint x="549.71" y="550" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-70" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-73"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1109.41" y="350" as="sourcePoint" /> + <mxPoint x="1110" y="610" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-71" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1219.4099999999999" y="450" as="sourcePoint" /> + <mxPoint x="1219" y="610" as="targetPoint" /> + <Array as="points"> + <mxPoint x="1219.12" y="530" /> + <mxPoint x="1219.12" y="530" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-73" value="<div><div>$$\text{resultsAdd}^{\text{old}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="1050" y="410" width="120" height="40" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-74" value="$$\text{stateRoot}^{\text{old}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="1180" y="410" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-76" value="<div><div>$$\text{resultsSub}^{\text{old}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="1050" y="460" width="120" height="40" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-77" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="550" y="520" as="sourcePoint" /> + <mxPoint x="550" y="610" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-78" value="$$(C_1', C_2')_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="510" y="543" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-79" value="$$\mathsf{ReEnc}_{EPK}(C_1, C_2)_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="470" y="490" width="170" height="40" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-80" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="539.41" y="720" as="sourcePoint" /> + <mxPoint x="539.41" y="810" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-81" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="679.6" y="720" as="sourcePoint" /> + <mxPoint x="679.6" y="810" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-82" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="820" y="720" as="sourcePoint" /> + <mxPoint x="820" y="810" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-83" value="" style="group" vertex="1" connectable="0" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="360" y="610" width="880" height="160" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-84" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="bshJnAdmZ42-ucYETjzj-83"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="600" y="110" as="sourcePoint" /> + <mxPoint x="600" y="200" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-85" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="bshJnAdmZ42-ucYETjzj-83"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="720" y="110" as="sourcePoint" /> + <mxPoint x="720" y="200" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-86" value="<div align="center"><b><u>APPLY STATE TRANSITIONS<br><br></u></b></div><div align="left"><b><br></b></div><div align="left"><b>&nbsp;&nbsp;&nbsp; </b>If the vote is a <b>newVote: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </b>If the vote is an <b>overwrite</b>:<b> <br></b></div><div align="left"><br></div><div align="left">&nbsp; &nbsp; <b>1.</b> Include <b>address</b>, <b>voteID</b>, and <b>(C1', C2')</b>.&nbsp;&nbsp; <span style="white-space: pre;">	</span><b>&nbsp;&nbsp;&nbsp; 1.</b> Update vote associated to <b>address</b> to<b> (C1', C2')</b> and include <b>voteID</b>.</div><div align="left">&nbsp; &nbsp; <b>2.</b> Update <b>numVotes</b>.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>2.</b> Update <b>numVotes</b> and <b>numOverwrites</b>.<div align="left">&nbsp; &nbsp; <b>3.</b> Update <b>resultsAdd</b>.&nbsp; &nbsp; <span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span>&nbsp;&nbsp;&nbsp; <b>3.</b> Update <b>resultsAdd</b> and <b>resultsSub</b>.<br>&nbsp;&nbsp;&nbsp; <b>4.</b> Update <b>stateRoot</b>.<span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span>&nbsp;&nbsp;&nbsp; <b>4.</b> Update <b>stateRoot</b>.</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=left;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-83"> + <mxGeometry width="880" height="160" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-87" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;strokeColor=#9673a6;fontFamily=Courier New;align=left;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-83"> + <mxGeometry x="10" y="50" width="350" height="100" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-88" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;strokeColor=#9673a6;fontFamily=Courier New;align=left;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-83"> + <mxGeometry x="375" y="50" width="495" height="100" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-89" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;endArrow=none;startFill=0;endFill=1;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-52"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="-430" y="604.47" as="sourcePoint" /> + <mxPoint x="200" y="510" as="targetPoint" /> + <Array as="points"> + <mxPoint x="400" y="570" /> + <mxPoint x="200" y="570" /> + <mxPoint x="200" y="510" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-90" value="<div><div><div><div><div><div><div><div><div><div>$$k = \text{Hash}(k)$$</div></div></div></div></div></div></div></div><div><div><div></div></div></div></div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="230" y="550" width="100" height="40" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-91" value="$$\text{Iterate over } i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;align=center;spacingBottom=-4;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="290" y="390" width="160" height="53" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-92" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-91" target="bshJnAdmZ42-ucYETjzj-91"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-93" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1079.38" y="850" as="sourcePoint" /> + <mxPoint x="1079.38" y="960" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-94" value="<div><div>$$\text{numVotes}^{\text{new}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="620" y="960" width="120" height="40" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-95" value="<div><div>$$\text{numOverwrites}^{\text{new}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="480" y="960" width="120" height="40" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-96" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="760" y="-80" as="sourcePoint" /> + <mxPoint x="760" y="130" as="targetPoint" /> + <Array as="points" /> + </mxGeometry> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-97" value="<div>$$\text{MTProofs}_i$$</div><div>(inclusion or non-inclusion)</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="720" y="-150" width="80" height="120" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-98" value="<div align="left"><b>&nbsp;&nbsp; MISSING</b></div><div align="left"><b><br></b></div><div align="left">&nbsp;&nbsp; <b>1.</b> For <i>some</i> existing leafs, also reencrypt the votes.</div><div align="left">&nbsp;&nbsp; <b>2.</b> Data blobs.</div><div align="left">&nbsp;&nbsp; <b>3.</b> Add some details, like specifics of resultsAdd.</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#647687;strokeColor=#314354;fontFamily=Courier New;align=left;fontColor=#ffffff;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="1210" y="-280" width="380" height="150" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-99" value="AGGREGATION VERIFICATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="-200" y="1097.18" width="440" height="40" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-100" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="12.17999999999995" y="860" width="20" height="435" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-101" value="TRANSITION VERIFICATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=11;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="280" y="1097.18" width="1120" height="40" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-102" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="832.5" y="517.5" width="20" height="1120" as="geometry" /> + </mxCell> + <mxCell id="k71UCUNJWLWW3Epa4zVm-0" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=none;startFill=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="980" y="420" as="sourcePoint" /> + <mxPoint x="980" y="490" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-75" value="<div><div>$$\text{numVotes}^{\text{old}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="920" y="460" width="120" height="40" as="geometry" /> + </mxCell> + <mxCell id="bshJnAdmZ42-ucYETjzj-72" value="<div><div>$$\text{numOverwrites}^{\text{old}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="920" y="410" width="120" height="40" as="geometry" /> + </mxCell> + <mxCell id="ZOmDL6wXEoRELoglNmZe-0" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-91" target="bshJnAdmZ42-ucYETjzj-91"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="kXBYuY-UTKVdfyJdre-C-0" value="$$\text{address}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=default;strokeColor=none;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> + <mxGeometry x="610" y="64" width="60" height="39.88" as="geometry" /> + </mxCell> + </root> + </mxGraphModel> + </diagram> + <diagram name="4. state-transition-circuit (old)" id="x6B-zyxiSRkjN1jwR15T"> + <mxGraphModel dx="3782" dy="1928" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> + <root> + <mxCell id="ZdTqr67gGV_Two7x-mBu-0" /> + <mxCell id="ZdTqr67gGV_Two7x-mBu-1" parent="ZdTqr67gGV_Two7x-mBu-0" /> + <mxCell id="phJliGzTQF7XW9zZiR-q-19" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.727;entryY=-0.02;entryDx=0;entryDy=0;entryPerimeter=0;" parent="ZdTqr67gGV_Two7x-mBu-1" source="ZdTqr67gGV_Two7x-mBu-4" target="JGRwFc0fyMI5h4bvW3bD-0" edge="1"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="ZdTqr67gGV_Two7x-mBu-4" value="$$\text{voteID}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="120" y="40" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="ZdTqr67gGV_Two7x-mBu-9" value="$$\text{censusRoot}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="440" y="-10" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="ZdTqr67gGV_Two7x-mBu-10" value="<div>$$\text{ballotMode}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="440" y="-110" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="ZdTqr67gGV_Two7x-mBu-11" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="440" y="-60" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="phJliGzTQF7XW9zZiR-q-13" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="ZdTqr67gGV_Two7x-mBu-1" source="ZdTqr67gGV_Two7x-mBu-12" target="phJliGzTQF7XW9zZiR-q-1" edge="1"> + <mxGeometry relative="1" as="geometry" /> + </mxCell> + <mxCell id="ZdTqr67gGV_Two7x-mBu-12" value="$$(C_1, C_2)_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="320" y="40" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="ZdTqr67gGV_Two7x-mBu-13" value="<div>$$\text{processID}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="440" y="40" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="ZdTqr67gGV_Two7x-mBu-14" value="$$pk_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="120" y="-10" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="phJliGzTQF7XW9zZiR-q-21" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="ZdTqr67gGV_Two7x-mBu-1" source="ZdTqr67gGV_Two7x-mBu-32" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="-100" y="160" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="ZdTqr67gGV_Two7x-mBu-32" value="<div style="font-size: 11px;">$$\text{aggregationProof}_i$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="-160" y="40" width="120" height="40" as="geometry" /> + </mxCell> + <mxCell id="xnlEkFcDW3wDAF-mUqor-2" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="ZdTqr67gGV_Two7x-mBu-1" source="JGRwFc0fyMI5h4bvW3bD-0" target="xnlEkFcDW3wDAF-mUqor-0" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="60" y="270" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="JGRwFc0fyMI5h4bvW3bD-0" value="recursive SNARK batch verifier" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="-160" y="160" width="440" height="40" as="geometry" /> + </mxCell> + <mxCell id="tK7HVng925d0syRrVfO4-0" value="AGGREGATION VERIFICATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="-170" y="440" width="440" height="40" as="geometry" /> + </mxCell> + <mxCell id="d2DoWqZH1p_f5rfd7LTq-0" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="42.18" y="202.82" width="20" height="435" as="geometry" /> + </mxCell> + <mxCell id="wiVq041o4hXXWoejm4On-0" value="TRANSITION VERIFICATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=11;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="720" y="440" width="400" height="40" as="geometry" /> + </mxCell> + <mxCell id="wiVq041o4hXXWoejm4On-1" value="VOTES COUNT" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="480" y="440" width="200" height="40" as="geometry" /> + </mxCell> + <mxCell id="phJliGzTQF7XW9zZiR-q-0" value="VOTES REENCRYPTION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#ffe6cc;strokeColor=#d79b00;fontSize=11;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="290" y="440" width="140" height="40" as="geometry" /> + </mxCell> + <mxCell id="phJliGzTQF7XW9zZiR-q-11" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.083;entryY=-0.018;entryDx=0;entryDy=0;entryPerimeter=0;" parent="ZdTqr67gGV_Two7x-mBu-1" source="phJliGzTQF7XW9zZiR-q-1" target="phJliGzTQF7XW9zZiR-q-10" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="710" y="300" as="targetPoint" /> + <Array as="points"> + <mxPoint x="360" y="220" /> + <mxPoint x="680" y="220" /> + <mxPoint x="680" y="300" /> + <mxPoint x="680" y="300" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="phJliGzTQF7XW9zZiR-q-1" value="$$ReEnc()$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="320" y="160" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="phJliGzTQF7XW9zZiR-q-25" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.271;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" parent="ZdTqr67gGV_Two7x-mBu-1" source="phJliGzTQF7XW9zZiR-q-3" target="phJliGzTQF7XW9zZiR-q-10" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="770" y="190" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="phJliGzTQF7XW9zZiR-q-3" value="<div>$$\text{totalNewVotes}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="720" y="80" width="100" height="40" as="geometry" /> + </mxCell> + <mxCell id="phJliGzTQF7XW9zZiR-q-4" value="<div>$$\text{totalOverwrites}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="720" y="30" width="100" height="40" as="geometry" /> + </mxCell> + <mxCell id="phJliGzTQF7XW9zZiR-q-5" value="$$AddBN254()$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="520" y="320" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="phJliGzTQF7XW9zZiR-q-6" value="$$\text{stateRoot}^{\text{old}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="1040" y="30" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="phJliGzTQF7XW9zZiR-q-7" value="$$\text{stateRoot}^{\text{new}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="1040" y="80" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="phJliGzTQF7XW9zZiR-q-27" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="ZdTqr67gGV_Two7x-mBu-1" source="phJliGzTQF7XW9zZiR-q-8" target="phJliGzTQF7XW9zZiR-q-10" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="880" y="215" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="phJliGzTQF7XW9zZiR-q-8" value="merkleTree<br>parameters<br>witness" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="840" y="30" width="80" height="90" as="geometry" /> + </mxCell> + <mxCell id="phJliGzTQF7XW9zZiR-q-9" value="merkleTree<br>state transition proofs" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="940" y="30" width="80" height="90" as="geometry" /> + </mxCell> + <mxCell id="phJliGzTQF7XW9zZiR-q-10" value="$$MerkleTreeProcessor()$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="640" y="320" width="480" height="40" as="geometry" /> + </mxCell> + <mxCell id="phJliGzTQF7XW9zZiR-q-12" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;startArrow=oval;startFill=1;" parent="ZdTqr67gGV_Two7x-mBu-1" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="560" y="220" as="sourcePoint" /> + <mxPoint x="560" y="320" as="targetPoint" /> + <Array as="points"> + <mxPoint x="560" y="230" /> + <mxPoint x="560" y="230" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="phJliGzTQF7XW9zZiR-q-14" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;startArrow=oval;startFill=1;" parent="ZdTqr67gGV_Two7x-mBu-1" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="360" y="140" as="sourcePoint" /> + <mxPoint x="240" y="160" as="targetPoint" /> + <Array as="points"> + <mxPoint x="240" y="140" /> + <mxPoint x="240" y="160" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="phJliGzTQF7XW9zZiR-q-22" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;startArrow=oval;startFill=1;jumpStyle=arc;" parent="ZdTqr67gGV_Two7x-mBu-1" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="480" y="120" as="sourcePoint" /> + <mxPoint x="200" y="160" as="targetPoint" /> + <Array as="points"> + <mxPoint x="320" y="120" /> + <mxPoint x="200" y="120" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="phJliGzTQF7XW9zZiR-q-23" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;startArrow=none;startFill=0;" parent="ZdTqr67gGV_Two7x-mBu-1" target="phJliGzTQF7XW9zZiR-q-10" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="480" y="80" as="sourcePoint" /> + <mxPoint x="480" y="180" as="targetPoint" /> + <Array as="points"> + <mxPoint x="480" y="160" /> + <mxPoint x="720" y="160" /> + </Array> + </mxGeometry> + </mxCell> + <mxCell id="phJliGzTQF7XW9zZiR-q-28" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="ZdTqr67gGV_Two7x-mBu-1" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="979.75" y="120" as="sourcePoint" /> + <mxPoint x="979.75" y="320" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="phJliGzTQF7XW9zZiR-q-29" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="ZdTqr67gGV_Two7x-mBu-1" edge="1"> + <mxGeometry relative="1" as="geometry"> + <mxPoint x="1079.75" y="120" as="sourcePoint" /> + <mxPoint x="1079.75" y="320" as="targetPoint" /> + </mxGeometry> + </mxCell> + <mxCell id="xnlEkFcDW3wDAF-mUqor-0" value="true" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="20" y="360" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="IpKGK8iQcOz9ALTK2j-a-0" value="$$ReEnc()$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="890" y="200" width="80" height="40" as="geometry" /> + </mxCell> + <mxCell id="IpKGK8iQcOz9ALTK2j-a-1" value="Old votes also need to be reencrypted! (at least, some)" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" parent="ZdTqr67gGV_Two7x-mBu-1" vertex="1"> + <mxGeometry x="710" y="250" width="400" height="20" as="geometry" /> </mxCell> </root> </mxGraphModel>
@@ -162,7 +162,7 @@ \paragraph{Keccak256.} Keccak256 is the standard hash function used by Ethereum and is employed in \davinci to compress messages for signing and deriving Ethereum addresses from public keys over $\SEC{\G}$. Keccak256 takes arbitrary-length bitstrings and outputs 256-bit digests: $\hlset{\Keccak} : \{0,1\}^* \rightarrow \{0,1\}^{256}$. This function is not SNARK-friendly and it is used exclusively in the authentication circuit, where the verification of Ethereum-compatible signatures requires reproducing the original message hash computed by Ethereum clients (see Section~\ref{sec:vocdoni-protocol:circuits:authentication}).
\paragraph{Poseidon.} Poseidon is a SNARK-optimized hash function designed for efficient implementation inside arithmetic circuits. It is used in \davinci for computing commitments, nullifiers, and the state Merkle tree roots. Poseidon is used as $\hlset{\Poseidon} : \mathfrak{F}_s \rightarrow \F_s$, where $\mathfrak{F}_s$ is the set of tuples of $\F_s$-elements of any length, and $\F_s$ is the field described in Section~\ref{sec:cryptographic-primitives:elliptic-curves}. -\paragraph{MiMC-7.} Finally, we use functions from the MiMC family. On the one side, MiMC-7 hash function $\hlset{\Mimc} : \F_p \rightarrow \F_p$, where $\F_p$ is the set of tuples of $\F_p$-elements of any length, and $\F_p$ is the field described in Section~\ref{sec:cryptographic-primitives:elliptic-curves}. This hash is used to hash the public inputs of the different circuits and verify the associated proofs more efficiently (see Section~\ref{sec:vocdoni-protocol:circuits} for further details). {\color{blue}On the other side, XXX.} $\hlset{\Multimimc}$. +\paragraph{MiMC-7.} Finally, we use functions from the MiMC family. On the one side, MiMC-7 hash function $\hlset{\Mimc} : \F_p \rightarrow \F_p$, where $\F_p$ is the set of tuples of $\F_p$-elements of any length, and $\F_p$ is the field described in Section~\ref{sec:cryptographic-primitives:elliptic-curves}. This hash is used to hash the public inputs of the different circuits and verify the associated proofs more efficiently (see Section~\ref{sec:vocdoni-protocol:circuits} for further details). {\color{blue}On the other side, $\hlset{\Multimimc}$.} \martai{MiMC two instantiations: MiMC and MiMC-7, and also the curves. Check!}@@ -172,7 +172,7 @@ %MiMC7:Fpt→Fp
%MiMC7:Fpt→Fp %This function is denoted Hash3Hash3 in our implementation. -For the sake of clarity, in our notation we admit anything as an input of the above hash functions, although it might not be parsed as a sequence of field elements. Any bitstring can be converted to a tuple of field elements, so this does not change the actual working of the hash computation. In this document, is implied that the proper conversion happens before feeding the input into the actual hash function. +{\color{blue} For the sake of clarity, in our notation we admit anything as an input of the above hash functions, although it might not be parsed as a sequence of field elements. Any bitstring can be converted to a tuple of field elements, so this does not change the actual working of the hash computation. In this document, it is implied that the proper conversion happens before feeding the input into the actual hash function.} %\subsection{Commitment schemes} %\label{sec:cryptographic-primitives:commitments}@@ -387,7 +387,10 @@ \martai{\textbf{(1) State MT:} Poseidon with BN254 scalar field. \textbf{(2) Census MT:} MiMC with BLS12-377 scalar field.}
\martai{Sparse MTs (binary) with depth $64$. Structure of sparse MT from iden3.} +\martai{Add MT.Update, for those ciphertexts that are overwrites.} + \subsection{Zero-knowledge proof systems} \label{sec:cryptographic-primitives:zkp} +Groth16~\cite{groth2016size} with different curves. \textit{Zero-knowledge succinct non-interactive arguments of knowledge are a crucial component in ensuring the validity of the voting results. Voters generate zkSNARK proofs to prove that their encrypted votes comply with the rules and requirements of the voting process, without revealing any information about their choices. Sequencers also generate zkSNARK proofs to prove the correct aggregation of votes into the shared state that maintains the status of the voting process.}
@@ -44,4 +44,4 @@ \item Section~\ref{sec:analysis}: analysis of the proposed protocols. It includes a security discussion of the properties of the protocol, implementation details, and a performance evaluation.
\item Section~\ref{sec:conclusions}: we finish with some last remarks. \end{itemize} -\martai{Mention that the spec can be tailored to the needs of the specific vote. So, here we present some default configuration, but some of the pieces can be changed (specially the cryptographic schemes or curves). For this reason, we tried to make this document modular (like the code), to facilitate the changes and analysis.} +%Mention that the spec can be tailored to the needs of the specific vote. So, here we present some default configuration, but some of the pieces can be changed (specially the cryptographic schemes or curves). For this reason, we tried to make this document modular (like the code), to facilitate the changes and analysis.
@@ -10,6 +10,7 @@
\paragraph{Organizer.} The organizer is the entity responsible for defining and setting up the voting process. Its key responsibilities include defining the voting parameters and gathering the census data. The organizer ensures that the election is structured correctly but does not participate in vote collection or tallying. \paragraph{Sequencer.} Sequencers are a set of decentralized parties that facilitate the voting process. On the one hand, they collaboratively generate a public encryption key that voters use to encrypt their votes. Then, during the voting phase, they receive and verify encrypted votes from voters and reencrypt votes to prevent coercion. +%Old text: the Sequencer is a specialized component designed to handle the voting process using zero-knowledge proof mechanisms. It ensures that all transactions related to this process are validated and sequenced. The Sequencers periodically commit the state of the voting process to Ethereum. \paragraph{Voter.} Voters are the participants that belong the census that cast their votes in the election.@@ -50,10 +51,7 @@ \martai{It could actually be another type of data structure. We only need to be able to get a commitment and a membership proof that can be proven in-circuit. Mention it in some way.}
\martai{One way to think about it: (weight, pk).} -\subsubsection{State Merkle tree} Explain what it is and the structure. Below, the original text:\\ - -\martai{Essentially, the first "addresses" or "leaves" are reserved to those items (like processId, censusRoot, etc.), and then the voters' addresses and nullifiers are used as paths to the leave where the encrypted ballot/commitment is stored.} - +\subsubsection{State Merkle tree} Explain what it is and the structure. Below, the original text: The State tree contains some special addresses (indices) for storing some required data regarding the voting process: \begin{itemize}@@ -62,20 +60,15 @@ \item Address \texttt{0x1}: it stores \censusroot and \type, which contains the necessary information to validate vote proofs.
\martai{they type was a field in case the organization was using a different structure for the census than a MT.} \item Address \texttt{0x2}: it stores \ballotmode, which encodes rules for validating votes, such as the maximum number of selectable options. \item Address \texttt{0x3}: it stores the \epk, which is the public key used to encrypt the votes. - \martai{Ideally, EPK is computed before the organization sets the tree, but I am not sure how practical this is.} \item Address \texttt{0x4}: it stores the \addaccumulator. That is, the aggregated encrypted voting results that need to be added. \item Address \texttt{0x5}: it stores the \substractaccumulator. That is, it stores the aggregated encrypted voting results that need to be subtracted. - \item Any address: vote \addresses: are stored within the State tree pointing to a voter's identity commitment. Each commitment is a 32-byte hash derived from the voter's unique information and a secret. - \martai{(address, commitment).} - \item Any address: vote \nullifiers: are stored within the State tree to prevent double voting and to allow vote overwrite. Each nullifier is a 32-byte hash derived from the voter's commitment and a secret. - \martai{Nullifiers and addresses are used as indexes (i.e. path to the leaf that stores encrypted ballots/commitments).} + \item Any address: vote \addresses: are stored within the State tree pointing to a voter's encrypted ballot. Addresses are used as indexes (i.e. path to the leaf that stores encrypted ballots). + \item \textbf{voteIDs??} \end{itemize} - -\martai{Maybe the voteID will be included in the tree at some point.} \begin{figure}[h] \centerline{\includegraphics[width=400pt,draft=false]{\figs/mt-state-mermaid}} - \caption{Structure of the state Merkle tree (FIGURE SHOULD BE POLISHED).} + \caption{Structure of the state Merkle tree (FIGURE SHOULD BE udpated!).} \label{fig:mt-state} \end{figure}@@ -85,34 +78,13 @@
\subsection{Smart contracts} \label{sec:vocdoni-protocol:smart-contracts} -Old text: - \begin{enumerate} - \item \textbf{Ethereum}. An Ethereum compatible network is used as the source of truth for the voting system. By leveraging an EVM blockchain, the process management ensures that all transitions are immutable and verifiable by all participants. To this end, we implement several smart contracts. - \begin{itemize} - \item \textbf{Process management}: Responsible for the lifecycle management of voting processes. It includes the initiation, monitoring, execution, and closure of voting events. - \item \textbf{Results verification}: For each voting process, this smart contract maintains the integrity of the cast votes and process lifecycle. It verifies that each state transition committed by a ZK sequencer adheres to the predefined rules. - \item \textbf{Sequencer registry}: This smart contract keeps track of the existing available sequencers, stores the collateral to ensure good behavior, and it's used to coordinate the distributed key generation when a new Process is created. - \end{itemize} - \item \textbf{Sequencer}. The Sequencer is a specialized component designed to handle the voting process using zero-knowledge proof mechanisms. It ensures that all transactions related to this process are validated and sequenced. The Sequencers periodically commit the state of the voting process to Ethereum. - \item \textbf{Frontend user interface}. The user interface serves as the primary interaction layer for voters and organizers. It provides tools and functionalities needed by organizers to set up, manage, and oversee elections. This interface simplifies the complexities involved in managing a decentralized vote. - \item \textbf{Data availability}. For each voting process, the system needs to keep track of the current State Merkle Tree, which contains all information of such processes. A public data availability layer, ensures that all state transitions are available and verifiable and allows the participation of multiple sequencers within the same voting process. - \end{enumerate} +An Ethereum compatible network is used as the source of truth for the voting system. By leveraging an Ethereum virutal machine (EVM) blockchain, the voting process management ensures that all transitions are immutable and verifiable by all participants. To this end, we implement the following three smart contracts. \paragraph{Process management.} This smart contract is responsible for the life-cycle management of voting processes. It includes the initiation, monitoring, execution, and closure of voting events. -\paragraph{Sequencer registry.} For each voting process, this smart contract maintains the integrity of the cast votes and process life cycle. It verifies that each state transition committed by a sequencer adheres to the predefined rules. - -\paragraph{Results verification.} This smart contract keeps track of the existing available sequencers, stores the collateral of the sequencers to ensure (that incentivizes) good behaviour, and is used to coordinate the distributed key generation when a new voting process is created.\\ - -\martai{This is wrong. Explanation of SR and RV smart contracts are mixed, I don't know what I was thinking when I wrote it. We should also include a sentence about the management of sequencers.} - - -\begin{figure}[h] - \centerline{\includegraphics[width=400pt,draft=false]{\figs/circuit-inputs}} - \caption{Caption.} - \label{fig:circuit-inputs} -\end{figure} +\paragraph{Sequencer registry.} This smart contract keeps track of the existing available sequencers, stores the collateral of the sequencers to ensure (that incentivizes) good behaviour, and is used to coordinate the distributed key generation when a new voting process is created. +\paragraph{Results verification.} For each voting process, this smart contract maintains the integrity of the cast votes and process life cycle. It verifies that each state transition committed by a sequencer adheres to the predefined rules.\\ \subsection{Circuits} \label{sec:vocdoni-protocol:circuits}@@ -138,7 +110,7 @@ \end{figure}
\pagebreak -\subsubsection{Voter circuit} +\subsubsection{Ballot circuit} Figure~\ref{fig:circuit-voter} -- BN254.\\@@ -177,7 +149,7 @@ \label{fig:circuit-voter}
\end{figure} \newpage -\subsubsection{Authentication circuit} +\subsubsection{Verifier circuit} \label{sec:vocdoni-protocol:circuits:authentication} Figure~\ref{fig:circuit-authentication} -- BLS12-377.\\@@ -260,7 +232,9 @@ \label{fig:circuit-aggregate}
\end{figure} \newpage -\subsubsection{State transition circuit} -- BN254. \\ +\subsubsection{State transition circuit} + +Figure~\ref{fig:circuit-state-transition-v2} -- BN254. \\ \noi Given the aggregated votes proof, this circuit verifies the correct inclusion of all new votes into the process's state Merkle tree. It generates the final state transition proof that will be validated by the Ethereum smart contract. // This circuit verifies that a batch of votes correctly updates the global Merkle state root, including ballots, commitments, and results. It also verifies that the state transition corresponds to a valid proof aggregation and that overwritten votes are properly accounted for.@@ -300,17 +274,17 @@ \fbox{
\includegraphics[scale = 0.12, draft = false]{\figs/state-transition.png}} \end{figure} -\begin{figure}[H] - \centering - \fbox{ - \includegraphics[scale = 0.3, draft = false]{\figs/circuit-inputs.png}} -\end{figure} - -\begin{figure}[H] - \centerline{\includegraphics[width=400pt,draft=false]{\figs/circuit-state-transition}} - \caption{State transition circuit. All public values are framed in green.} - \label{fig:circuit-state-transition} -\end{figure} +%\begin{figure}[H] +% \centering +% \fbox{ +% \includegraphics[scale = 0.3, draft = false]{\figs/circuit-inputs.png}} +%\end{figure} +% +%\begin{figure}[H] +% \centerline{\includegraphics[width=400pt,draft=false]{\figs/circuit-state-transition}} +% \caption{State transition circuit. All public values are framed in green.} +% \label{fig:circuit-state-transition} +%\end{figure} \begin{mdframed} \begin{minipage}[H]{1\textwidth}@@ -349,21 +323,27 @@ \end{mdframed}
\martai{STATE TRANSITION CIRCUIT: a potential problem is that a sequencer may know if one of their votes has been overwritten, for this reason, sequencers reencrypt a certain amount of ballots every time (already existing ballots I mean). So, the circuit should include the reencryptions: both for existing ballots and also for the new votes, which should be reencrypted (for receipt-freeness).} +\begin{landscape} +%\thispagestyle{empty} % removes the page number \begin{figure}[H] - \centerline{\includegraphics[width=600pt,draft=false]{\figs/circuit-state-transition-v2}} + \centerline{\includegraphics[width=560pt,draft=false]{\figs/circuit-state-transition-v2}} \caption{State transition circuit. All public values are framed in green.} \label{fig:circuit-state-transition-v2} \end{figure} +\end{landscape} + +\subsubsection{Results circuit} +\label{sec:vocdoni-protocol:circuits:results} + +TBA. \subsection{Protocol flow} \label{sec:vocdoni-protocol:flow} In Figure~\ref{fig:protocol-flow} we describe the protocol flow. -\martai{About the figure: layout should be fixed. In addition, the icons for the different parties are missing.} - -\begin{figure}[H] - \centerline{\includegraphics[width=400pt,draft=false]{\figs/protocol-flow}} +\begin{figure}%[H] + \centerline{\includegraphics[width=370pt,draft=false]{\figs/protocol-flow}} \caption{Vocdoni voting process overview.} \label{fig:protocol-flow} \end{figure}@@ -442,7 +422,7 @@ \[ \voteproof = \text{Prove(), Circuit()}.\]
\item Sign $\voteid$ using the user's secret key $\sk$ to authenticates the vote and ensure that was cast by a legitimate voter: \[ \signature = \hlget{\SSign}_{\sk}(\voteid).\] \item Send the following data, which includes the encrypted vote, census membership proof, signature and vote proof, to the selected sequencer: - \[ \vote = [ \processid, \voteid, \encryptedballot, \censuspf, \zkproof, \signature ]. \] + \[ \vote = [ \processid, \voteid, \encryptedballot, \censuspf, \voteproof, \signature ]. \] \end{itemize} \martai{\\@@ -452,8 +432,7 @@
\noi \sequencers \begin{itemize} - \item Fetch current state: retrieve the current valid process state root from the Etherem smart contract and the associated data from Ethereum blobs. - \martai{specify which SC.} + \item Fetch current state: retrieve the current valid process state root from the process management smart contract and the associated data from Ethereum blobs. \item Generate a SK-SNARK proof of state transition proving: \begin{itemize} \item the validity of the ZK-SNARK proof provided by the voter,