arnaucube
arnaucube/davinci-paperPublic Self-hosted repository
docs(spec): qualify the security claims after the second review

Scope silent revoting to outside observers, separate inclusion from the
counted ballot, state the census, council and liveness assumptions,
specify the key derivation and identifiers exactly, scope the benchmarks,
and add the table of normative documents.
Pau Escrich p4u@dabax.net
Sat, 17 Oct 2026 08:57:11 +0000
commit

98bdd9974a1c21769845aa6068b30efd9f2bde02

parent

5e186977cfd670958aa8b6378352f1eb52a7f581

M v2/build/main.tex → v2/build/main.tex

@@ -48,7 +48,7 @@ % ---- Abstract ----

%\addcontentsline{toc}{section}{\protect\numberline{}Abstract} \begin{abstract} - \Davinci is the evolution of the Vocdoni voting protocol, designed to empower civil society by providing essential tools for secure, verifiable, and anonymous digital voting. Using recent advancements in \ac{ZK} proof systems and blockchain technology, \davinci operates as a specialized \ac{ZK} rollup that inherits network security from its settlement layer, either the Ethereum mainnet or an Ethereum rollup built on the OP Stack. Voters prove that their encrypted ballots are well-formed with a \ac{ZK-SNARK}, and sequencers prove each batch of ballots inside a \ac{zkVM}: a single succinct proof attests to the verification of every ballot proof, signature, and census proof in the batch, to the re-encryption of the ballots, and to the resulting update of the election state and of the encrypted tally. The system relies on cryptographic proofs to ensure integrity and security, eliminating the need for centralized authorities. By integrating \acsp{ZK-SNARK}, a \ac{zkVM}, and threshold homomorphic encryption, \davinci enables end-to-end verifiability, privacy, and trustlessness in election processes. The protocol distributes the election key among a set of key wardens through distributed key generation, coordinates the process through a single registry smart contract, and publishes in Ethereum data blobs enough data for anyone to rebuild the election state. Silent re-randomization of stored ballots makes revoting undetectable, which provides receipt-freeness without a trusted server. With a focus on accessibility, scalability, receipt-freeness, and automation, \davinci aims to facilitate high-frequency and low-cost voting, fostering mass adoption of voting and simplifying civil participation. + \Davinci is the evolution of the Vocdoni voting protocol, designed to empower civil society by providing essential tools for secure, verifiable, and anonymous digital voting. Using recent advancements in \ac{ZK} proof systems and blockchain technology, \davinci operates as a specialized \ac{ZK} rollup that inherits network security from its settlement layer, either the Ethereum mainnet or an Ethereum rollup built on the OP Stack. Voters prove that their encrypted ballots are well-formed with a \ac{ZK-SNARK}, and sequencers prove each batch of ballots inside a \ac{zkVM}: a single succinct proof attests to the verification of every ballot proof, signature, and census proof in the batch, to the re-encryption of the ballots, and to the resulting update of the election state and of the encrypted tally. The system relies on cryptographic proofs to ensure integrity and security, eliminating the need for centralized authorities. By integrating \acsp{ZK-SNARK}, a \ac{zkVM}, and threshold homomorphic encryption, \davinci enables individual and universal verifiability, ballot privacy, and trustlessness in election processes. The protocol distributes the election key among a set of key wardens through distributed key generation, coordinates the process through a single registry smart contract, and publishes in Ethereum data blobs enough data for anyone to rebuild the election state. Voters may revote, and the silent re-randomization of stored ballots obscures revotes from outside observers, which mitigates vote buying and coercion without a trusted tally server. With a focus on accessibility, scalability, coercion mitigation, and automation, \davinci aims to facilitate high-frequency and low-cost voting, fostering mass adoption of voting and simplifying civil participation. % Finally, the design of \davinci is grounded in practicality: all components are implemented using current technologies, deployed in production, and evaluated on production-grade hardware. In sum, the proposed architecture is not merely theoretical, but a working system. The source code has been made open source, allowing practitioners and researchers to further investigate its details and potential for future uses.
A v2/figures/ballot-variables.drawio

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

+<mxfile host="drawio"><diagram name="ballot-variables" id="ballot-variables"><mxGraphModel dx="1200" dy="800" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="1100" pageHeight="850" math="0" shadow="0"><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="c13" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;strokeColor=#000000;fontFamily=Courier New;verticalAlign=top;align=center;spacingTop=4;spacingLeft=6;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="0" y="0" width="640" height="236" as="geometry"/></mxCell><mxCell id="c3" value="&lt;b&gt;&lt;u&gt;Ballot&lt;/u&gt;&lt;/b&gt;" style="text;html=1;whiteSpace=wrap;fontSize=15;fontFamily=Helvetica;align=left;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="16" y="16" width="80" height="30" as="geometry"/></mxCell><mxCell id="c4" value="v&lt;sub&gt;1&lt;/sub&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#ffffff;strokeColor=#000000;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="96" y="14" width="46" height="34" as="geometry"/></mxCell><mxCell id="c5" value="v&lt;sub&gt;2&lt;/sub&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#ffffff;strokeColor=#000000;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="142" y="14" width="46" height="34" as="geometry"/></mxCell><mxCell id="c6" value="v&lt;sub&gt;3&lt;/sub&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#ffffff;strokeColor=#000000;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="188" y="14" width="46" height="34" as="geometry"/></mxCell><mxCell id="c7" value="0" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="234" y="14" width="36" height="34" as="geometry"/></mxCell><mxCell id="c8" value="0" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="270" y="14" width="36" height="34" as="geometry"/></mxCell><mxCell id="c9" value="0" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="306" y="14" width="36" height="34" as="geometry"/></mxCell><mxCell id="c10" value="&amp;hellip; (16)" style="text;html=1;whiteSpace=wrap;fontSize=13;fontFamily=Helvetica;align=left;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="346" y="14" width="60" height="34" as="geometry"/></mxCell><mxCell id="c11" value="active fields (here n&lt;sub&gt;f&lt;/sub&gt; = 3) and inactive fields, always 0" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Helvetica;align=left;verticalAlign=middle;fontColor=#555555;" vertex="1" parent="1"><mxGeometry x="96" y="50" width="400" height="20" as="geometry"/></mxCell><mxCell id="c12" value="&lt;div style='line-height:1.75'&gt;&amp;bull; &lt;b&gt;numFields&lt;/b&gt; = n&lt;sub&gt;f&lt;/sub&gt;: number of active fields (1 to 16); &lt;b&gt;groupSize&lt;/b&gt; &amp;le; numFields.&lt;br&gt;&amp;bull; &lt;b&gt;uniqueValues&lt;/b&gt; = true: v&lt;sub&gt;1&lt;/sub&gt;, v&lt;sub&gt;2&lt;/sub&gt;, v&lt;sub&gt;3&lt;/sub&gt; must be different; false: values may repeat.&lt;br&gt;&amp;bull; &lt;b&gt;minValue&lt;/b&gt; &amp;le; v&lt;sub&gt;1&lt;/sub&gt;, v&lt;sub&gt;2&lt;/sub&gt;, v&lt;sub&gt;3&lt;/sub&gt; &amp;le; &lt;b&gt;maxValue&lt;/b&gt;.&lt;br&gt;&amp;bull; &lt;b&gt;minValueSum&lt;/b&gt; &amp;le; v&lt;sub&gt;1&lt;/sub&gt;&lt;sup&gt;e&lt;/sup&gt; + v&lt;sub&gt;2&lt;/sub&gt;&lt;sup&gt;e&lt;/sup&gt; + v&lt;sub&gt;3&lt;/sub&gt;&lt;sup&gt;e&lt;/sup&gt; &amp;le; max, with e = &lt;b&gt;costExponent&lt;/b&gt; and&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;max = &lt;b&gt;maxValueSum&lt;/b&gt; if it is positive, or the voter's &lt;b&gt;weight&lt;/b&gt; if it is 0.&lt;/div&gt;" style="text;html=1;whiteSpace=wrap;fontSize=14;fontFamily=Helvetica;align=left;verticalAlign=top;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="16" y="84" width="608" height="150" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>
M v2/figures/grace-window.drawio → v2/figures/grace-window.drawio

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

-<mxfile host="drawio"><diagram name="grace-window" id="grace-window"><mxGraphModel dx="1200" dy="800" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="1100" pageHeight="850" math="0" shadow="0"><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="c24" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;strokeColor=#000000;fontFamily=Courier New;verticalAlign=top;align=center;spacingTop=4;spacingLeft=6;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="0" y="0" width="840" height="336" as="geometry"/></mxCell><mxCell id="c3" value="graceEnd = min(end + graceMaxTotal, max(end, lastVoteAt) + grace); every settled transition moves lastVoteAt and pushes graceEnd forward" style="text;html=1;whiteSpace=wrap;fontSize=13;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="14" y="8" width="812" height="46" as="geometry"/></mxCell><mxCell id="c4" value="&lt;b&gt;voting period&lt;/b&gt;&lt;br&gt;votes admitted and settled" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="40" y="108" width="280" height="50" as="geometry"/></mxCell><mxCell id="c5" value="&lt;b&gt;grace window&lt;/b&gt;&lt;br&gt;no new votes; queued batches settle" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="320" y="108" width="350" height="50" as="geometry"/></mxCell><mxCell id="c6" value="&lt;b&gt;results&lt;/b&gt;&lt;br&gt;can be published" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="670" y="108" width="150" height="50" as="geometry"/></mxCell><mxCell id="c7" value="" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="14" y="170" as="sourcePoint"/><mxPoint x="830" y="170" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c8" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="40" y="162" as="sourcePoint"/><mxPoint x="40" y="178" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c9" value="startTime" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="2.0" y="180" width="76" height="36" as="geometry"/></mxCell><mxCell id="c10" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="320" y="162" as="sourcePoint"/><mxPoint x="320" y="178" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c11" value="end" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="245.0" y="180" width="150" height="36" as="geometry"/></mxCell><mxCell id="c12" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="670" y="162" as="sourcePoint"/><mxPoint x="670" y="178" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c13" value="graceEnd" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="595.0" y="180" width="150" height="36" as="geometry"/></mxCell><mxCell id="c14" value="" style="ellipse;fillColor=#9673a6;strokeColor=#9673a6;html=1;" vertex="1" parent="1"><mxGeometry x="414" y="164" width="12" height="12" as="geometry"/></mxCell><mxCell id="c15" value="" style="ellipse;fillColor=#9673a6;strokeColor=#9673a6;html=1;" vertex="1" parent="1"><mxGeometry x="494" y="164" width="12" height="12" as="geometry"/></mxCell><mxCell id="c16" value="settled&lt;br&gt;batches" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="375" y="180" width="90" height="36" as="geometry"/></mxCell><mxCell id="c17" value="lastVoteAt" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="460" y="180" width="90" height="36" as="geometry"/></mxCell><mxCell id="c18" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="790" y="162" as="sourcePoint"/><mxPoint x="790" y="178" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c19" value="end +&lt;br&gt;graceMaxTotal" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="730" y="192" width="110" height="36" as="geometry"/></mxCell><mxCell id="c20" value="grace" style="html=1;rounded=0;endArrow=classic;startArrow=classic;endSize=6;startSize=6;fontSize=12;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="500" y="96" as="sourcePoint"/><mxPoint x="670" y="96" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c21" value="flush: seal everything pending" style="html=1;rounded=0;endArrow=classic;startArrow=classic;endSize=6;startSize=6;fontSize=12;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="290" y="240" as="sourcePoint"/><mxPoint x="670" y="240" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c22" value="graceMaxTotal (cap)" style="html=1;rounded=0;endArrow=classic;startArrow=classic;endSize=6;startSize=6;fontSize=12;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="320" y="280" as="sourcePoint"/><mxPoint x="790" y="280" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c23" value="OP Mainnet deployment: grace 300 s by default (the organizer may choose 240&amp;ndash;600 s), graceMaxTotal 1800 s, noticeMin 60 s." style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="14" y="294" width="812" height="40" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>+<mxfile host="drawio"><diagram name="grace-window" id="grace-window"><mxGraphModel dx="1200" dy="800" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="1100" pageHeight="850" math="0" shadow="0"><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="c24" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;strokeColor=#000000;fontFamily=Courier New;verticalAlign=top;align=center;spacingTop=4;spacingLeft=6;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="0" y="0" width="840" height="336" as="geometry"/></mxCell><mxCell id="c3" value="graceEnd = min(end + graceMaxTotal, max(end, lastVoteAt) + grace); each settled transition resets graceEnd to its time + grace, up to the cap" style="text;html=1;whiteSpace=wrap;fontSize=13;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="14" y="8" width="812" height="46" as="geometry"/></mxCell><mxCell id="c4" value="&lt;b&gt;voting period&lt;/b&gt;&lt;br&gt;votes admitted and settled" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="40" y="108" width="280" height="50" as="geometry"/></mxCell><mxCell id="c5" value="&lt;b&gt;grace window&lt;/b&gt;&lt;br&gt;honest nodes admit no votes;&lt;br&gt;queued batches settle" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="320" y="108" width="350" height="50" as="geometry"/></mxCell><mxCell id="c6" value="&lt;b&gt;results&lt;/b&gt;&lt;br&gt;can be published" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="670" y="108" width="150" height="50" as="geometry"/></mxCell><mxCell id="c7" value="" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="14" y="170" as="sourcePoint"/><mxPoint x="830" y="170" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c8" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="40" y="162" as="sourcePoint"/><mxPoint x="40" y="178" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c9" value="startTime" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="2.0" y="180" width="76" height="36" as="geometry"/></mxCell><mxCell id="c10" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="320" y="162" as="sourcePoint"/><mxPoint x="320" y="178" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c11" value="end" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="245.0" y="180" width="150" height="36" as="geometry"/></mxCell><mxCell id="c12" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="670" y="162" as="sourcePoint"/><mxPoint x="670" y="178" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c13" value="graceEnd" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="595.0" y="180" width="150" height="36" as="geometry"/></mxCell><mxCell id="c14" value="" style="ellipse;fillColor=#9673a6;strokeColor=#9673a6;html=1;" vertex="1" parent="1"><mxGeometry x="414" y="164" width="12" height="12" as="geometry"/></mxCell><mxCell id="c15" value="" style="ellipse;fillColor=#9673a6;strokeColor=#9673a6;html=1;" vertex="1" parent="1"><mxGeometry x="494" y="164" width="12" height="12" as="geometry"/></mxCell><mxCell id="c16" value="settled&lt;br&gt;batches" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="375" y="180" width="90" height="36" as="geometry"/></mxCell><mxCell id="c17" value="lastVoteAt" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="460" y="180" width="90" height="36" as="geometry"/></mxCell><mxCell id="c18" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="790" y="162" as="sourcePoint"/><mxPoint x="790" y="178" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c19" value="end +&lt;br&gt;graceMaxTotal" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="730" y="192" width="110" height="36" as="geometry"/></mxCell><mxCell id="c20" value="grace" style="html=1;rounded=0;endArrow=classic;startArrow=classic;endSize=6;startSize=6;fontSize=12;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="500" y="96" as="sourcePoint"/><mxPoint x="670" y="96" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c21" value="flush: seal everything pending" style="html=1;rounded=0;endArrow=classic;startArrow=classic;endSize=6;startSize=6;fontSize=12;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="290" y="240" as="sourcePoint"/><mxPoint x="670" y="240" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c22" value="graceMaxTotal (cap)" style="html=1;rounded=0;endArrow=classic;startArrow=classic;endSize=6;startSize=6;fontSize=12;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="320" y="280" as="sourcePoint"/><mxPoint x="790" y="280" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c23" value="OP Mainnet deployment: grace 300 s by default (the organizer may choose 240&amp;ndash;600 s), graceMaxTotal 1800 s, noticeMin 60 s." style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="14" y="294" width="812" height="40" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>
M v2/figures/protocol-flow-results.drawio → v2/figures/protocol-flow-results.drawio

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

-<mxfile host="drawio"><diagram name="protocol-flow-results" id="protocol-flow-results"><mxGraphModel dx="1200" dy="800" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="1100" pageHeight="850" math="0" shadow="0"><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="c37" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#888888;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="670" y="82" as="sourcePoint"/><mxPoint x="670" y="598" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c36" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#888888;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="520" y="82" as="sourcePoint"/><mxPoint x="520" y="598" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c35" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#888888;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="370" y="82" as="sourcePoint"/><mxPoint x="370" y="598" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c34" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#888888;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="220" y="82" as="sourcePoint"/><mxPoint x="220" y="598" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c33" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#888888;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="70" y="82" as="sourcePoint"/><mxPoint x="70" y="598" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c31" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;strokeColor=#000000;fontFamily=Courier New;verticalAlign=top;align=center;spacingTop=4;spacingLeft=6;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="14" y="154" width="712" height="396" as="geometry"/></mxCell><mxCell id="c3" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="14" y="10" width="112" height="72" as="geometry"/></mxCell><mxCell id="c4" value="" style="shape=image;html=1;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;labelBackgroundColor=none;fontSize=11;fontFamily=Courier New;image=data:image/svg+xml,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MCA0MCI+PGcgZmlsbD0iI2ZmZmZmZiIgc3Ryb2tlPSIjNTU1NTU1IiBzdHJva2Utd2lkdGg9IjIiPjxwYXRoIGQ9Ik00IDEzIEwyMCA0IEwzNiAxMyBaIi8+PHJlY3QgeD0iNSIgeT0iMTQiIHdpZHRoPSIzMCIgaGVpZ2h0PSIzIi8+PHJlY3QgeD0iOCIgeT0iMTgiIHdpZHRoPSI0IiBoZWlnaHQ9IjEzIi8+PHJlY3QgeD0iMTUiIHk9IjE4IiB3aWR0aD0iNCIgaGVpZ2h0PSIxMyIvPjxyZWN0IHg9IjIyIiB5PSIxOCIgd2lkdGg9IjQiIGhlaWdodD0iMTMiLz48cmVjdCB4PSIyOSIgeT0iMTgiIHdpZHRoPSI0IiBoZWlnaHQ9IjEzIi8+PHJlY3QgeD0iNCIgeT0iMzIiIHdpZHRoPSIzMiIgaGVpZ2h0PSI0Ii8+PC9nPjwvc3ZnPg==;" vertex="1" parent="1"><mxGeometry x="52" y="16" width="36" height="36" as="geometry"/></mxCell><mxCell id="c5" value="organizer" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="10" y="54" width="120" height="24" as="geometry"/></mxCell><mxCell id="c6" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="164" y="10" width="112" height="72" as="geometry"/></mxCell><mxCell id="c7" value="" style="shape=image;html=1;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;labelBackgroundColor=none;fontSize=11;fontFamily=Courier New;image=data:image/svg+xml,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MCA0MCI+PGcgZmlsbD0iI2ZmZmZmZiIgc3Ryb2tlPSIjNTU1NTU1IiBzdHJva2Utd2lkdGg9IjIiPjxjaXJjbGUgY3g9IjIwIiBjeT0iMTMiIHI9IjciLz48cGF0aCBkPSJNNiAzNyBDNiAyNiAxMiAyMiAyMCAyMiBDMjggMjIgMzQgMjYgMzQgMzcgWiIvPjwvZz48L3N2Zz4=;" vertex="1" parent="1"><mxGeometry x="202" y="16" width="36" height="36" as="geometry"/></mxCell><mxCell id="c8" value="sequencer" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="160" y="54" width="120" height="24" as="geometry"/></mxCell><mxCell id="c9" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="314" y="10" width="112" height="72" as="geometry"/></mxCell><mxCell id="c10" value="" style="shape=image;html=1;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;labelBackgroundColor=none;fontSize=11;fontFamily=Courier New;image=data:image/svg+xml,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MCA0MCI+PGcgZmlsbD0iI2ZmZmZmZiIgc3Ryb2tlPSIjNTU1NTU1IiBzdHJva2Utd2lkdGg9IjIiPjxyZWN0IHg9IjkiIHk9IjkiIHdpZHRoPSIyMiIgaGVpZ2h0PSIyMiIgcng9IjIiLz48cmVjdCB4PSIxNSIgeT0iMTUiIHdpZHRoPSIxMCIgaGVpZ2h0PSIxMCIvPjxwYXRoIGQ9Ik0xNCA5VjRNMjAgOVY0TTI2IDlWNE0xNCAzMXY1TTIwIDMxdjVNMjYgMzF2NU05IDE0SDRNOSAyMEg0TTkgMjZINE0zMSAxNGg1TTMxIDIwaDVNMzEgMjZoNSIvPjwvZz48L3N2Zz4=;" vertex="1" parent="1"><mxGeometry x="352" y="16" width="36" height="36" as="geometry"/></mxCell><mxCell id="c11" value="prover" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="310" y="54" width="120" height="24" as="geometry"/></mxCell><mxCell id="c12" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="464" y="10" width="112" height="72" as="geometry"/></mxCell><mxCell id="c13" value="" style="shape=image;html=1;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;labelBackgroundColor=none;fontSize=11;fontFamily=Courier New;image=data:image/svg+xml,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1NiA0MCI+PGcgZmlsbD0iI2ZmZmZmZiIgc3Ryb2tlPSIjNTU1NTU1IiBzdHJva2Utd2lkdGg9IjIiPjxjaXJjbGUgY3g9IjEzIiBjeT0iMTEiIHI9IjUuNSIvPjxwYXRoIGQ9Ik0zIDMwIEMzIDIxIDggMTggMTMgMTggQzE4IDE4IDIzIDIxIDIzIDMwIFoiLz48Y2lyY2xlIGN4PSI0MyIgY3k9IjExIiByPSI1LjUiLz48cGF0aCBkPSJNMzMgMzAgQzMzIDIxIDM4IDE4IDQzIDE4IEM0OCAxOCA1MyAyMSA1MyAzMCBaIi8+PGNpcmNsZSBjeD0iMjgiIGN5PSIxNiIgcj0iNi41Ii8+PHBhdGggZD0iTTE2IDM4IEMxNiAyOCAyMSAyNCAyOCAyNCBDMzUgMjQgNDAgMjggNDAgMzggWiIvPjwvZz48L3N2Zz4=;" vertex="1" parent="1"><mxGeometry x="493" y="16" width="54" height="38" as="geometry"/></mxCell><mxCell id="c14" value="key wardens" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="460" y="54" width="120" height="24" as="geometry"/></mxCell><mxCell id="c15" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="614" y="10" width="112" height="72" as="geometry"/></mxCell><mxCell id="c16" value="" style="shape=image;html=1;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;labelBackgroundColor=none;fontSize=11;fontFamily=Courier New;image=data:image/svg+xml,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNiA0MCI+PGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMzMzMzMzIiBzdHJva2Utd2lkdGg9IjEuOCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTEzIDIgTDI0IDIwIEwxMyAyNiBMMiAyMCBaIi8+PHBhdGggZD0iTTEzIDIgTDEzIDI2Ii8+PHBhdGggZD0iTTIgMjAgTDEzIDE1IEwyNCAyMCIvPjxwYXRoIGQ9Ik0yIDIzIEwxMyAzOCBMMjQgMjMgTDEzIDI5IFoiLz48L2c+PC9zdmc+;" vertex="1" parent="1"><mxGeometry x="660" y="16" width="20" height="30" as="geometry"/></mxCell><mxCell id="c17" value="process registry" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="610" y="54" width="120" height="24" as="geometry"/></mxCell><mxCell id="c18" value="end time; grace window&lt;br&gt;closes at graceEnd" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="580.0" y="100" width="180" height="36" as="geometry"/></mxCell><mxCell id="c19" value="decrypt accumulator;&lt;br&gt;Chaum-Pedersen proofs" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="115.0" y="184" width="210" height="36" as="geometry"/></mxCell><mxCell id="c20" value="results inputs" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=13;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="220" y="242" as="sourcePoint"/><mxPoint x="370" y="242" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c21" value="results proof" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=13;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="370" y="272" as="sourcePoint"/><mxPoint x="220" y="272" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c22" value="setProcessResults(publicValues, proof)" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=13;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="220" y="308" as="sourcePoint"/><mxPoint x="670" y="308" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c23" value="requestResultsDecryption(accumulator, siblings)" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=13;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="220" y="378" as="sourcePoint"/><mxPoint x="670" y="378" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c24" value="submit active ciphertexts" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=13;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="670" y="408" as="sourcePoint"/><mxPoint x="520" y="408" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c25" value="partial decryptions with&lt;br&gt;proofs; combine" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="415.0" y="434" width="210" height="36" as="geometry"/></mxCell><mxCell id="c26" value="finalizeResultsFromDKG" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=13;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="220" y="492" as="sourcePoint"/><mxPoint x="670" y="492" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c27" value="read plaintexts" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=13;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="670" y="522" as="sourcePoint"/><mxPoint x="520" y="522" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c28" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="14" y="342" as="sourcePoint"/><mxPoint x="726" y="342" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c29" value="alt: DKG and council modes" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=left;verticalAlign=middle;fontStyle=1;spacingLeft=4;" vertex="1" parent="1"><mxGeometry x="14" y="342" width="240" height="22" as="geometry"/></mxCell><mxCell id="c30" value="ProcessResultsSet (event)" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=13;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="670" y="568" as="sourcePoint"/><mxPoint x="70" y="568" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c32" value="alt: sequencer mode" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=left;verticalAlign=middle;fontStyle=1;spacingLeft=4;" vertex="1" parent="1"><mxGeometry x="14" y="154" width="200" height="22" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>+<mxfile host="drawio"><diagram name="protocol-flow-results" id="protocol-flow-results"><mxGraphModel dx="1200" dy="800" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="1100" pageHeight="850" math="0" shadow="0"><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="c38" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#888888;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="670" y="82" as="sourcePoint"/><mxPoint x="670" y="646" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c37" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#888888;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="520" y="82" as="sourcePoint"/><mxPoint x="520" y="646" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c36" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#888888;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="370" y="82" as="sourcePoint"/><mxPoint x="370" y="646" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c35" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#888888;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="220" y="82" as="sourcePoint"/><mxPoint x="220" y="646" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c34" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#888888;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="70" y="82" as="sourcePoint"/><mxPoint x="70" y="646" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c32" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;strokeColor=#000000;fontFamily=Courier New;verticalAlign=top;align=center;spacingTop=4;spacingLeft=6;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="14" y="154" width="712" height="444" as="geometry"/></mxCell><mxCell id="c3" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="14" y="10" width="112" height="72" as="geometry"/></mxCell><mxCell id="c4" value="" style="shape=image;html=1;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;labelBackgroundColor=none;fontSize=11;fontFamily=Courier New;image=data:image/svg+xml,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MCA0MCI+PGcgZmlsbD0iI2ZmZmZmZiIgc3Ryb2tlPSIjNTU1NTU1IiBzdHJva2Utd2lkdGg9IjIiPjxwYXRoIGQ9Ik00IDEzIEwyMCA0IEwzNiAxMyBaIi8+PHJlY3QgeD0iNSIgeT0iMTQiIHdpZHRoPSIzMCIgaGVpZ2h0PSIzIi8+PHJlY3QgeD0iOCIgeT0iMTgiIHdpZHRoPSI0IiBoZWlnaHQ9IjEzIi8+PHJlY3QgeD0iMTUiIHk9IjE4IiB3aWR0aD0iNCIgaGVpZ2h0PSIxMyIvPjxyZWN0IHg9IjIyIiB5PSIxOCIgd2lkdGg9IjQiIGhlaWdodD0iMTMiLz48cmVjdCB4PSIyOSIgeT0iMTgiIHdpZHRoPSI0IiBoZWlnaHQ9IjEzIi8+PHJlY3QgeD0iNCIgeT0iMzIiIHdpZHRoPSIzMiIgaGVpZ2h0PSI0Ii8+PC9nPjwvc3ZnPg==;" vertex="1" parent="1"><mxGeometry x="52" y="16" width="36" height="36" as="geometry"/></mxCell><mxCell id="c5" value="organizer" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="10" y="54" width="120" height="24" as="geometry"/></mxCell><mxCell id="c6" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="164" y="10" width="112" height="72" as="geometry"/></mxCell><mxCell id="c7" value="" style="shape=image;html=1;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;labelBackgroundColor=none;fontSize=11;fontFamily=Courier New;image=data:image/svg+xml,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MCA0MCI+PGcgZmlsbD0iI2ZmZmZmZiIgc3Ryb2tlPSIjNTU1NTU1IiBzdHJva2Utd2lkdGg9IjIiPjxjaXJjbGUgY3g9IjIwIiBjeT0iMTMiIHI9IjciLz48cGF0aCBkPSJNNiAzNyBDNiAyNiAxMiAyMiAyMCAyMiBDMjggMjIgMzQgMjYgMzQgMzcgWiIvPjwvZz48L3N2Zz4=;" vertex="1" parent="1"><mxGeometry x="202" y="16" width="36" height="36" as="geometry"/></mxCell><mxCell id="c8" value="sequencer" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="160" y="54" width="120" height="24" as="geometry"/></mxCell><mxCell id="c9" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="314" y="10" width="112" height="72" as="geometry"/></mxCell><mxCell id="c10" value="" style="shape=image;html=1;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;labelBackgroundColor=none;fontSize=11;fontFamily=Courier New;image=data:image/svg+xml,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MCA0MCI+PGcgZmlsbD0iI2ZmZmZmZiIgc3Ryb2tlPSIjNTU1NTU1IiBzdHJva2Utd2lkdGg9IjIiPjxyZWN0IHg9IjkiIHk9IjkiIHdpZHRoPSIyMiIgaGVpZ2h0PSIyMiIgcng9IjIiLz48cmVjdCB4PSIxNSIgeT0iMTUiIHdpZHRoPSIxMCIgaGVpZ2h0PSIxMCIvPjxwYXRoIGQ9Ik0xNCA5VjRNMjAgOVY0TTI2IDlWNE0xNCAzMXY1TTIwIDMxdjVNMjYgMzF2NU05IDE0SDRNOSAyMEg0TTkgMjZINE0zMSAxNGg1TTMxIDIwaDVNMzEgMjZoNSIvPjwvZz48L3N2Zz4=;" vertex="1" parent="1"><mxGeometry x="352" y="16" width="36" height="36" as="geometry"/></mxCell><mxCell id="c11" value="prover" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="310" y="54" width="120" height="24" as="geometry"/></mxCell><mxCell id="c12" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="464" y="10" width="112" height="72" as="geometry"/></mxCell><mxCell id="c13" value="" style="shape=image;html=1;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;labelBackgroundColor=none;fontSize=11;fontFamily=Courier New;image=data:image/svg+xml,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1NiA0MCI+PGcgZmlsbD0iI2ZmZmZmZiIgc3Ryb2tlPSIjNTU1NTU1IiBzdHJva2Utd2lkdGg9IjIiPjxjaXJjbGUgY3g9IjEzIiBjeT0iMTEiIHI9IjUuNSIvPjxwYXRoIGQ9Ik0zIDMwIEMzIDIxIDggMTggMTMgMTggQzE4IDE4IDIzIDIxIDIzIDMwIFoiLz48Y2lyY2xlIGN4PSI0MyIgY3k9IjExIiByPSI1LjUiLz48cGF0aCBkPSJNMzMgMzAgQzMzIDIxIDM4IDE4IDQzIDE4IEM0OCAxOCA1MyAyMSA1MyAzMCBaIi8+PGNpcmNsZSBjeD0iMjgiIGN5PSIxNiIgcj0iNi41Ii8+PHBhdGggZD0iTTE2IDM4IEMxNiAyOCAyMSAyNCAyOCAyNCBDMzUgMjQgNDAgMjggNDAgMzggWiIvPjwvZz48L3N2Zz4=;" vertex="1" parent="1"><mxGeometry x="493" y="16" width="54" height="38" as="geometry"/></mxCell><mxCell id="c14" value="key wardens" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="460" y="54" width="120" height="24" as="geometry"/></mxCell><mxCell id="c15" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="614" y="10" width="112" height="72" as="geometry"/></mxCell><mxCell id="c16" value="" style="shape=image;html=1;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;labelBackgroundColor=none;fontSize=11;fontFamily=Courier New;image=data:image/svg+xml,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNiA0MCI+PGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMzMzMzMzIiBzdHJva2Utd2lkdGg9IjEuOCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTEzIDIgTDI0IDIwIEwxMyAyNiBMMiAyMCBaIi8+PHBhdGggZD0iTTEzIDIgTDEzIDI2Ii8+PHBhdGggZD0iTTIgMjAgTDEzIDE1IEwyNCAyMCIvPjxwYXRoIGQ9Ik0yIDIzIEwxMyAzOCBMMjQgMjMgTDEzIDI5IFoiLz48L2c+PC9zdmc+;" vertex="1" parent="1"><mxGeometry x="660" y="16" width="20" height="30" as="geometry"/></mxCell><mxCell id="c17" value="process registry" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="610" y="54" width="120" height="24" as="geometry"/></mxCell><mxCell id="c18" value="end time; grace window&lt;br&gt;closes at graceEnd" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="580.0" y="100" width="180" height="36" as="geometry"/></mxCell><mxCell id="c19" value="decrypt accumulator;&lt;br&gt;Chaum-Pedersen proofs" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="115.0" y="184" width="210" height="36" as="geometry"/></mxCell><mxCell id="c20" value="results inputs" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=13;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="220" y="242" as="sourcePoint"/><mxPoint x="370" y="242" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c21" value="results proof" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=13;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="370" y="272" as="sourcePoint"/><mxPoint x="220" y="272" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c22" value="setProcessResults(publicValues, proof)" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=13;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="220" y="308" as="sourcePoint"/><mxPoint x="670" y="308" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c23" value="requestResultsDecryption(accumulator, siblings)" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=13;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="220" y="378" as="sourcePoint"/><mxPoint x="670" y="378" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c24" value="submit active ciphertexts" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=13;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="670" y="408" as="sourcePoint"/><mxPoint x="520" y="408" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c25" value="wait: organizer reveal (locked)&lt;br&gt;or decryption gate (council)" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="395.0" y="434" width="250" height="36" as="geometry"/></mxCell><mxCell id="c26" value="partial decryptions with&lt;br&gt;proofs; combine" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="415.0" y="482" width="210" height="36" as="geometry"/></mxCell><mxCell id="c27" value="finalizeResultsFromDKG" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=13;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="220" y="540" as="sourcePoint"/><mxPoint x="670" y="540" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c28" value="read plaintexts" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=13;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="670" y="570" as="sourcePoint"/><mxPoint x="520" y="570" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c29" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="14" y="342" as="sourcePoint"/><mxPoint x="726" y="342" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c30" value="alt: DKG and council modes" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=left;verticalAlign=middle;fontStyle=1;spacingLeft=4;" vertex="1" parent="1"><mxGeometry x="14" y="342" width="240" height="22" as="geometry"/></mxCell><mxCell id="c31" value="ProcessResultsSet (event)" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=13;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="670" y="616" as="sourcePoint"/><mxPoint x="70" y="616" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c33" value="alt: sequencer mode" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=left;verticalAlign=middle;fontStyle=1;spacingLeft=4;" vertex="1" parent="1"><mxGeometry x="14" y="154" width="200" height="22" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>
M v2/figures/re-encryption.drawio → v2/figures/re-encryption.drawio

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

-<mxfile host="drawio"><diagram name="re-encryption" id="re-encryption"><mxGraphModel dx="1200" dy="800" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="1100" pageHeight="850" math="0" shadow="0"><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="c3" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;strokeColor=#000000;fontFamily=Courier New;verticalAlign=top;align=center;spacingTop=4;spacingLeft=6;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="0" y="0" width="780" height="420" as="geometry"/></mxCell><mxCell id="c4" value="seed" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="16" y="6" width="150" height="30" as="geometry"/></mxCell><mxCell id="c5" value="stateRoot&lt;sup&gt;old&lt;/sup&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="16" y="42" width="150" height="30" as="geometry"/></mxCell><mxCell id="c6" value="&amp;eta;&lt;sub&gt;0&lt;/sub&gt; = H(&amp;quot;davinci-reenc-v1&amp;quot; ||&lt;br&gt;seed || stateRoot&lt;sup&gt;old&lt;/sup&gt;) mod s" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="200" y="8" width="320" height="62" as="geometry"/></mxCell><mxCell id="c7" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.21;entryDx=0;entryDy=0;" edge="1" parent="1" source="c4" target="c6"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c8" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.79;entryDx=0;entryDy=0;" edge="1" parent="1" source="c5" target="c6"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c9" value="&amp;eta;&lt;sub&gt;c+1&lt;/sub&gt; = H(&amp;eta;&lt;sub&gt;c&lt;/sub&gt;) mod s" style="text;html=1;whiteSpace=wrap;fontSize=13;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="540" y="24" width="200" height="30" as="geometry"/></mxCell><mxCell id="c10" value="f&lt;sub&gt;1&lt;/sub&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="20" y="176" width="42" height="34" as="geometry"/></mxCell><mxCell id="c11" value="&amp;eta;&lt;sub&gt;0&lt;/sub&gt;" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="24" y="104" width="34" height="28" as="geometry"/></mxCell><mxCell id="c12" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c11" target="c10"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c13" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c6" target="c11"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="360" y="86"/><mxPoint x="41" y="86"/></Array></mxGeometry></mxCell><mxCell id="c14" value="f&lt;sub&gt;2&lt;/sub&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="64" y="176" width="42" height="34" as="geometry"/></mxCell><mxCell id="c15" value="&amp;eta;&lt;sub&gt;1&lt;/sub&gt;" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="68" y="104" width="34" height="28" as="geometry"/></mxCell><mxCell id="c16" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c15" target="c14"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c17" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c11" target="c15"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c18" value="id" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="108" y="176" width="30" height="34" as="geometry"/></mxCell><mxCell id="c19" value="B&lt;sub&gt;1&lt;/sub&gt;" style="text;html=1;whiteSpace=wrap;fontSize=14;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="20" y="212" width="118" height="24" as="geometry"/></mxCell><mxCell id="c20" value="f&lt;sub&gt;1&lt;/sub&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="152" y="176" width="42" height="34" as="geometry"/></mxCell><mxCell id="c21" value="&amp;eta;&lt;sub&gt;2&lt;/sub&gt;" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="156" y="104" width="34" height="28" as="geometry"/></mxCell><mxCell id="c22" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c21" target="c20"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c23" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c15" target="c21"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c24" value="f&lt;sub&gt;2&lt;/sub&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="196" y="176" width="42" height="34" as="geometry"/></mxCell><mxCell id="c25" value="&amp;eta;&lt;sub&gt;c&lt;/sub&gt;" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="200" y="104" width="34" height="28" as="geometry"/></mxCell><mxCell id="c26" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c25" target="c24"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c27" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c21" target="c25"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c28" value="id" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="240" y="176" width="30" height="34" as="geometry"/></mxCell><mxCell id="c29" value="B&lt;sub&gt;2&lt;/sub&gt;" style="text;html=1;whiteSpace=wrap;fontSize=14;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="152" y="212" width="118" height="24" as="geometry"/></mxCell><mxCell id="c30" value="&amp;hellip;" style="text;html=1;whiteSpace=wrap;fontSize=16;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="284" y="176" width="34" height="34" as="geometry"/></mxCell><mxCell id="c31" value="&amp;hellip;" style="text;html=1;whiteSpace=wrap;fontSize=16;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="284" y="100" width="34" height="34" as="geometry"/></mxCell><mxCell id="c32" value="f&lt;sub&gt;1&lt;/sub&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="324" y="176" width="42" height="34" as="geometry"/></mxCell><mxCell id="c33" value="&amp;eta;&lt;sub&gt;c&lt;/sub&gt;" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="328" y="104" width="34" height="28" as="geometry"/></mxCell><mxCell id="c34" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c33" target="c32"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c35" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c25" target="c33"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c36" value="f&lt;sub&gt;2&lt;/sub&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="368" y="176" width="42" height="34" as="geometry"/></mxCell><mxCell id="c37" value="&amp;eta;&lt;sub&gt;c&lt;/sub&gt;" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="372" y="104" width="34" height="28" as="geometry"/></mxCell><mxCell id="c38" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c37" target="c36"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c39" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c33" target="c37"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c40" value="id" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="412" y="176" width="30" height="34" as="geometry"/></mxCell><mxCell id="c41" value="B&lt;sub&gt;n&lt;/sub&gt;" style="text;html=1;whiteSpace=wrap;fontSize=14;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="324" y="212" width="118" height="24" as="geometry"/></mxCell><mxCell id="c42" value="f&lt;sub&gt;1&lt;/sub&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="456" y="176" width="42" height="34" as="geometry"/></mxCell><mxCell id="c43" value="&amp;eta;&lt;sub&gt;c&lt;/sub&gt;" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="460" y="104" width="34" height="28" as="geometry"/></mxCell><mxCell id="c44" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c43" target="c42"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c45" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c37" target="c43"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c46" value="f&lt;sub&gt;2&lt;/sub&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="500" y="176" width="42" height="34" as="geometry"/></mxCell><mxCell id="c47" value="&amp;eta;&lt;sub&gt;c&lt;/sub&gt;" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="504" y="104" width="34" height="28" as="geometry"/></mxCell><mxCell id="c48" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c47" target="c46"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c49" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c43" target="c47"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c50" value="id" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="544" y="176" width="30" height="34" as="geometry"/></mxCell><mxCell id="c51" value="R&lt;sub&gt;1&lt;/sub&gt;" style="text;html=1;whiteSpace=wrap;fontSize=14;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="456" y="212" width="118" height="24" as="geometry"/></mxCell><mxCell id="c52" value="&amp;hellip;" style="text;html=1;whiteSpace=wrap;fontSize=16;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="588" y="176" width="34" height="34" as="geometry"/></mxCell><mxCell id="c53" value="&amp;hellip;" style="text;html=1;whiteSpace=wrap;fontSize=16;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="588" y="100" width="34" height="34" as="geometry"/></mxCell><mxCell id="c54" value="f&lt;sub&gt;1&lt;/sub&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="628" y="176" width="42" height="34" as="geometry"/></mxCell><mxCell id="c55" value="&amp;eta;&lt;sub&gt;c&lt;/sub&gt;" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="632" y="104" width="34" height="28" as="geometry"/></mxCell><mxCell id="c56" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c55" target="c54"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c57" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c47" target="c55"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c58" value="f&lt;sub&gt;2&lt;/sub&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="672" y="176" width="42" height="34" as="geometry"/></mxCell><mxCell id="c59" value="&amp;eta;&lt;sub&gt;c&lt;/sub&gt;" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="676" y="104" width="34" height="28" as="geometry"/></mxCell><mxCell id="c60" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c59" target="c58"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c61" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c55" target="c59"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c62" value="id" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="716" y="176" width="30" height="34" as="geometry"/></mxCell><mxCell id="c63" value="R&lt;sub&gt;|R|&lt;/sub&gt;" style="text;html=1;whiteSpace=wrap;fontSize=14;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="628" y="212" width="118" height="24" as="geometry"/></mxCell><mxCell id="c64" value="voters' ballots, fields in order" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="20" y="238" width="380" height="22" as="geometry"/></mxCell><mxCell id="c65" value="refreshed ballots, slots ascending" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="420" y="238" width="340" height="22" as="geometry"/></mxCell><mxCell id="c66" value="Each active ciphertext consumes the next scalar &amp;eta;&lt;sub&gt;c&lt;/sub&gt;; inactive fields (id) must be the identity and consume none (example with n&lt;sub&gt;f&lt;/sub&gt; = 2)." style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="20" y="262" width="740" height="40" as="geometry"/></mxCell><mxCell id="c67" value="&lt;b&gt;re-encryption&lt;/b&gt; with &amp;eta;&lt;sub&gt;c&lt;/sub&gt;:&lt;br&gt;(C&lt;sub&gt;1&lt;/sub&gt;, C&lt;sub&gt;2&lt;/sub&gt;) &amp;rarr; (C&lt;sub&gt;1&lt;/sub&gt; + &amp;eta;&lt;sub&gt;c&lt;/sub&gt;&amp;middot;G,&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;C&lt;sub&gt;2&lt;/sub&gt; + &amp;eta;&lt;sub&gt;c&lt;/sub&gt;&amp;middot;encryptionKey)&lt;br&gt;&lt;font style='font-size:12px'&gt;no scalar repeats within or across batches&lt;/font&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="16" y="308" width="360" height="96" as="geometry"/></mxCell><mxCell id="c68" value="&lt;b&gt;results accumulation&lt;/b&gt;&lt;br&gt;A&lt;sup&gt;new&lt;/sup&gt; = A&lt;sup&gt;old&lt;/sup&gt; + &amp;Sigma; B'&lt;sub&gt;i&lt;/sub&gt; &amp;minus; &amp;Sigma; B&lt;sup&gt;old&lt;/sup&gt;&lt;sub&gt;i&lt;/sub&gt;&lt;br&gt;+ &amp;Sigma; (R'&lt;sub&gt;j&lt;/sub&gt; &amp;minus; R&lt;sub&gt;j&lt;/sub&gt;)&lt;br&gt;&lt;font style='font-size:12px'&gt;refreshes add encryptions of zero&lt;/font&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="394" y="308" width="370" height="96" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>+<mxfile host="drawio"><diagram name="re-encryption" id="re-encryption"><mxGraphModel dx="1200" dy="800" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="1100" pageHeight="850" math="0" shadow="0"><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="c3" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;strokeColor=#000000;fontFamily=Courier New;verticalAlign=top;align=center;spacingTop=4;spacingLeft=6;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="0" y="0" width="780" height="420" as="geometry"/></mxCell><mxCell id="c4" value="seed" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="16" y="6" width="150" height="30" as="geometry"/></mxCell><mxCell id="c5" value="stateRoot&lt;sup&gt;old&lt;/sup&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=14;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="16" y="42" width="150" height="30" as="geometry"/></mxCell><mxCell id="c6" value="&amp;eta;&lt;sub&gt;0&lt;/sub&gt; = H(&amp;quot;davinci-reenc-v1&amp;quot; ||&lt;br&gt;seed || stateRoot&lt;sup&gt;old&lt;/sup&gt;) mod s" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="200" y="8" width="320" height="62" as="geometry"/></mxCell><mxCell id="c7" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.21;entryDx=0;entryDy=0;" edge="1" parent="1" source="c4" target="c6"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c8" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.79;entryDx=0;entryDy=0;" edge="1" parent="1" source="c5" target="c6"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c9" value="&amp;eta;&lt;sub&gt;c+1&lt;/sub&gt; = H(&amp;eta;&lt;sub&gt;c&lt;/sub&gt;) mod s" style="text;html=1;whiteSpace=wrap;fontSize=13;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="540" y="24" width="200" height="30" as="geometry"/></mxCell><mxCell id="c10" value="f&lt;sub&gt;1&lt;/sub&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="20" y="176" width="42" height="34" as="geometry"/></mxCell><mxCell id="c11" value="&amp;eta;&lt;sub&gt;0&lt;/sub&gt;" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="24" y="104" width="34" height="28" as="geometry"/></mxCell><mxCell id="c12" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c11" target="c10"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c13" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c6" target="c11"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="360" y="86"/><mxPoint x="41" y="86"/></Array></mxGeometry></mxCell><mxCell id="c14" value="f&lt;sub&gt;2&lt;/sub&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="64" y="176" width="42" height="34" as="geometry"/></mxCell><mxCell id="c15" value="&amp;eta;&lt;sub&gt;1&lt;/sub&gt;" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="68" y="104" width="34" height="28" as="geometry"/></mxCell><mxCell id="c16" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c15" target="c14"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c17" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c11" target="c15"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c18" value="id" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="108" y="176" width="30" height="34" as="geometry"/></mxCell><mxCell id="c19" value="B&lt;sub&gt;1&lt;/sub&gt;" style="text;html=1;whiteSpace=wrap;fontSize=14;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="20" y="212" width="118" height="24" as="geometry"/></mxCell><mxCell id="c20" value="f&lt;sub&gt;1&lt;/sub&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="152" y="176" width="42" height="34" as="geometry"/></mxCell><mxCell id="c21" value="&amp;eta;&lt;sub&gt;2&lt;/sub&gt;" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="156" y="104" width="34" height="28" as="geometry"/></mxCell><mxCell id="c22" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c21" target="c20"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c23" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c15" target="c21"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c24" value="f&lt;sub&gt;2&lt;/sub&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="196" y="176" width="42" height="34" as="geometry"/></mxCell><mxCell id="c25" value="&amp;eta;&lt;sub&gt;c&lt;/sub&gt;" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="200" y="104" width="34" height="28" as="geometry"/></mxCell><mxCell id="c26" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c25" target="c24"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c27" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c21" target="c25"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c28" value="id" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="240" y="176" width="30" height="34" as="geometry"/></mxCell><mxCell id="c29" value="B&lt;sub&gt;2&lt;/sub&gt;" style="text;html=1;whiteSpace=wrap;fontSize=14;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="152" y="212" width="118" height="24" as="geometry"/></mxCell><mxCell id="c30" value="&amp;hellip;" style="text;html=1;whiteSpace=wrap;fontSize=16;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="284" y="176" width="34" height="34" as="geometry"/></mxCell><mxCell id="c31" value="&amp;hellip;" style="text;html=1;whiteSpace=wrap;fontSize=16;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="284" y="100" width="34" height="34" as="geometry"/></mxCell><mxCell id="c32" value="f&lt;sub&gt;1&lt;/sub&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="324" y="176" width="42" height="34" as="geometry"/></mxCell><mxCell id="c33" value="&amp;eta;&lt;sub&gt;c&lt;/sub&gt;" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="328" y="104" width="34" height="28" as="geometry"/></mxCell><mxCell id="c34" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c33" target="c32"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c35" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c25" target="c33"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c36" value="f&lt;sub&gt;2&lt;/sub&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="368" y="176" width="42" height="34" as="geometry"/></mxCell><mxCell id="c37" value="&amp;eta;&lt;sub&gt;c&lt;/sub&gt;" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="372" y="104" width="34" height="28" as="geometry"/></mxCell><mxCell id="c38" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c37" target="c36"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c39" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c33" target="c37"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c40" value="id" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="412" y="176" width="30" height="34" as="geometry"/></mxCell><mxCell id="c41" value="B&lt;sub&gt;n&lt;/sub&gt;" style="text;html=1;whiteSpace=wrap;fontSize=14;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="324" y="212" width="118" height="24" as="geometry"/></mxCell><mxCell id="c42" value="f&lt;sub&gt;1&lt;/sub&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="456" y="176" width="42" height="34" as="geometry"/></mxCell><mxCell id="c43" value="&amp;eta;&lt;sub&gt;c&lt;/sub&gt;" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="460" y="104" width="34" height="28" as="geometry"/></mxCell><mxCell id="c44" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c43" target="c42"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c45" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c37" target="c43"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c46" value="f&lt;sub&gt;2&lt;/sub&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="500" y="176" width="42" height="34" as="geometry"/></mxCell><mxCell id="c47" value="&amp;eta;&lt;sub&gt;c&lt;/sub&gt;" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="504" y="104" width="34" height="28" as="geometry"/></mxCell><mxCell id="c48" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c47" target="c46"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c49" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c43" target="c47"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c50" value="id" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="544" y="176" width="30" height="34" as="geometry"/></mxCell><mxCell id="c51" value="R&lt;sub&gt;1&lt;/sub&gt;" style="text;html=1;whiteSpace=wrap;fontSize=14;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="456" y="212" width="118" height="24" as="geometry"/></mxCell><mxCell id="c52" value="&amp;hellip;" style="text;html=1;whiteSpace=wrap;fontSize=16;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="588" y="176" width="34" height="34" as="geometry"/></mxCell><mxCell id="c53" value="&amp;hellip;" style="text;html=1;whiteSpace=wrap;fontSize=16;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="588" y="100" width="34" height="34" as="geometry"/></mxCell><mxCell id="c54" value="f&lt;sub&gt;1&lt;/sub&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="628" y="176" width="42" height="34" as="geometry"/></mxCell><mxCell id="c55" value="&amp;eta;&lt;sub&gt;c&lt;/sub&gt;" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="632" y="104" width="34" height="28" as="geometry"/></mxCell><mxCell id="c56" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c55" target="c54"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c57" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c47" target="c55"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c58" value="f&lt;sub&gt;2&lt;/sub&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="672" y="176" width="42" height="34" as="geometry"/></mxCell><mxCell id="c59" value="&amp;eta;&lt;sub&gt;c&lt;/sub&gt;" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="676" y="104" width="34" height="28" as="geometry"/></mxCell><mxCell id="c60" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c59" target="c58"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c61" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c55" target="c59"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c62" value="id" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="716" y="176" width="30" height="34" as="geometry"/></mxCell><mxCell id="c63" value="R&lt;sub&gt;|R|&lt;/sub&gt;" style="text;html=1;whiteSpace=wrap;fontSize=14;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="628" y="212" width="118" height="24" as="geometry"/></mxCell><mxCell id="c64" value="voters' ballots, fields in order" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="20" y="238" width="380" height="22" as="geometry"/></mxCell><mxCell id="c65" value="refreshed ballots, slots ascending" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="420" y="238" width="340" height="22" as="geometry"/></mxCell><mxCell id="c66" value="Each active ciphertext consumes the next scalar &amp;eta;&lt;sub&gt;c&lt;/sub&gt;; inactive fields (id) must be the identity and consume none (example with n&lt;sub&gt;f&lt;/sub&gt; = 2)." style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="20" y="262" width="740" height="40" as="geometry"/></mxCell><mxCell id="c67" value="&lt;b&gt;re-encryption&lt;/b&gt; with &amp;eta;&lt;sub&gt;c&lt;/sub&gt;:&lt;br&gt;(C&lt;sub&gt;1&lt;/sub&gt;, C&lt;sub&gt;2&lt;/sub&gt;) &amp;rarr; (C&lt;sub&gt;1&lt;/sub&gt; + &amp;eta;&lt;sub&gt;c&lt;/sub&gt;&amp;middot;G,&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;C&lt;sub&gt;2&lt;/sub&gt; + &amp;eta;&lt;sub&gt;c&lt;/sub&gt;&amp;middot;encryptionKey)&lt;br&gt;&lt;font style='font-size:12px'&gt;each chain position is consumed once&lt;/font&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="16" y="308" width="360" height="96" as="geometry"/></mxCell><mxCell id="c68" value="&lt;b&gt;results accumulation&lt;/b&gt;&lt;br&gt;A&lt;sup&gt;new&lt;/sup&gt; = A&lt;sup&gt;old&lt;/sup&gt; + &amp;Sigma; B'&lt;sub&gt;i&lt;/sub&gt; &amp;minus; &amp;Sigma; B&lt;sup&gt;old&lt;/sup&gt;&lt;sub&gt;i&lt;/sub&gt;&lt;br&gt;+ &amp;Sigma; (R'&lt;sub&gt;j&lt;/sub&gt; &amp;minus; R&lt;sub&gt;j&lt;/sub&gt;)&lt;br&gt;&lt;font style='font-size:12px'&gt;refreshes add encryptions of zero&lt;/font&gt;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=13;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="394" y="308" width="370" height="96" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>
M v2/sections/analysis.tex → v2/sections/analysis.tex

@@ -3,43 +3,43 @@

\subsection{Security discussion} \label{sec:analysis:security} -Based on the above principles, the protocol provides a number of concrete security properties that ensure the integrity, confidentiality, and verifiability of voting events. In what follows we discuss how \davinci achieves these properties, with particular emphasis on integrity, receipt-freeness, and ballot privacy, before turning to data availability, liveness, end-to-end verifiability, and robustness against quantum threats. Table~\ref{tab:trust} summarizes the parties that each property relies on. +Based on the above principles, the protocol provides a number of concrete security properties that ensure the integrity, confidentiality, and verifiability of voting events. In what follows we discuss how \davinci achieves these properties, with particular emphasis on integrity, ballot secrecy, and the obfuscation of revotes, before turning to data availability, liveness, verifiability, and robustness against quantum threats. The discussion is informal: it states what each mechanism enforces and under which assumptions, but it does not prove the properties in a formal model, such as a receipt-freeness or coercion-resistance game. Table~\ref{tab:trust} summarizes the assumptions that each property relies on. -\paragraph{Integrity and soundness.} The integrity of the election rests on the soundness of the proofs rather than on trust in any operator: the knowledge soundness of Groth16 for ballot proofs, and the soundness of the ZisK \acp{STARK} and of the PlonK wrapper for the batch and results programs. No party (including a malicious sequencer) can advance the state from $S_i$ to $S_{i+1}$ without supplying a valid batch proof, since the registry rejects any update not accompanied by such a proof. Because a \ac{zkVM} proves the execution of a program, the statement that is proven is exactly what the program checks, and the registry pins the program through its verification key: an update proven by any other program, under any other setup, or with a failed verdict ($\okflag \ne 1$) is rejected. The registry also binds every proof to the election: the old root must be the latest root, the census root must be one the election accepts, the count of occupied slots must match, and the blob openings must match the published blobs. Consequently, every counted ballot originates from an eligible census member and every accumulator update follows the protocol rules. Double voting is prevented \emph{without} nullifiers: each voter is bound to a unique, census-authenticated slot in the state tree, so a second submission by the same voter overwrites their previous ballot at that slot rather than adding a new contribution to the tally. Vote identifiers, by contrast, are derived per ballot and therefore differ across submissions, which is precisely what enables individual verifiability without linking a voter to their ciphertext. The guest programs are built reproducibly, so anyone can recompile the published source, recompute the program keys, and compare them with the keys pinned by the registry. +\paragraph{Integrity and soundness.} The integrity of the election rests on the soundness of the proofs rather than on trust in any operator: the knowledge soundness of Groth16 for ballot proofs, and the soundness of the ZisK \acp{STARK} and of the PlonK wrapper for the batch and results programs. No party (including a malicious sequencer) can advance the state from $S_i$ to $S_{i+1}$ without supplying a valid batch proof, since the registry rejects any update not accompanied by such a proof. Because a \ac{zkVM} proves the execution of a program, the statement that is proven is exactly what the program checks, and the registry pins the program through its verification key: an update proven by any other program, under any other setup, or with a failed verdict ($\okflag \ne 1$) is rejected. The registry also binds every proof to the election: the old root must be the latest root, the census root must be one the election accepts, the count of occupied slots must match, and the blob openings must match the published blobs. Consequently, every counted ballot carries a valid membership proof in a census the election accepts, and every accumulator update follows the protocol rules. Double voting is prevented \emph{without} nullifiers: each voter is bound to a slot in the state tree, so a second submission by the same voter overwrites their previous ballot at that slot rather than adding a new contribution to the tally. This one-slot-per-voter semantics relies on invariants of the census that the batch program checks only within a batch: in a Merkle census, no two members may share a slot; in a \ac{CSP} census, the \ac{CSP} must assign one stable index to each voter and distinct indexes to distinct voters (see Section~\ref{sec:vocdoni-protocol:census}). Integrity is therefore relative to the configured census and to these invariants; whether the census itself lists the right people and weights is outside the protocol. Vote identifiers, by contrast, are derived per ballot and therefore differ across submissions, which is precisely what enables individual verifiability without linking a voter to their ciphertext. The guest programs are built reproducibly, so anyone can recompile the published source, recompute the program keys, and compare them with the keys pinned by the registry. -\paragraph{Receipt-freeness.} Receipt-freeness prevents voters from proving to others how they voted, thereby mitigating coercion and vote-buying. In \davinci this is achieved through re-encryption, ballot overwrites, and randomized state updates. +\paragraph{Obfuscation of revotes.} \Davinci aims to prevent voters from proving to others how they voted, which mitigates coercion and vote-buying, by combining re-encryption, ballot overwrites, and randomized state updates. \begin{itemize} - \item \textit{Ballot re-encryption}: since our encryption scheme supports re-randomization, that is, a ciphertext can be refreshed with new randomness without changing the underlying message, sequencers re-encrypt the received ballots before committing them to the state Merkle tree. Under the decisional Diffie--Hellman (DDH) assumption on BabyJubjub, a re-randomized ciphertext is indistinguishable from a fresh encryption, so linking a submitted ciphertext to its stored counterpart is as hard as solving DDH. The re-encryption scalars are derived inside the batch program from a single secret seed per batch and the old state root, and every scalar is consumed exactly once, so no scalar can repeat within or across batches. - \item \textit{Handling receipts}: because ballots are re-randomized, voters cannot generate a receipt by revealing the randomness $k$ used in encryption, since the ciphertext on-chain no longer corresponds to their $k$. This blocks vote-selling and coercion. - \item \textit{Overwrites}: voters may cast a new ballot at any time, replacing their earlier submission. This ensures that even if coercion occurs, a voter can subsequently change their vote as many times as desired, preserving their ability to express their true choice. When an overwrite occurs, the batch subtracts the previous ballot and adds the new one to the results accumulator, and re-encrypts the updated ballot before storing it in the state tree. - \item \textit{Concealing overwrites (silent revoting)}: to prevent observers from distinguishing overwrites from routine re-randomizations, every batch also re-encrypts a uniformly random sample of the occupied slots it does not write, with a size that the batch program enforces, $\min(2048, \max(16, 2w, n))$ slots when available. The blobs list every updated slot in a single sorted list, so an overwrite is indistinguishable from a refresh. Sequencers keep a history of the batches that carried each vote, so that a vote sealed again after a lost race or a failed settlement refreshes every slot of its earlier batches and cannot be singled out by comparing them. + \item \textit{Ballot re-encryption}: since our encryption scheme supports re-randomization, that is, a ciphertext can be refreshed with new randomness without changing the underlying message, sequencers re-encrypt the received ballots before committing them to the state Merkle tree. Under the decisional Diffie--Hellman (DDH) assumption on BabyJubjub, a re-randomized ciphertext is indistinguishable from a fresh encryption of the same message, so the stored ciphertext cannot be matched with the submitted one by its contents. This does not hide which slot was written: with a Merkle census, slots are a public function of addresses. The re-encryption scalars are derived inside the batch program from a single secret seed per batch and the old state root, and every active ciphertext consumes the next position of the scalar chain, so no position is ever used twice; distinct positions yield equal scalars only with negligible probability. + \item \textit{Handling receipts}: because ballots are re-randomized, a voter cannot use the randomness $k$ of their encryption as a receipt, since the ciphertext on-chain no longer corresponds to it. + \item \textit{Overwrites}: voters may cast a new ballot while the voting period is open, replacing their earlier submission. A coerced voter can therefore change their vote afterwards, provided that they can submit unobserved and that the new ballot settles before the grace window closes. When an overwrite occurs, the batch subtracts the previous ballot and adds the new one to the results accumulator, and re-encrypts the updated ballot before storing it in the state tree. + \item \textit{Concealing overwrites (silent revoting)}: to make overwrites hard to distinguish from routine re-randomizations, every batch also re-encrypts a sample of the occupied slots it does not write. The batch program enforces the size of the sample, at least $\min(\mathsf{target}(n, w), o - w)$ slots, with $\mathsf{target}(n, w) = \min(2048, \max(16, 2w, n))$ and $o$ the number of occupied slots, and the blobs list every updated slot in a single sorted list, so the published data does not mark which updates are overwrites. Sequencers keep a history of the batches that carried each vote, so that a vote sealed again after a lost race or a failed settlement refreshes every slot of its earlier batches that the sequencer has observed. \end{itemize} -Receipt-freeness holds against observers of the public data, under two conditions. First, the sequencer that builds a batch, and its prover, learn which slots of the batch are overwrites and which are refreshes, and must not reveal the seed or the refresh selection; a voter who fears coercion should overwrite through a sequencer they trust. Second, the first write to a slot is distinguishable, since refreshes only touch occupied slots, so participation is not hidden (see the privacy paragraph). A further, minor limitation is that re-encryption scalars are 256-bit SHA-256 digests reduced modulo the 254-bit order $s$ of the BN254 scalar field, which leaves them at statistical distance about $2^{-4.7}$ from uniform in $[0, s)$; after the implicit reduction modulo the subgroup order $t \approx s/8$, the scalars actually applied are at statistical distance about $2^{-7.6}$ from uniform. Removing this gap requires reducing a wider digest, and hence a new program key. +These mechanisms obscure revotes from observers of the public data, but the protection is conditional and partial. First, the batch program checks the size and the validity of the refresh sample, not that it was drawn uniformly or that the seed is unpredictable: the sealing sequencer and its prover, who also learn which updates are overwrites, must draw both from fresh randomness and keep them secret, and a voter who fears coercion should revote through a sequencer they trust. Second, public data still reveals participation (the first write to a slot is distinguishable, since refreshes only touch occupied slots), the number of overwrites of each batch, the set of updated slots, and the timing of batches; when few slots are occupied, the sample is small, and in the extreme cases where every occupied slot is overwritten ($w = o$, for instance a single occupied slot that is overwritten), the published data reveals the revotes directly. Third, the coverage history only includes batches that the sequencer observed: a batch of another sequencer that a reorganization removed before its blobs were fetched cannot be covered. Finally, re-encryption scalars are 256-bit SHA-256 digests reduced modulo the 254-bit order $s$ of the BN254 scalar field, which leaves them at statistical distance about $2^{-4.7}$ from uniform in $[0, s)$; after the implicit reduction modulo the subgroup order $t \approx s/8$, the scalars actually applied are at statistical distance about $2^{-7.6}$ from uniform. Removing this gap requires reducing a wider digest, and hence a new program key. We therefore claim that \davinci obscures revotes from outside observers under these conditions; we do not claim receipt-freeness or coercion resistance in a formal sense. -\paragraph{Privacy.} Ballots remain secret even though encrypted ballots are publicly stored and processed. Ballot secrecy is preserved through ElGamal encryption, which allows votes to be aggregated without decryption. When the encryption key is generated through a \ac{DKG} (or a council ceremony) and its secret counterpart is never reconstructed, no single party can decrypt individual ballots: the protocol only invokes threshold decryption on the final aggregate, never on each ballot separately. Under the assumption that at most $\theta-1$ of the $\nu$ \keywardens are compromised, the shared secret key cannot be reconstructed and no individual ballot ciphertext can be decrypted. A coalition of $\theta$ \keywardens, however, could decrypt every ballot published in the blobs, so the threshold must be chosen to reflect the trust placed in the committee; in the locked \ac{DKG} mode, the coalition would also need the organizer's secret. In the sequencer mode, the sequencer that holds the key can decrypt every ballot, which is why this mode is reserved for elections that accept that trust. Note that, while the content of a ballot stays hidden, the protocol does reveal whether a given voter has cast a vote, that is, turnout is public, but the choice is not. With a Merkle census, the slot of a voter is a public function of their address, so the participation of each census member can be read from the state. +\paragraph{Privacy.} Ballots remain secret even though encrypted ballots are publicly stored and processed. Ballot secrecy is preserved through ElGamal encryption, which allows votes to be aggregated without decryption, and it is claimed only beyond what the published tally and metadata reveal: in a small electorate, or when tallies of overlapping elections are combined, the tally itself may reveal individual choices. When the encryption key is generated through a \ac{DKG} or a council ceremony, no single party holds the secret key, and the protocol only requests the threshold decryption of the final aggregate, never of individual ballots. Under the assumption that fewer than $\theta$ of the $\nu$ \keywardens are compromised over the whole lifetime of the key, no individual ballot ciphertext can be decrypted. A coalition of $\theta$ \keywardens, however, could decrypt every ballot published in the blobs, so the threshold must be chosen to reflect the trust placed in the committee; in the locked \ac{DKG} mode, the coalition would also need the organizer's secret. On-chain decryption gates, such as the organizer's reveal or the opening date of a council, constrain the contracts and honest members, not a colluding threshold. In the council mode, all the processes bound to a ceremony share its key and form a single privacy domain: their confidentiality additionally requires that every adapter the ceremony allows only requests the decryption of authenticated final accumulators, that ballots are encrypted with fresh randomness and proven valid, and that the setups of the council's proofs are sound~\cite{davinci-council}. Elections that need strict isolation should use separate ceremonies. In the sequencer mode, the sequencer that holds the key can decrypt every ballot, which is why this mode is reserved for elections that accept that trust. Note that, while the content of a ballot stays hidden, the protocol does reveal whether a given voter has cast a vote, that is, turnout is public, but the choice is not. With a Merkle census, the slot of a voter is a public function of their address, so the participation of each census member can be read from the state; a sequencer additionally learns the address and the submission time of every ballot it receives. In a \ac{CSP} census, the \ac{CSP} is trusted for eligibility: it can issue credentials to anyone, and it knows which index belongs to which voter. -\paragraph{Data availability.} Ballots and state updates are published in Ethereum blobs, and the registry checks, at settlement, that the published blobs open to the values the batch program derived from the verified state. A sequencer therefore cannot settle a transition whose data it withholds. In L1-blob mode, the guarantee is the same: the blobs live on Ethereum, and the registry on the rollup verifies their inclusion in the Ethereum chain from block headers anchored at the rollup's view of Ethereum, so it relies, in addition, on the rollup deriving its L1 origin correctly, an assumption the rollup itself already makes. Since blobs are pruned after about 18 days, long-term availability requires archival: every sequencer stores and serves the blobs of the transitions it has seen, and observers can rebuild any election from them, but a node that starts after the blobs have been pruned depends on such an archive. Since EIP-7594, only nodes that custody full blobs can serve them, so sequencers should rely on such nodes or on archivers. +\paragraph{Data availability.} Ballots and state updates are published in Ethereum blobs, and the registry checks, at settlement, that the published blobs open to the values the batch program derived from the verified state. A sequencer therefore cannot settle a transition whose data it withholds. In L1-blob mode, the guarantee is the same: the blobs live on Ethereum, and the registry on the rollup verifies their inclusion in the Ethereum chain from block headers anchored at the rollup's view of Ethereum, so it relies, in addition, on the rollup deriving its L1 origin correctly, an assumption the rollup itself already makes. Since blobs are pruned after about 18 days, long-term availability requires archival. The blob encoding allows any party holding a complete archive of an election's blobs to rebuild it, and every sequencer stores and serves the blobs of the transitions it has seen; the current node, however, does not yet bootstrap automatically from the archive of another node, so a node that starts after the blobs have been pruned needs its operator to provide an archival blob source. Since EIP-7594, only nodes that custody full blobs can serve them, so sequencers should rely on such nodes or on archivers. -\paragraph{Liveness and censorship resistance.} Sequencing is permissionless, so a voter whose ballot is ignored by one sequencer can submit it to another, and anyone can run a sequencer for any election. Settlement is a race in which the first valid transition wins; a sequencer that loses only wastes its own work. The grace window lets ballots received before the end of the voting period settle after it, and its extension is capped by Eq.~\eqref{eq:grace-end}, so the results cannot be delayed indefinitely. Once results are requested from the \keywardens, the process leaves the organizer's control and can no longer be canceled. The liveness of threshold decryption depends on the \keywardens: if more than $\nu - \theta$ members of the committee that holds an election's key become unavailable before the tally is decrypted, the results are lost, since keys are not reshared to later committees. In the sequencer mode, the results depend on the availability of the single key holder. +\paragraph{Liveness and censorship resistance.} Sequencing is permissionless, so a voter whose ballot is ignored by one sequencer can submit it to another, and anyone can run a sequencer for any election. This guarantees an alternative, not fair inclusion: settlement is a race in which the first valid transition wins, and a sequencer whose batches keep losing races to transitions that omit a ballot cannot force its inclusion. The grace window lets ballots received before the end of the voting period settle after it, and Eq.~\eqref{eq:grace-end} bounds how long transitions may keep settling; it does not guarantee that every admitted ballot settles. Inclusion requires enough proving and settlement capacity, fees, and timely transaction inclusion before the window closes; ballots still queued when it closes are discarded, and voters can detect this through the status of their vote identifiers. Once results are requested from the \keywardens, the process leaves the organizer's control and can no longer be canceled. Finalization depends on the key mode. In the \ac{DKG} and council modes, it requires that at least $\theta$ members of the committee holding the key take part; if more than $\nu - \theta$ of them become unavailable, the results are lost, since keys are not reshared to later committees. In the locked \ac{DKG} mode, it also requires the organizer to reveal its secret, and a council whose decryption is opened manually, without a fallback date, depends on its organizer to open it; in both cases, an absent organizer blocks the publication of the results indefinitely. In the sequencer mode, the results depend on the availability of the single key holder. -\paragraph{Quantum resistance.} Quantum computers threaten discrete-logarithm-based cryptography such as ECDSA and ElGamal, and pairing-based proof systems such as Groth16 and PlonK. The \acp{STARK} that prove the batch and results programs rely only on hash functions and are plausibly post-quantum, but their PlonK wrapper, the ballot proofs, the voters' signatures, and the encryption of ballots are not. For this reason, \davinci is designed in a modular way that would allow migration to post-quantum primitives in the longer term. Candidate replacements include lattice-based signature schemes such as CRYSTALS-Dilithium (ML-DSA) and Falcon, and the hash-based SPHINCS+ (SLH-DSA); lattice-based homomorphic encryption such as BGV or BFV; and the direct on-chain verification of \acp{STARK}. +\paragraph{Quantum resistance.} Quantum computers threaten discrete-logarithm-based cryptography such as ECDSA and ElGamal, and pairing-based proof systems such as Groth16 and PlonK. The \acp{STARK} that prove the batch and results programs are hash-based arguments, made non-interactive with the Fiat--Shamir transform, and are plausibly post-quantum, but their PlonK wrapper, the ballot proofs, the voters' signatures, and the encryption of ballots are not. For this reason, \davinci is designed in a modular way that would allow migration to post-quantum primitives in the longer term. Candidate replacements include lattice-based signature schemes such as CRYSTALS-Dilithium (ML-DSA) and Falcon, and the hash-based SPHINCS+ (SLH-DSA); lattice-based homomorphic encryption such as BGV or BFV; and the direct on-chain verification of \acp{STARK}. -\paragraph{End-to-end verifiability.} Voters can check that their own ballot was included correctly, while anyone can audit the entire process to verify the final tally. Every voter can check, with an inclusion proof of their vote identifier against a state root recorded on-chain, that their ballot was recorded as cast (individual verifiability). Additionally, any third party can replay every state transition from the published blobs, check that it reproduces the roots recorded on-chain, and verify the proofs, which confirms the results (universal verifiability) and that each counted ballot comes from a registered voter (eligibility verifiability). The protocol does not provide, by itself, a mechanism for a voter to verify that their device encrypted the intended choice (cast-as-intended verifiability); this property can be added by the client application, for instance with a second device that audits a ballot before it is cast. +\paragraph{Verifiability.} Voters can check that their own submissions were recorded, while anyone can audit the entire process to verify the final tally. Every voter can check, with an inclusion proof of their vote identifier against a state root recorded on-chain, that their submission was included in an accepted transition (individual verifiability, in the sense of recorded-as-cast). Since vote identifiers are never removed, this receipt persists after an overwrite, and it does not show by itself that the submission is the ballot that is finally counted; a voter who cast several ballots relies on the order in which they were settled, which the sequencer that receives them preserves. Additionally, any third party can replay every state transition from the published blobs, check that it reproduces the roots recorded on-chain, and verify the proofs, which confirms that the tally is the sum of the final ballots of the slots (universal verifiability) and that each counted ballot comes with a valid membership proof (eligibility verifiability). The protocol does not provide, by itself, a mechanism for a voter to verify that their device encrypted the intended choice (cast-as-intended verifiability); this property can be added by the client application, for instance with a second device that audits a ballot before it is cast. End-to-end verifiability in the usual sense requires such a mechanism in addition to the properties above. \begin{table}[h] \centering - \caption{Trust assumptions of the main properties.} + \caption{Assumptions of the main properties.} \label{tab:trust} \small - \begin{tabular}{p{0.25\textwidth} p{0.68\textwidth}} + \begin{tabular}{>{\raggedright\arraybackslash}p{0.22\textwidth} >{\raggedright\arraybackslash}p{0.71\textwidth}} \toprule \textbf{Property} & \textbf{Holds if} \\ \midrule - Integrity of the tally & The proof systems are sound, the pinned programs and circuits are correct, and the settlement chain executes the registry correctly. No sequencer, prover, or \keywarden is trusted. \\ - Ballot secrecy & Fewer than $\theta$ \keywardens collude (\ac{DKG} and council modes), or the key-holding sequencer is honest (sequencer mode); DDH holds on BabyJubjub. \\ - Receipt-freeness & As ballot secrecy, and the sequencer that seals an overwrite does not reveal its seed and refresh selection. \\ + Integrity of the tally & The proof systems are sound, the setups of the ballot circuit and of the PlonK wrapper are honest, the pinned programs and circuit are correct, and the settlement chain executes the registry correctly; the census is collision-free (Merkle) or the \ac{CSP} assigns stable, distinct indexes. No sequencer, prover, or \keywarden is trusted. \\ + Ballot secrecy & Beyond what the tally and metadata reveal: fewer than $\theta$ \keywardens are corrupted over the lifetime of the key (\ac{DKG} and council modes; in council mode, also the adapter and setup conditions above), or the key-holding sequencer is honest (sequencer mode); DDH holds on BabyJubjub; the voter's device is honest. \\ + Obfuscation of revotes & As ballot secrecy, and the sequencer and prover that seal an overwrite draw the seed and the refresh sample from fresh randomness and keep them secret; enough occupied slots exist to refresh; participation, overwrite counts, and timing remain public. \\ Data availability & Ethereum makes the blobs available at settlement; archivers retain them after pruning. L1-blob mode also relies on the rollup's L1 origin. \\ - Liveness & At least one honest sequencer serves the election; at least $\theta$ \keywardens are available for decryption (or the key-holding sequencer, in sequencer mode). \\ + Liveness & At least one honest sequencer with enough proving capacity and fees serves the election, and its transitions are included before the grace window closes; for finalization, at least $\theta$ \keywardens take part, the organizer reveals its secret (locked mode) or opens decryption (manual council without fallback), or the key-holding sequencer is available (sequencer mode). \\ \bottomrule \end{tabular} \end{table}

@@ -50,9 +50,9 @@

\Davinci is implemented as a modular, fully open-source system: the ballot circuit~\cite{davinci-circom}, the \ac{zkVM} programs~\cite{davinci-zkvm}, the smart contracts~\cite{davinci-contracts}, the sequencer node and its client library~\cite{davinci-sequencer}, and the key-management systems~\cite{davinci-dkg,davinci-council} are all publicly available at \url{https://github.com/vocdoni}. Its components can be recombined or integrated with external services through adaptable interfaces, enabling redundancy and integration with third-party applications such as our voting-as-a-service APIs. \paragraph{Technological stack.} -The ballot circuit is implemented with Circom~\cite{belles2023circom} over BN254 and proven with Groth16~\cite{groth2016size} for its minimal proof size and cheap verification; its ElGamal operations run over BabyJubjub, whose base field matches the BN254 scalar field. The batch and results programs are \texttt{no\_std} Rust programs compiled for the RISC-V target of ZisK~1.3.2 and proven by a GPU prover service, which wraps every proof in PlonK over BN254 for on-chain verification. Inside the programs, SHA-256, Keccak, BN254 pairings and scalar multiplications, SECP256K1 key recovery, BabyJubjub point additions, and 256-bit modular arithmetic run on ZisK precompiles; Poseidon is implemented in software over the BN254 field. The smart contracts are written in Solidity, and the sequencer node and its client library in Rust. +The ballot circuit is implemented with Circom~\cite{belles2023circom} over BN254 and proven with Groth16~\cite{groth2016size} for its minimal proof size and cheap verification; its ElGamal operations run over BabyJubjub, whose base field matches the BN254 scalar field. The batch and results programs are \texttt{no\_std} Rust programs compiled for the RISC-V target of ZisK~1.3.2-alpha and proven by a GPU prover service, which wraps every proof in PlonK over BN254 for on-chain verification. Inside the programs, SHA-256, Keccak, BN254 pairings and scalar multiplications, SECP256K1 key recovery, BabyJubjub point additions, and 256-bit modular arithmetic run on ZisK precompiles; Poseidon is implemented in software over the BN254 field. The smart contracts are written in Solidity, and the sequencer node and its client library in Rust. -\paragraph{Circuit and program sizes.} The ballot circuit has $64{,}816$ constraints for 16 fields; its proving key is 35.5~MiB and its witness generator 6.5~MiB, which a browser downloads before proving. A \ac{zkVM} program has no fixed size: its cost is the number of executed steps, which grows with the batch. A batch program execution with 512 votes and 512 refreshes takes about $2.3 \cdot 10^8$ steps at $n_f = 2$ and $4.0 \cdot 10^8$ steps at $n_f = 16$. The program accepts batches of up to 1024 votes, 2048 refreshes, and 32 blobs; sequencers currently seal at most 512 votes per batch. +\paragraph{Circuit and program sizes.} The ballot circuit has $64{,}816$ constraints for 16 fields; its proving key is 35.5~MiB and its witness generator 6.5~MiB, which a browser downloads before proving. The execution cost of the batch program depends on its input and grows with the batch. A batch program execution with 512 votes and 512 refreshes takes about $2.3 \cdot 10^8$ steps at $n_f = 2$ and $4.0 \cdot 10^8$ steps at $n_f = 16$. The program accepts batches of up to 1024 votes, 2048 refreshes, and 32 blobs; sequencers currently seal at most 512 votes per batch. \paragraph{Trusted setup.} Groth16 relies on a circuit-specific common reference string (\ac{CRS}, see Appendix~\ref{sec:cryptographic-primitives:zkp}). The parameters of the ballot circuit must be generated through an \ac{MPC} ceremony in two phases: a universal powers-of-tau phase, for which a public ceremony of $2^{18}$ constraints can be reused, followed by a per-circuit phase that binds the parameters to the constraint system and introduces the secret $\delta$. As long as at least one participant in each phase discards their secret contribution, the resulting \ac{CRS} is secure. The \ac{zkVM} \acp{STARK} need no setup, and their PlonK wrapper uses the universal setup distributed with the ZisK release. The circuits of the \ac{DKG} network and of the council have setups of their own.

@@ -60,7 +60,7 @@ \paragraph{Release pins.} A release of the protocol is identified by the values in Table~\ref{tab:pins}, which the registry stores as immutable parameters and sequencers check at startup. A sequencer refuses a registry, a verifier contract, or a prover whose values differ.

\begin{table}[h] \centering - \caption{Release pins of the protocol version described in this paper (davinci-zkvm v0.3.0, ZisK 1.3.2).} + \caption{Release pins of the protocol version described in this paper (davinci-zkvm v0.3.0, ZisK 1.3.2-alpha).} \label{tab:pins} \small \begin{tabular}{p{0.27\textwidth} p{0.66\textwidth}}

@@ -76,16 +76,37 @@ \bottomrule

\end{tabular} \end{table} -\paragraph{Implementation status.} The current implementation includes the ballot circuit, the batch and results programs, the smart contracts, the sequencer node, and both key-management systems, and it runs in production on OP Mainnet in L1-blob mode, with all four key modes enabled. The registry is deployed at \texttt{0x64d41aD49009204E8dAcc153Fc98a5Ee14cB6916}, with a default grace window of 300~s (organizers may choose between 240~s and 600~s), a maximum extension of 1800~s, and a minimum notice of 60~s. The council circuits currently use a development setup produced by a single party, which is acceptable for a beta but must be replaced by a multi-party ceremony. No complete independent security audit of the system has been published yet. +\paragraph{Normative documents.} This paper describes the protocol at the level needed to understand, analyze, and implement it, and refers to the documents of Table~\ref{tab:normative} for byte-level details such as input frames, serialization, and contract interfaces. Where this paper and one of these documents disagree, the document of the pinned release prevails. + +\begin{table}[h] + \centering + \caption{Byte-level specifications of the release described in this paper.} + \label{tab:normative} + \small + \begin{tabular}{>{\raggedright\arraybackslash}p{0.27\textwidth} >{\raggedright\arraybackslash}p{0.66\textwidth}} + \toprule + \textbf{Component} & \textbf{Document} \\ + \midrule + Batch program & \texttt{circuit/CIRCUIT.md} of davinci-zkvm v0.3.0~\cite{davinci-zkvm} \\ + Results program & \texttt{circuit-results/RESULTS.md} of davinci-zkvm v0.3.0 \\ + Ballot circuit & \texttt{circuits/} of davinci-circom, commit \texttt{a39a9f9}, with the circomlib Poseidon parameters~\cite{davinci-circom} \\ + Contracts and genesis & \texttt{IProcessRegistry.sol}, \texttt{DAVINCITypes.sol}, \texttt{GenesisLib.sol}, and \texttt{L1BlobVerifier.sol} of davinci-contracts v0.0.51~\cite{davinci-contracts} \\ + Sequencer API and lifecycle & \texttt{docs/api.md} and \texttt{docs/lifecycle.md} of davinci-sequencer v0.6.0~\cite{davinci-sequencer} \\ + Key management & \texttt{docs/protocol.md} of davinci-dkg v0.11.0~\cite{davinci-dkg} and of davinci-dkg-council v0.3.0~\cite{davinci-council} \\ + \bottomrule + \end{tabular} +\end{table} + +\paragraph{Implementation status.} The current implementation includes the ballot circuit, the batch and results programs, the smart contracts, the sequencer node, and both key-management systems, and it runs in production on OP Mainnet in L1-blob mode, with all four key modes enabled. The registry is deployed at \texttt{0x64d41aD49009204E8dAcc153Fc98a5Ee14cB6916}, with a default grace window of 300~s (organizers may choose between 240~s and 600~s), a maximum extension of 1800~s, and a minimum notice of 60~s. The council circuits currently use a development setup produced by a single party, so the soundness of the council's proofs relies on that party having discarded its trapdoor until a multi-party ceremony replaces the setup. No complete independent security audit of the system has been published yet. \subsection{Performance evaluation} \label{sec:analysis:performance-evaluation} We evaluate \davinci along four axes: voter-side proving, sequencer proving, on-chain verification, and data availability, together with the end-to-end throughput of the system. Unless stated otherwise, sequencer measurements use one NVIDIA RTX 5090 GPU (32~GB) on a host with an AMD Ryzen 9 9950X3D CPU. -\paragraph{Voter proving.} A ballot proof is generated with snarkjs; natively, one 16-core CPU produces about six proofs per second, and a single proof takes about $0.16$~s. In a browser, proving is slower and is dominated by the download of the proving artifacts, but it requires no specialized hardware and remains within the latency a voter tolerates at casting time. +\paragraph{Voter proving.} A ballot proof is generated from the published Groth16 artifacts of the ballot circuit, either in a browser with snarkjs or natively. With the Rust prover of the client library (arkworks), one 16-core CPU produced 8192 ballot proofs in 1326~s, running several proofs in parallel, that is, about six proofs per second and 0.16~s of machine time per proof. We have not measured the latency of browser proving for this version of the circuit; it requires downloading the 35.5~MiB proving key and the 6.5~MiB witness generator, which can be cached across ballots. -\paragraph{Sequencer proving.} Table~\ref{tab:proving} and Fig.~\ref{fig:proving-time} report the time to prove one batch, including witness generation, the \ac{STARK} proof, its recursion, and the PlonK wrapper. The \emph{first} batch of an election has nothing to refresh; a \emph{steady} batch refreshes as many slots as it writes, which is the regime that determines throughput. A batch of two votes takes about $15.5$~s, mostly the fixed cost of recursion and of the PlonK wrapper, and each refresh adds 13--16~ms at $n_f = 2$ and 40--50~ms at $n_f = 16$, the upper values at the largest batches. Throughput peaks around 512 votes per batch at $n_f = 2$ and 256 at $n_f = 16$; beyond that, the batch size is bounded by the host memory of the prover (about 54~GB for a steady batch of 1024 votes), not by the GPU. The proof is 768 bytes, plus 512 bytes of public values, at every batch size. These figures were measured on ZisK~1.3.0, the predecessor of the release in Table~\ref{tab:pins}, with the same batch program logic. +\paragraph{Sequencer proving.} Table~\ref{tab:proving} and Fig.~\ref{fig:proving-time} report the time to prove one batch, including witness generation, the \ac{STARK} proof, its recursion, and the PlonK wrapper. The \emph{first} batch of an election has nothing to refresh; a \emph{steady} batch of $n$ new votes refreshes $n$ slots, the regime that determines throughput for fresh votes (a batch of overwrites refreshes up to twice as many slots as it writes, and a re-sealed batch more). A batch of two votes takes about $15.5$~s, mostly the fixed cost of recursion and of the PlonK wrapper, and each refresh adds 13--16~ms at $n_f = 2$ and 40--50~ms at $n_f = 16$, the upper values at the largest batches. Throughput peaks around 512 votes per batch at $n_f = 2$ and 256 at $n_f = 16$; beyond that, the batch size is bounded by the host memory of the prover (about 54~GB for a steady batch of 1024 votes), not by the GPU. The proof is 768 bytes, plus 512 bytes of public values, at every batch size. These figures were measured on ZisK~1.3.0-alpha, the predecessor of the release in Table~\ref{tab:pins}, with the same batch program logic~\cite{davinci-zkvm}. \begin{table}[h] \centering

@@ -114,10 +135,10 @@ \caption{Proving time of a steady batch (votes plus as many refreshes) and the resulting proving throughput, on one RTX 5090.}

\label{fig:proving-time} \end{figure} -\paragraph{End-to-end throughput.} With two provers, each serving one sequencer that runs two elections of 2048 voters at $n_f = 2$ in batches of 512, the system proved and settled 8192 votes in $678.7$~s, a sustained throughput of $12.07$ votes per second ($724$ per minute), on a local chain with one-second blocks. Each prover was busy for the whole run, so throughput scales with the number of provers: one RTX 5090 settles about six votes per second at $n_f = 2$. +\paragraph{End-to-end throughput.} With two provers, each serving one sequencer that runs two elections of 2048 voters at $n_f = 2$ in batches of 512, the system proved and settled 8192 votes of four independent elections in $678.7$~s, a sustained throughput of $12.07$ votes per second ($724$ per minute), on a local chain with one-second blocks and without competing sequencers. Each prover was busy for the whole run, so aggregate throughput scales with the number of provers serving independent elections: one RTX 5090 settles about six votes per second at $n_f = 2$. The transitions of a single election are sequential, since each starts from the root left by the previous one, so more provers do not speed up one election beyond the rate at which its batches can be proven one after another. -\paragraph{On-chain verification.} Thanks to the succinctness of PlonK, verifying a batch proof costs an essentially constant amount of gas, independent of the number of ballots in the batch; the cost of a settlement grows only with the number of blobs, by one point evaluation each. In blob mode, measured with the same contracts on Gnosis Chain (a chain with native blob transactions, on which \davinci was deployed before OP Mainnet), a settlement with one blob costs 0.40--0.44M gas and one with two blobs 0.46--0.50M gas. On OP Mainnet in L1-blob mode, verifying the L1 proof with three Ethereum headers costs 430K--460K gas, and a whole settlement 800K--860K gas. +\paragraph{On-chain verification.} Thanks to the succinctness of PlonK, verifying a batch proof costs an essentially constant amount of gas, independent of the number of ballots in the batch; the cost of a settlement grows with the number of blobs, by one point evaluation each, and, in L1-blob mode, with the number of Ethereum headers and transaction proofs it carries. In blob mode, measured with the same contracts on Gnosis Chain (a chain with native blob transactions, on which \davinci was deployed before OP Mainnet), a settlement with one blob costs 0.40--0.44M gas and one with two blobs 0.46--0.50M gas. On OP Mainnet in L1-blob mode, verifying the L1 proof with three Ethereum headers costs 430K--460K gas, and a whole settlement 800K--860K gas. -\paragraph{Data availability.} \Davinci publishes the data needed to reconstruct each state transition through EIP-4844 blobs. Compared with calldata, blobs substantially reduce data-availability costs by separating large protocol data from permanent Ethereum state. A blob holds 4096 cells; a steady batch needs $1 + \lceil 3n/4 \rceil + 4 n_f n$ cells for $n$ new votes and $n$ refreshes, so a batch of 128 votes at $n_f = 2$ fits in a single 128~KiB blob, while 512 votes at $n_f = 16$ need nine. In the measurements on OP Mainnet in L1-blob mode, in October 2026, posting the blobs of a batch cost 1.9--3.7~$\mu$ETH on Ethereum and settling it 0.04--0.05~$\mu$ETH on OP Mainnet, and batches settled 85--115~s after being sealed, a delay dominated by the time the rollup takes to adopt a new Ethereum block as its L1 origin.\\ +\paragraph{Data availability.} \Davinci publishes the data needed to reconstruct each state transition through EIP-4844 blobs. Compared with calldata, blobs substantially reduce data-availability costs by separating large protocol data from permanent Ethereum state. A blob holds 4096 cells; a steady batch needs $1 + \lceil 3n/4 \rceil + 4 n_f n$ cells for $n$ new votes and $n$ refreshes, so a batch of 128 votes at $n_f = 2$ fits in a single 128~KiB blob, while 512 votes at $n_f = 16$ need nine. In the measurements on OP Mainnet in L1-blob mode, in October 2026, posting the blobs of a batch cost 1.9--3.7~$\mu$ETH on Ethereum and settling it 0.04--0.05~$\mu$ETH on OP Mainnet, and each settled batch landed 85--115~s after being sealed, a delay dominated by the time the rollup takes to adopt a new Ethereum block as its L1 origin. These measurements used an earlier registry with a 150~s grace floor, under which some batches of 128 and 256 votes at $n_f = 16$ were split in two, so that the whole case finished 200--230~s after its first seal; the current registry's 240~s floor was chosen to let such a batch settle at once.\\ Together, these results indicate that \davinci scales to large elections at predictable settlement costs and practical proving times. Since proving dominates and parallelizes across provers and elections, throughput grows with the proving capacity of the sequencers, while the settlement chain only verifies one constant-size proof per batch.
M v2/sections/appendix.tex → v2/sections/appendix.tex

@@ -158,7 +158,7 @@

\subsection{Encryption scheme} \label{sec:cryptographic-primitives:encryption} -To preserve ballot secrecy while enabling tallying, \davinci employs a threshold variant of the ElGamal cryptosystem instantiated over the BabyJubjub curve~\cite{sutikno1998implementation}. This scheme offers two properties crucial for the protocol: \emph{additive homomorphism}, which allows the aggregation of encrypted votes without decryption, and \emph{re-encryption}, which enables ciphertext randomization without altering the underlying plaintext. Together, these properties allow sequencers to tally votes while preventing voters from producing receipts that could be used for coercion or vote selling. The corresponding public key is generated collectively by the \keywardens\ via the distributed key generation protocol of Section~\ref{sec:cryptographic-primitives:dkg}, ensuring that no single entity can decrypt ballots unilaterally, or, in the sequencer key mode, by a single sequencer. +To preserve ballot secrecy while enabling tallying, \davinci employs a threshold variant of the ElGamal cryptosystem instantiated over the BabyJubjub curve~\cite{sutikno1998implementation}. This scheme offers two properties crucial for the protocol: \emph{additive homomorphism}, which allows the aggregation of encrypted votes without decryption, and \emph{re-encryption}, which enables ciphertext randomization without altering the underlying plaintext. Together, these properties allow sequencers to tally votes while making it harder for voters to produce receipts that could be used for coercion or vote selling. The corresponding public key is generated collectively by the \keywardens\ via the distributed key generation protocol of Section~\ref{sec:cryptographic-primitives:dkg}, ensuring that no single entity can decrypt ballots unilaterally, or, in the sequencer key mode, by a single sequencer. \paragraph{Encryption and decryption.} Given a message $m$ and randomness $k$, the ElGamal encryption algorithm maps $m$ into a group element $M$ of $\BJ{\G}$ and outputs a ciphertext as follows. In \davinci, $k$ is an element of $\F_s$ used as a scalar, which the group arithmetic implicitly reduces modulo $t$.

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

\end{minipage} \end{mdframed} -In the protocol, re-encryption is applied not only to newly submitted ballots but also to ballots already stored in the state tree. By refreshing the randomness of both new and existing ciphertexts, sequencers ensure that it is indistinguishable whether a ballot has been overwritten or merely re-randomized. This mechanism is essential for receipt-freeness: voters cannot produce a verifiable receipt of their choice, and adversaries cannot detect or prove whether a particular vote has been replaced (see Section~\ref{sec:analysis}). In the batch program, the randomness of each re-encryption is a scalar of the chain of Section~\ref{sec:vocdoni-protocol:circuits:batch}, a SHA-256 output reduced modulo $s$. +In the protocol, re-encryption is applied not only to newly submitted ballots but also to ballots already stored in the state tree. By refreshing the randomness of both new and existing ciphertexts, sequencers make it hard for an outside observer to tell whether a ballot has been overwritten or merely re-randomized, which is the basis of silent revoting; Section~\ref{sec:analysis:security} discusses the conditions and limits of this protection. In the batch program, the randomness of each re-encryption is a scalar of the chain of Section~\ref{sec:vocdoni-protocol:circuits:batch}, a SHA-256 output reduced modulo $s$. \paragraph{Proof of correct decryption.} To publish a decryption without revealing the secret key, the key holder proves that the decrypted point is consistent with the public key using a Chaum--Pedersen proof of equality of discrete logarithms~\cite{chaum1992wallet}, made non-interactive with the Fiat--Shamir transform~\cite{fiat1986prove}. For a ciphertext $(C_1, C_2)$ and a claimed message $m$, let $D = C_2 - m \cdot \BJ{G}$; the statement is that $\log_{\BJ{G}} \pk = \log_{C_1} D$, which holds exactly when $m$ is the decryption of the ciphertext under $\sk$. \begin{mdframed}

@@ -245,7 +245,7 @@

\subsection{Distributed key generation scheme} \label{sec:cryptographic-primitives:dkg} -To ensure that no single entity controls the decryption key, \davinci employs a \ac{DKG} protocol to jointly derive the threshold ElGamal encryption key pair used for ballot encryption. Participants who contribute to the ceremony are called \emph{\keywardens}. The outcome is a collective public key ($\epk$) that is published on-chain and used by voters to encrypt their ballots, while the corresponding private key is secret-shared among the \keywardens\ so that only a threshold $\theta$ out of $\nu$ of them can later collaborate to decrypt the tally. Unlike classical \ac{DKG} protocols in which shares are exchanged in the clear, our construction distributes encrypted shares together with \ac{ZK-SNARK} proofs of correctness, so that the key-management smart contracts can verify each contribution without learning any of the underlying secrets. We use the non-interactive distributed key generation protocol of~\cite{kampa2026dkg}, in which each dealer publishes a Feldman verifiable secret sharing~\cite{feldman1987practical} of its contribution, with every share encrypted to its recipient and a Groth16 proof that the dealing is consistent, and we refer the reader to that work for the full construction and its security analysis. The permissionless \ac{DKG} network deals sixteen independent keys per run, so that one run serves sixteen elections, and the invite-only council deals a single key per ceremony; both decrypt by collecting $\theta$ partial decryptions $D_i = \mathsf{sh}_i \cdot C_1$, each with a proof of consistency with the committed share $\mathsf{sh}_i$, and combining them by Lagrange interpolation in the exponent. +To ensure that no single entity controls the decryption key, \davinci employs a \ac{DKG} protocol to jointly derive the threshold ElGamal encryption key pair used for ballot encryption. Participants who contribute to the ceremony are called \emph{\keywardens}. The outcome is a collective public key ($\epk$) that is published on-chain and used by voters to encrypt their ballots, while the corresponding private key is secret-shared among the \keywardens\ so that only a threshold $\theta$ out of $\nu$ of them can later collaborate to decrypt the tally. Our construction publishes encrypted dealings together with publicly verifiable \ac{ZK-SNARK} proofs of their correctness, so that the key-management smart contracts can verify each contribution without learning any of the underlying shares. We use the non-interactive distributed key generation protocol of~\cite{kampa2026dkg}, in which each dealer publishes a Feldman verifiable secret sharing~\cite{feldman1987practical} of its contribution, with every share encrypted to its recipient and a Groth16 proof that the dealing is consistent, and we refer the reader to that work for the full construction and its security analysis. The permissionless \ac{DKG} network deals sixteen independent keys per run, so that one run serves sixteen elections, and the invite-only council deals a single key per ceremony; both decrypt by collecting $\theta$ partial decryptions $D_i = \mathsf{sh}_i \cdot C_1$, each with a proof of consistency with the committed share $\mathsf{sh}_i$, and combining them by Lagrange interpolation in the exponent. \subsection{Zero-knowledge proof systems} \label{sec:cryptographic-primitives:zkp}

@@ -257,11 +257,11 @@ \begin{itemize}

\item $\hlset{\PProve}(\mathcal{C}, \witness, \publicinputs)$: outputs a proof $\pi$ that the prover knows a witness satisfying $\mathcal{C}$ for the given public inputs, using the circuit's proving key. \item $\hlset{\PVerify}(\pi, \publicinputs)$: returns $\true$ if and only if $\pi$ is valid for $\publicinputs$, using the circuit's verification key. \end{itemize} -The ballot circuit uses the Groth16 proof system~\cite{groth2016size} over BN254, chosen for its constant-size proofs and cheap verification. A Groth16 proof $(A, B, C) \in \BN{\G}_1 \times \BN{\G}_2 \times \BN{\G}_1$ for public inputs $x$ is valid if $e(A, B) = e(\alpha, \beta) \cdot e(L_x, \gamma) \cdot e(C, \delta)$, where $\alpha, \beta, \gamma, \delta$ belong to the verification key and $L_x$ is a linear combination of its elements with coefficients $x$. The batch program verifies $n$ such proofs at once by checking a single random linear combination of their equations~\cite{bellare1998batch}, with 128-bit coefficients derived by hashing all the proofs and public inputs; an invalid proof passes with probability at most $2^{-128}$. +The ballot circuit uses the Groth16 proof system~\cite{groth2016size} over BN254, chosen for its constant-size proofs and cheap verification. A Groth16 proof $(A, B, C) \in \BN{\G}_1 \times \BN{\G}_2 \times \BN{\G}_1$ for public inputs $x$ is valid if $e(A, B) = e(\alpha, \beta) \cdot e(L_x, \gamma) \cdot e(C, \delta)$, where $\alpha, \beta, \gamma, \delta$ belong to the verification key and $L_x$ is a linear combination of its elements with coefficients $x$. The batch program verifies $n$ such proofs at once by checking a single random linear combination of their equations~\cite{bellare1998batch}, with 128-bit coefficients derived by hashing all the proofs and public inputs; for a fixed transcript, an invalid proof passes with probability at most $2^{-127}$. \paragraph{Zero-knowledge virtual machines.} For a guest program $\Prog$, compiled to RISC-V, and a private input $\witness$, we write: \begin{itemize} \item $\hlset{\VMProve}(\Prog, \witness)$: executes $\Prog$ on $\witness$ and outputs the public values $\publicvalues$ it commits and a proof $\pi$ of the execution. \item $\hlset{\VMVerify}(\programvk, \publicvalues, \pi)$: returns $\true$ if and only if $\pi$ proves that the program identified by \programvk, executed on some input, committed $\publicvalues$. \end{itemize} -\Davinci uses the ZisK \ac{zkVM}~\cite{zisk}. The execution is proven with FRI-based \acp{STARK} over the Goldilocks field, aggregated recursively into a single VADCOP-final \ac{STARK}, and wrapped in a PlonK proof over BN254~\cite{gabizon2019plonk}, whose single public input is $\Sha(\programvk \conc \publicvalues \conc \rootc) \bmod s$. The program key \programvk is the root of a commitment to the compiled program, and \rootc identifies the setup of the VADCOP-final circuit. The \ac{STARK} part is transparent and relies only on collision-resistant hashing, while the PlonK wrapper relies on a universal structured reference string and on the hardness of discrete logarithms in the BN254 groups. Further details on the programs are provided in Section~\ref{sec:vocdoni-protocol:circuits} and a summary of the instantiations can be found in Fig.~\ref{fig:circuits-flow}. +\Davinci uses the ZisK \ac{zkVM}~\cite{zisk}. The execution is proven with FRI-based \acp{STARK} over the Goldilocks field, aggregated recursively into a single VADCOP-final \ac{STARK}, and wrapped in a PlonK proof over BN254~\cite{gabizon2019plonk}, whose single public input is $\Sha(\programvk \conc \publicvalues \conc \rootc) \bmod s$. The program key \programvk is the root of a commitment to the compiled program, and \rootc identifies the setup of the VADCOP-final circuit. The \ac{STARK} part is a transparent, hash-based argument made non-interactive with the Fiat--Shamir transform, whose soundness is argued in the random oracle model, while the PlonK wrapper relies on a universal structured reference string and on the hardness of discrete logarithms in the BN254 groups. Further details on the programs are provided in Section~\ref{sec:vocdoni-protocol:circuits} and a summary of the instantiations can be found in Fig.~\ref{fig:circuits-flow}.
M v2/sections/background.tex → v2/sections/background.tex

@@ -44,7 +44,7 @@ We focus on a specific type of proof system called zero-knowledge succinct non-interactive arguments of knowledge (\acsp{ZK-SNARK}).

Informally, while a \ac{ZK} proof convinces the verifier that a valid witness exists, an argument of knowledge additionally ensures that the prover actually knows such a witness, except with negligible probability. \acsp{ZK-SNARK} extend this notion with two crucial properties: they are non-interactive, requiring only a single message from prover to verifier, and succinct, meaning that proof size and verification cost remain small regardless of the size of the underlying statement. For instance, Groth16 proofs~\cite{groth2016size}, which rely on pairing-based cryptography over elliptic curves, are only about 200 bytes long and can be verified in a few milliseconds, and PlonK proofs~\cite{gabizon2019plonk} are less than a kilobyte long and are verified on the \ac{EVM} for a few hundred thousand gas. These properties make \acsp{ZK-SNARK} particularly well-suited for blockchain applications, where verification cost and data size are critical. In \davinci, voters generate Groth16 proofs to show that their encrypted ballots are correct, and the proofs of the sequencers reach the smart contracts as PlonK proofs (see the paragraph on \acp{zkVM} below). In essence, \acsp{ZK-SNARK} enable both voters and sequencers to produce compact proofs that can be checked on-chain, ensuring that all protocol rules are followed without requiring trust in any party. \paragraph{Trusted setup.} -A limitation of some \ac{ZK-SNARK} protocols is their reliance on a \ac{CRS} generated during a so-called trusted setup. The \ac{CRS} is built from random values that must not be known to either the prover or the verifier. To achieve this, the \ac{CRS} can be created by a trusted third party or, more robustly, via a secure \ac{MPC} protocol \cite{canetti2001universally}. In an MPC setup, it suffices that at least one participant discards their secret contribution to ensure the integrity of the whole ceremony. Groth16 requires a setup specific to each circuit, preceded by a universal \emph{powers of tau} phase, whereas PlonK requires only a universal setup that serves every circuit up to a given size. \acp{STARK} require no trusted setup at all. In \davinci, only the ballot circuit and the final PlonK wrapper of the \ac{zkVM} depend on a structured reference string (see Section~\ref{sec:analysis:implementation} and Appendix~\ref{sec:cryptographic-primitives:zkp}). +A limitation of some \ac{ZK-SNARK} protocols is their reliance on a \ac{CRS} generated during a so-called trusted setup. The \ac{CRS} is built from random values that must not be known to either the prover or the verifier. To achieve this, the \ac{CRS} can be created by a trusted third party or, more robustly, via a secure \ac{MPC} protocol \cite{canetti2001universally}. In an MPC setup, it suffices that at least one participant discards their secret contribution to ensure the integrity of the whole ceremony. Groth16 requires a setup specific to each circuit, preceded by a universal \emph{powers of tau} phase, whereas PlonK requires only a universal setup that serves every circuit up to a given size. \acp{STARK} require no trusted setup at all. In \davinci, the ballot circuit and the circuits of the key-management systems use Groth16 setups of their own, the final PlonK wrapper of the \ac{zkVM} uses a universal setup, and the \ac{KZG} commitments of the blobs reuse Ethereum's setup (see Section~\ref{sec:analysis:implementation} and Appendix~\ref{sec:cryptographic-primitives:zkp}). \paragraph{Arithmetic circuits.} In general, \acsp{ZK-SNARK} operate by proving the satisfiability of an arithmetic circuit. An arithmetic circuit (from now on also called circuit or \ac{ZK} circuit) is a directed acyclic graph where nodes represent addition or multiplication gates over a finite field. The inputs and outputs of the circuit correspond to the public inputs and private witnesses of the computation, while the intermediate wires carry intermediate values. Any deterministic computation, from verifying an encryption to checking Merkle proofs, can be compiled into an arithmetic circuit \cite{gennaro2013quadratic}.

@@ -53,4 +53,4 @@

\paragraph{Zero-knowledge virtual machines.} A \ac{zkVM} proves the correct execution of a program rather than the satisfiability of a hand-written circuit. The program, called the \emph{guest}, is written in a conventional language (Rust, in \davinci), compiled to a standard instruction set such as RISC-V~\cite{riscv2019}, and executed on an input supplied by the \emph{host}. The \ac{zkVM} proves that the guest ran to completion on some input and committed a given vector of \emph{public values}; the input itself remains private. Formally, for a program $\Prog$ we write $\VMProve(\Prog, \witness) \rightarrow (\publicvalues, \pi)$ and $\VMVerify(\programvk, \publicvalues, \pi) \rightarrow \{\true, \texttt{false}\}$, where \programvk is a verification key that identifies $\Prog$ (a commitment to its compiled code). A verifier that pins \programvk therefore pins the exact program whose execution is being proven, and any change to the program changes its key. -\Davinci uses the ZisK \ac{zkVM}~\cite{zisk}, which proves RISC-V executions with FRI-based \acp{STARK}~\cite{bensasson2018stark,bensasson2018fri} over the Goldilocks field and accelerates hashing (SHA-256, Keccak), modular arithmetic, and elliptic curve operations (SECP256K1, BN254, BabyJubjub) with precompiles. ZisK splits an execution into segments proven by specialized state machines, aggregates the resulting proofs recursively into a single \emph{VADCOP-final} \ac{STARK}, and, for on-chain verification, wraps that proof in a PlonK proof over BN254. The PlonK verifier takes a single public input, the SHA-256 digest of the program key, the public values, and the root of the VADCOP-final setup, \rootc, so one deployed verifier contract serves every program. \acp{STARK} are transparent and rely only on collision-resistant hashing; the PlonK wrapper is the only part of the sequencer's proof that depends on a structured reference string and on pairings over BN254. +\Davinci uses the ZisK \ac{zkVM}~\cite{zisk}, which proves RISC-V executions with FRI-based \acp{STARK}~\cite{bensasson2018stark,bensasson2018fri} over the Goldilocks field and accelerates hashing (SHA-256, Keccak), modular arithmetic, and elliptic curve operations (SECP256K1, BN254, BabyJubjub) with precompiles. ZisK splits an execution into segments proven by specialized state machines, aggregates the resulting proofs recursively into a single \emph{VADCOP-final} \ac{STARK}, and, for on-chain verification, wraps that proof in a PlonK proof over BN254. The PlonK verifier takes a single public input, the SHA-256 digest of the program key, the public values, and the root of the VADCOP-final setup, \rootc, so one deployed verifier contract serves every program. \acp{STARK} are transparent hash-based arguments; the PlonK wrapper is the only part of the sequencer's proof that depends on a structured reference string and on pairings over BN254.
M v2/sections/ballot-protocol.tex → v2/sections/ballot-protocol.tex

@@ -19,7 +19,7 @@

\vspace{-0.5cm} \begin{figure}[H] \centering - \includegraphics[scale = 0.8, draft = false]{\figs/ballot-variables.pdf} + \includegraphics[width=0.85\textwidth, draft = false]{\figs/ballot-variables.pdf} \caption{Schematic representation of the parameters that define a ballot in \davinci.} \label{fig:ballot-variables} \end{figure}

@@ -42,10 +42,10 @@ \item If $\uniquevalues = \true$, then $v_i \neq v_j$ for all $i\neq j$.

\item $\minvalue \leq v_i \leq \maxvalue$ for all $i\in\{1, \dots, n_f\}$. \item $\minvaluesum \leq \sum_{i=1}^{n_f} v_i^{\costexponent} \leq \mathsf{max}$, where $\mathsf{max} = \maxvaluesum$ if $\maxvaluesum > 0$, and $\mathsf{max} = \weight$ otherwise. \end{itemize} -The inactive fields $n_f < i \le 16$ are not constrained by the ballot circuit, but the batch program requires their ciphertexts to be the identity, so they always contribute zero to the tally. +The inactive fields $n_f < i \le 16$ are not constrained by the ballot circuit, but the batch program requires their ciphertexts to be the identity, so they always contribute zero to the tally. The circuit evaluates these rules over the BN254 scalar field, with values of at most 48 bits and with the cost sum and its bounds compared as 63-bit integers. The integer semantics above therefore hold for configurations in which $n_f \cdot \maxvalue^{\costexponent} < 2^{63}$, so that the cost sum cannot wrap around the field or exceed the comparator, and in which the effective upper bound is below $2^{63}$; organizers must choose the parameters accordingly, and a voter whose weight serves as the bound and is $2^{63}$ or more cannot produce a valid ballot. \paragraph{General mechanism.} -A ballot is valid if and only if all the above constraints are satisfied. Invalid ballots are rejected at the circuit level and do not contribute to the tally. Valid ballots are aggregated into a results array, where each entry is the sum of all votes cast for the corresponding field across all voters. Voter weights, defined in the census (see Section~\ref{sec:vocdoni-protocol:census}), enter the ballot rules as a budget: when \maxvaluesum is zero, a voter may distribute at most their weight across the fields, so the weight bounds each voter's contribution to the tally. By default, all voters have the same weight. The ballot circuit enforces the bound with the weight committed in \ballotinputshash, and the batch program checks that this weight is the one certified by the census (see Sections~\ref{sec:vocdoni-protocol:circuits:ballot} and~\ref{sec:vocdoni-protocol:circuits:batch} for further details). +A ballot is valid if and only if all the above constraints are satisfied. Invalid ballots are rejected at the circuit level and do not contribute to the tally. Valid ballots are aggregated into a results array, where each entry is the sum of all votes cast for the corresponding field across all voters. Voter weights, defined in the census (see Section~\ref{sec:vocdoni-protocol:census}), enter the ballot rules as a budget: when \maxvaluesum is zero, a voter may distribute at most their weight across the fields, so the weight bounds each voter's contribution to the tally. Tallies are always field-wise sums: modes such as ranking aggregate ranks or scores, and counting rules that are not additive, such as instant-runoff elimination, are outside the ballot protocol. By default, all voters have the same weight. The ballot circuit enforces the bound with the weight committed in \ballotinputshash, and the batch program checks that this weight is the one certified by the census (see Sections~\ref{sec:vocdoni-protocol:circuits:ballot} and~\ref{sec:vocdoni-protocol:circuits:batch} for further details). \paragraph{Ballot modes.} Ballot modes correspond to different voting systems, each adjusted with the variables above ballot configurations. For usability, the organizer does not need to set every parameter manually: instead, they simply select one of the predefined ballot modes (e.g., quadratic voting, ranking, approval), each corresponding to a fixed parameter configuration. Some representative modes are shown in Table~\ref{tab:ballot-modes}, which illustrates the expressiveness of the ballot protocol. For example, in \emph{approval voting}, each field is binary and voters can approve or reject multiple options simultaneously. In \emph{ranking}, fields must form a permutation of the integers from $1$ to \numfields, enforcing uniqueness of values. In \emph{quadratic voting}, voters allocate credits across options, and the cost is quadratic in the number of credits used, captured by setting \costexponent$=2$. Other systems such as single-choice or multiple-choice elections are special cases of the same framework. Table~\ref{tab:ballot-examples} illustrates examples of voters' ballots, with the last column indicating whether each ballot is valid or invalid under the rules of the selected mode, and the tally of the valid ones.
M v2/sections/census.tex → v2/sections/census.tex

@@ -49,7 +49,7 @@ \textbf{Origin} & \textbf{Model} & \textbf{\censusroot} & \textbf{\censusuri} & \textbf{Root a state transition may use} \\

\midrule 1 & Off-chain static & Fixed Merkle root & Endpoint to obtain the census & The root fixed at creation \\ 2 & Off-chain dynamic & Latest Merkle root, replaced by the organizer & Endpoint to obtain the latest census & The latest root only \\ - 3 & On-chain & Census contract (\censusvalidator) & Endpoint to obtain the census (sequencers rebuild it from the contract's events) & Any root the contract held since the creation block \\ + 3 & On-chain & Root at creation, for reference; the contract address is stored in \texttt{contractAddress} & Endpoint to obtain the census (sequencers rebuild it from the contract's events) & Any root the contract held since the creation block \\ 4 & Credential service provider (\ac{CSP}) & Address of the \ac{CSP}'s signing key & Endpoint to obtain an eligibility credential & The \ac{CSP} address (signatures recovered in the proof) \\ \bottomrule \end{tabular}
M v2/sections/circuits.tex → v2/sections/circuits.tex

@@ -56,7 +56,7 @@ \caption{Ballot circuit. Public values are framed in green, secret private values in red, and private values bound by \ballotinputshash in orange.}

\label{fig:circuit-ballot} \end{figure} -\noi The ballot proof does not authenticate the voter: anyone who knows a voter's address could prove a ballot for it. Authentication is provided by a separate signature over the vote identifier, $\signature = \hlget{\SSign}_{\sk}(\voteid)$, produced with the voter's SECP256K1 key and verified by the batch program. Because the vote identifier is bound to the encrypted ballot through $k$ and through \ballotinputshash, the signature authorizes exactly one encrypted ballot. +\noi The ballot proof does not authenticate the voter: anyone who knows a voter's address could prove a ballot for it. Authentication is provided by a separate signature over the vote identifier, $\signature = \hlget{\SSign}_{\sk}(\voteid)$, produced with the voter's SECP256K1 key and verified by the batch program. The signature authenticates the vote identifier, and the ballot proof binds the ciphertext and the other inputs to it through \ballotinputshash; as long as $k$ is fresh for every ballot, distinct ballots of a voter have distinct identifiers. \subsubsection{Batch program} \label{sec:vocdoni-protocol:circuits:batch}

@@ -100,7 +100,7 @@ \item \private $\{\blobcom_b\}_{b=1}^{\nblobs}$: \ac{KZG} commitments to the blobs.

\end{itemize} \textbf{Constraints} \\ \vspace{-0.4cm} \begin{itemize} - \item \emph{Ballot proof verification.} Every ballot proof is valid under the ballot verification key of the election. The program first checks that the key is the one committed in the state, $\Sha(\mathsf{vk}) = \ballotvkhash$, where the key is serialized as its points $\alpha, \beta, \gamma, \delta$, the number of coefficients of $L$ as a 64-bit little-endian word, and the coefficients of $L$, each coordinate as four 64-bit little-endian limbs, and the digest is read as a big-endian integer. It also checks that all proof points are on their curves and not the identity, and that the $\BN{\G}_2$ points of the key are in the prime-order subgroup. It then verifies the $n$ proofs at once with a randomized batch check~\cite{bellare1998batch}: it derives coefficients $\rho_1 = 1$ and $\rho_i = \mathsf{lo}_{128}\bigl(\Sha(\Sha(T) \conc \mathsf{LE64}(i-1))\bigr)$ for $i \ge 2$ from the transcript $T = \texttt{"groth16-batch-v2"} \conc A_1 \conc B_1 \conc C_1 \conc x_1 \conc \cdots \conc A_n \conc B_n \conc C_n \conc x_n$ of all proofs $(A_i, B_i, C_i)$ and public inputs $x_i$, encoded as raw limbs (a zero coefficient is replaced by $1$), and checks the single pairing equation obtained as the $\rho$-weighted product of the $n$ Groth16 verification equations, computing every scalar multiplication itself. A batch containing an invalid proof passes this check with probability at most $2^{-128}$. For every $i \in \{1,\dots,n\}$, this establishes + \item \emph{Ballot proof verification.} Every ballot proof is valid under the ballot verification key of the election. The program first checks that the key is the one committed in the state, $\Sha(\mathsf{vk}) = \ballotvkhash$, where the key is serialized as its points $\alpha, \beta, \gamma, \delta$, the number of coefficients of $L$ as a 64-bit little-endian word, and the coefficients of $L$, each coordinate as four 64-bit little-endian limbs, and the digest is read as a big-endian integer. It also checks that all proof points are on their curves and not the identity, and that the $\BN{\G}_2$ points of the key are in the prime-order subgroup. It then verifies the $n$ proofs at once with a randomized batch check~\cite{bellare1998batch}: it derives coefficients $\rho_1 = 1$ and $\rho_i = \mathsf{lo}_{128}\bigl(\Sha(\Sha(T) \conc \mathsf{LE64}(i-1))\bigr)$ for $i \ge 2$ from the transcript $T = \texttt{"groth16-batch-v2"} \conc A_1 \conc B_1 \conc C_1 \conc x_1 \conc \cdots \conc A_n \conc B_n \conc C_n \conc x_n$ of all proofs $(A_i, B_i, C_i)$ and public inputs $x_i$, encoded as raw limbs (a zero coefficient is replaced by $1$), and checks the single pairing equation obtained as the $\rho$-weighted product of the $n$ Groth16 verification equations, computing every scalar multiplication itself. For a fixed transcript, a batch containing an invalid proof passes this small-coefficient test with probability at most $2^{-127}$ over the choice of the coefficients (the remapping of zero gives the value one two preimages); since the coefficients are derived by hashing, an adaptive bound holds in the random oracle model and degrades with the number of transcripts an adversary can try. For every $i \in \{1,\dots,n\}$, this establishes $$\hlget{\PVerify}\bigl(\ballotproof_i, (\address_i, \voteid_i, \ballotinputshash_i)\bigr) = \true.$$ % \item \emph{Authentication.} Every ballot is signed by the owner of its address. For every $i$, the vote identifier is a 64-bit integer, a public key is recovered from the signature over the 32-byte message $\texttt{0x00}^{24} \conc \voteid_{i,\text{BE8}}$ in the Ethereum personal-message format, and its address is the voter's:

@@ -151,7 +151,7 @@ \item \emph{Results accumulation.} The new accumulator adds the new ballots, subtracts the overwritten ones, and adds the difference introduced by each refresh, which is an encryption of zero:

\[A^\new = A^\old + \sum_{i=1}^{n} B'_i - \sum_{\text{overwrites}} B^\old_i + \sum_{j=1}^{|\mathcal{R}|} \bigl(R'_j - R_j\bigr),\] where sums of ballots are field-wise homomorphic additions of ciphertexts (\hlget{\EncAdd}) and subtraction adds the inverse point. % - \item \emph{Silent refresh.} The number of refreshed slots is large enough to hide the overwrites: with $o = \occupiedbefore$, it must hold that $o \ge w$ and + \item \emph{Silent refresh.} The number of refreshed slots is large enough to obscure the overwrites: with $o = \occupiedbefore$, it must hold that $o \ge w$ and \[ |\mathcal{R}| \ \ge\ \min\bigl(\mathsf{target}(n, w),\ o - w\bigr), \qquad \mathsf{target}(n, w) = \min\bigl(2048,\ \max(16,\ 2w,\ n)\bigr).\] % \item \emph{Data blob}. The blob contents are rebuilt from the verified data and bound to the commitments.

@@ -220,7 +220,7 @@ \item The list of the $n_{\mathsf{id}}$ vote identifiers, in increasing order and without their most significant bit, followed by the list of the $n_{\mathsf{up}}$ updated slots, in increasing order, packed four 63-bit integers per cell: $\mathsf{pack4}(a,b,c,d) = a \cdot 2^{189} + b \cdot 2^{126} + c \cdot 2^{63} + d$.

\item For each updated slot, in the same order, the $2 n_f$ points of its new ballot, one cell per point: a point $(x,y)$ is encoded as $y + 2^{254} \cdot (x \bmod 2)$, which identifies the point given the curve equation. \item Zero cells up to the end of the last blob. \end{enumerate} -The updated slots include the new votes, the overwrites, and the refreshes, merged into one sorted list. An observer therefore cannot tell an overwrite from a refresh, which is the purpose of silent revoting; only the first write of a slot is distinguishable, as discussed in Section~\ref{sec:vocdoni-protocol:state-tree}. The results accumulator is not published: an observer that holds the previous state recomputes it as $\encresults^\old + \sum_{u} (B^\new_u - B^\old_u)$ over the updated slots, where $B^\old_u$ is the identity for a previously empty slot, which equals the accumulator of the constraint above. The total number of cells is +The updated slots include the new votes, the overwrites, and the refreshes, merged into one sorted list. The published data therefore does not mark which updates are overwrites, which is the purpose of silent revoting; the first write of a slot remains distinguishable, as discussed in Section~\ref{sec:vocdoni-protocol:state-tree}, and Section~\ref{sec:analysis:security} discusses the limits of this protection. The results accumulator is not published: an observer that holds the previous state recomputes it as $\encresults^\old + \sum_{u} (B^\new_u - B^\old_u)$ over the updated slots, where $B^\old_u$ is the identity for a previously empty slot, which equals the accumulator of the constraint above. The total number of cells is \[ T = 1 + \bigl\lceil (n_{\mathsf{id}} + n_{\mathsf{up}})/4 \bigr\rceil + 2\, n_f\, n_{\mathsf{up}}, \]
M v2/sections/conclusions.tex → v2/sections/conclusions.tex

@@ -1,9 +1,9 @@

% !TeX root = ../build/main.tex -We presented \davinci, a decentralized, E2E-verifiable voting protocol implemented as a specialized ZK rollup. By modeling elections as ZK-verified state transitions settled on Ethereum or on an Ethereum rollup, \davinci combines public auditability with scalable off-chain execution while minimizing reliance on any single party. Ballot secrecy is achieved through threshold ElGamal encryption under a key generated by a permissionless \ac{DKG} network or an invited council, while ciphertext re-randomization and silent revoting strengthen protection against coercion and vote-selling. +We presented \davinci, a decentralized, verifiable voting protocol implemented as a specialized ZK rollup. By modeling elections as ZK-verified state transitions settled on Ethereum or on an Ethereum rollup, \davinci combines public auditability with scalable off-chain execution while minimizing reliance on any single party. Ballot secrecy is achieved through threshold ElGamal encryption under a key generated by a permissionless \ac{DKG} network or an invited council, while ciphertext re-randomization and silent revoting make revotes hard to tell from routine refreshes, which mitigates coercion and vote-selling. The central change of this version of the protocol is the use of a \ac{zkVM}: the work of a sequencer, from the verification of every ballot proof, signature, and census proof to the update of the state, the re-encryption of the ballots, and the layout of the published data, is a single program whose execution is proven and verified on-chain with one constant-size proof. Expressing the transition function as a program made it practical to prove properties that the earlier circuit-based design left outside the proof, such as the exact content of the data blobs and the silent refresh of stored ballots, and it makes the statement that is enforced auditable as ordinary code. The data availability layer is decoupled from the settlement layer, so elections can settle on a low-cost rollup while their data remains on Ethereum. -To our knowledge, \davinci is the first system to combine a universal ballot abstraction, an open sequencer set, and fully proof-enforced election execution within a single rollup architecture. This enables a reusable voting infrastructure in which elections with different ballot formats and organizers can share the same settlement layer, verifier contracts, and proving pipeline. +To our knowledge, \davinci is the first system to combine a parametric ballot abstraction with a common additive tally, an open sequencer set, and fully proof-enforced election execution within a single rollup architecture. This enables a reusable voting infrastructure in which elections with different ballot formats and organizers can share the same settlement layer, verifier contracts, and proving pipeline. Several directions remain open for future work. An important long-term direction is post-quantum migration, in particular the direct verification of \acp{STARK} and post-quantum signature and encryption schemes. Others are the chained proving mode, which folds a whole election into one on-chain verification, for elections that do not need per-batch settlement; the resharing of election keys across \ac{DKG} committees, so that a key outlives the committee that generated it; decentralized archival of blobs beyond their retention period; and a cast-as-intended mechanism for voters. We also plan to integrate with real-world credential providers and conduct large-scale deployment experiments in realistic electoral settings.
M v2/sections/introduction.tex → v2/sections/introduction.tex

@@ -14,12 +14,12 @@

\subsection{Contributions} \label{sec:introduction:contributions} -This work introduces \davinci, a modular and verifiable protocol for digital voting, designed to support privacy-preserving, auditable, and adaptable election processes across diverse governance contexts. The protocol \textit{models voting as a constrained state machine}, in which each valid operation is expressed as a formally defined state transition, enforced through succinct \ac{ZK} proofs. At the core of the system lie three proof statements. Voters prove the validity of their encrypted ballots with an arithmetic circuit and a \ac{ZK-SNARK}, cheap enough to be proven on a smartphone or in a web browser. Sequencers prove each batch of ballots with a batch program executed in a \ac{zkVM}: the program verifies every ballot proof, signature, and census proof of the batch, re-encrypts the ballots, applies the resulting updates to the election state, and lays out the published data. At the end of the election, a results program proves the decryption of the tally. Application-layer state is maintained off-chain and committed on-chain using Merkle trees as cryptographic accumulators. +This work introduces \davinci, a modular and verifiable protocol for digital voting, designed to support privacy-preserving, auditable, and adaptable election processes across diverse governance contexts. The protocol \textit{models voting as a constrained state machine}, in which each valid operation is expressed as a formally defined state transition, enforced through succinct \ac{ZK} proofs. At the core of the system lie three proof statements. Voters prove the validity of their encrypted ballots with an arithmetic circuit and a \ac{ZK-SNARK}, cheap enough to be proven on a smartphone or in a web browser. Sequencers prove each batch of ballots with a batch program executed in a \ac{zkVM}: the program verifies every ballot proof, signature, and census proof of the batch, re-encrypts the ballots, applies the resulting updates to the election state, and lays out the published data. At the end of the election, the decryption of the tally is either proven by a results program, when a single sequencer holds the election key, or verified through the proofs that accompany the partial decryptions of the key wardens. Application-layer state is maintained off-chain and committed on-chain using Merkle trees as cryptographic accumulators. %The protocol defines two such trees: one for the voter registry (the census) and one for the voting state. These trees enable voters and verifiers to produce efficient inclusion and transition proofs, while minimizing on-chain storage and computation. -A key contribution of this work is the introduction of a generic ballot protocol that abstracts a wide range of voting systems into a unified, parameterized representation. Instead of designing specialized circuits for each voting rule, ballots are expressed as fixed-length vectors subject to configurable constraints, enabling support for approval, ranking, quadratic, single-choice, and multiple-choice elections within the same circuit framework. This design significantly reduces circuit complexity while allowing different tallying and counting rules to be enforced efficiently inside \ac{ZK} proofs. +A key contribution of this work is the introduction of a generic ballot protocol that abstracts a wide range of voting systems into a unified, parameterized representation. Instead of designing specialized circuits for each voting rule, ballots are expressed as fixed-length vectors subject to configurable constraints, enabling support for approval, ranking, quadratic, single-choice, and multiple-choice elections within the same circuit framework. This design significantly reduces circuit complexity while allowing different ballot validity rules, with a common additive tally, to be enforced efficiently inside \ac{ZK} proofs. -A second contribution is \textit{silent revoting}, a receipt-freeness mechanism that does not rely on a trusted server. Voters may overwrite their ballots any number of times, and every batch re-randomizes, in addition to the ballots it writes, a random sample of the ballots already stored in the state. Overwrites and routine refreshes are indistinguishable in the published data, so a voter cannot prove to a third party that a given ballot is the one that counts. The batch proof guarantees that the refreshes are re-encryptions and therefore never alter the tally. +A second contribution is \textit{silent revoting}, a mechanism that obscures revotes without relying on a trusted tally server. Voters may overwrite their ballots while the election is open, and every batch re-randomizes, in addition to the ballots it writes, a sample of the ballots already stored in the state. The published data does not mark which updates are overwrites, so an outside observer can hardly tell a revote from a routine refresh, which mitigates vote buying and coercion; the protection is informal and conditional, and Section~\ref{sec:analysis:security} states its limits. The batch proof guarantees that the refreshes are re-encryptions and therefore never alter the tally. To coordinate protocol execution over a decentralized network of nodes, \davinci includes a set of Ethereum smart contracts that mediate the setup of elections, verify submitted proofs of correctness, and manage finalization procedures. A single registry contract holds the state of every election and checks each state transition against the pinned identity of the batch program. The contracts run either on Ethereum or on an Ethereum rollup built on the OP Stack, where settlement is cheaper; in the latter case, the data needed to rebuild the election state is still published in Ethereum blobs, and the registry verifies on the rollup that the blobs are part of the Ethereum chain. The election key can be provided by a threshold committee through \ac{DKG}, by an invite-only council, or by a single sequencer when the organizer accepts that trust. A standardized data encoding format supports all stages of the process, including vote casting, ballot batching, and result publication. This approach ensures that protocol interactions remain deterministic and interoperable across clients and backends. Altogether, the design aims to balance auditability and privacy while reducing trust assumptions on infrastructure providers. By cleanly separating functionalities and providing modular interfaces, the protocol is intended to serve as a foundation for both practical deployments and future extensions, such as integration with alternative identity systems, other data availability layers, or other consensus backends.

@@ -30,8 +30,8 @@ %https://research.azkr.org/blog/evoting-review/

\paragraph{Foundations of cryptographic voting.} %Cryptographic e-voting begins with Chaum's mix-nets~\cite{chaum1981}, which establish anonymity through verifiable shuffling of ciphertexts. -Cryptographic e-voting originated with Chaum's mix-net construction~\cite{chaum1981}, which achieves anonymity through verifiable shuffling of ciphertexts. -Helios~\cite{helios2008} was the first deployed web-based system to combine threshold ElGamal encryption with a public bulletin board and homomorphic tallying, and it remains a standard reference point for end-to-end (E2E) verifiability in practice. +Cryptographic e-voting originated with Chaum's mix-net construction~\cite{chaum1981}, in which a chain of servers decrypts and shuffles encrypted messages to break the link between senders and messages. +Helios~\cite{helios2008} was the first deployed web-based open-audit voting system; its later versions combine ElGamal encryption under a key shared among trustees with a public bulletin board and homomorphic tallying, and it remains a standard reference point for end-to-end (E2E) verifiability in practice. Belenios~\cite{belenios2019} refines this design with formal verifiability proofs and a clean separation between the registration authority and the voting server; the BeleniosRF variant additionally achieves receipt-freeness, but only under the assumption that the voting server is honest regarding that property. ElectionGuard~\cite{electionguard2024} belongs to the same family, combining homomorphic tallying with threshold guardians, publicly verifiable proofs, and a centralized election administrator that drives the tally. A common feature of all of these systems is that, beyond their cryptographic core, they require a non-trivial setup of either the bulletin board, the tally authority, or both, and that the operator set is fixed for each election rather than open to participation.

@@ -41,7 +41,7 @@ Doan et al.~\cite{doan2024} subsequently generalize Hirt-style receipt-freeness to a setting with multiple ballot-processing servers, removing the single-point-of-failure assumption common to earlier non-interactive constructions.

These constructions remain server-based: none of them places the protocol on a public bulletin board with cryptographically enforced data availability, and the helpers responsible for re-encryption are selected in advance rather than drawn from an open set. \paragraph{Blockchain-based and ZK-based voting.} -McCorry et al.~\cite{mccorry2017} proposed the first self-tallying voting contract on Ethereum, but placing every vote directly on-chain is expensive and creates a linkable trail between voters and their choices. Permissioned-ledger proposals~\cite{kirillov2019} improve operational properties but still rest on honest-majority assumptions over a closed set of validators. +McCorry et al.~\cite{mccorry2017} proposed the first self-tallying voting contract on Ethereum, but every voter must post several transactions and take part in the tally, which limits it to small electorates and makes participation public. Permissioned-ledger proposals~\cite{kirillov2019} improve operational properties but still rest on honest-majority assumptions over a closed set of validators. Freedom Tool~\cite{freedomtool2024} uses ZK proofs over biometric passports to enforce eligibility, but votes appear on-chain in cleartext, trading ballot secrecy for transparency. MACI~\cite{maci2019} uses ZK proofs to discourage bribery, but its coordinator is a single trusted party that can read individual votes; although later versions improve usability, this assumption remains. Semaphore~\cite{semaphore2020} provides anonymous group-membership proofs and is reused as a building block in several voting prototypes, although it is not itself a complete voting protocol.
M v2/sections/protocol-flow.tex → v2/sections/protocol-flow.tex

@@ -49,12 +49,12 @@ \subsubsection{Encryption key generation}

\label{sec:vocdoni-protocol:keygen} \label{sec:vocdoni-protocol:flow:keys} -In this phase, the public encryption key ($\epk$) that voters will use to encrypt their ballots is established. \Davinci supports four key modes, chosen by the organizer at creation and summarized in Fig.~\ref{fig:key-modes}. In all of them, the key is fixed when the process is created, it is committed in the genesis state, and the batch and results proofs are the same; the modes differ in who can decrypt and, consequently, in who publishes the results. +In this phase, the public encryption key ($\epk$) that voters will use to encrypt their ballots is established. \Davinci supports four key modes, chosen by the organizer at creation and summarized in Fig.~\ref{fig:key-modes}. In all of them, the key is fixed when the process is created and committed in the genesis state, and the batch proof is the same; the modes differ in who can decrypt and, consequently, in how the results are published: the sequencer mode uses the results program, while the \ac{DKG} and council modes rely on the verified partial decryptions of their committees. \begin{figure}[h] \centerline{\includegraphics[width=\textwidth,draft=false]{\figs/key-modes.pdf}} \setlength{\abovecaptionskip}{5pt} - \caption{Key modes. The organizer always interacts with the process registry only; the key-management contracts sit behind it. The modes differ in who can decrypt the tally and how the results are published.} + \caption{Key modes. Elections are created through the process registry, which calls the key-management contracts; council ceremonies are set up on the council manager beforehand. The modes differ in who can decrypt the tally and how the results are published.} \label{fig:key-modes} \end{figure}

@@ -64,9 +64,9 @@ \paragraph{\ac{DKG} locked mode.} The organizer generates a key pair $(\sk_{\mathsf{org}}, \pk_{\mathsf{org}})$ and provides $\pk_{\mathsf{org}}$, together with a Schnorr proof of possession of $\sk_{\mathsf{org}}$, at creation. The election key is $\epk = P_j + \pk_{\mathsf{org}}$, and the \ac{DKG} contracts refuse every decryption of the application until the organizer reveals $\sk_{\mathsf{org}}$ on-chain, which they check against $\pk_{\mathsf{org}}$. The organizer thus decides when the tally can be opened, but not what it contains, and not even $\theta$ colluding committee members can open it alone. Losing $\sk_{\mathsf{org}}$ makes the tally permanently undecryptable.

\paragraph{Council mode.} The \keywardens are the members of a council: up to sixteen participants invited by an organizer, who run a dedicated key ceremony on the \councilmanager~\cite{davinci-council}. Each member deals a Feldman sharing of a random secret with a Groth16 proof of correct dealing, the election key is the sum of the dealers' public constants, and any $\theta$ of its $\nu$ members can decrypt, for a threshold $\theta$ fixed when the ceremony is created. A council ceremony also fixes when decryption may start, either on a scheduled date or when the organizer of the ceremony opens it, optionally with a fallback date. Several processes may be bound to the same ceremony, provided that the ceremony organizer has allowed the registry's \counciladapter and has authorized the account creating each process; all of them share the ceremony's key. -\paragraph{Sequencer mode.} When the organizer accepts a weaker trust model, a single sequencer acts as the only \keywarden. Before creating the process, the organizer requests from a sequencer the key for the (predictable) identifier \processid. The sequencer derives the secret key from a master secret, -\[ \sk = \mathsf{HMAC}\text{-}\Sha\bigl(\mathsf{master},\ \texttt{"davinci-election-key-v1"} \conc \texttt{chainID} \conc \texttt{registry} \conc \processid\bigr), \] -reduced into $[1, t)$, and returns $\epk = \sk \cdot \BJ{G}$. Since the key is derived, the sequencer stores nothing per request, and a key handed out for one process is useless under any other. That sequencer can decrypt every ballot published in the blobs, and it is the only party able to publish the results. This mode suits testing and elections in which the organizer trusts the operator of the sequencer. +\paragraph{Sequencer mode.} When the organizer accepts a weaker trust model, a single sequencer acts as the only \keywarden. Before creating the process, the organizer requests from a sequencer the key for the (predictable) identifier \processid. The sequencer derives the secret key from a 32-byte master secret: with $X = \texttt{"davinci-election-key-v1"} \conc \texttt{chainID}_{\text{BE8}} \conc \texttt{registry}_{20} \conc \processid_{31}$, +\[ h_i = \mathsf{HMAC}\text{-}\Sha(\mathsf{master},\ X \conc i_{\text{8 bits}}), \quad i \in \{0, 1\}, \qquad \sk = 1 + \bigl(\mathsf{BE}(h_0 \conc h_1) \bmod (t - 1)\bigr), \] +so that $\sk \in [1, t)$ with negligible bias, and returns $\epk = \sk \cdot \BJ{G}$. Since the key is derived, the sequencer stores nothing per request, and a key handed out for one process is useless under any other. That sequencer can decrypt every ballot published in the blobs, and it is the only party able to publish the results. This mode suits testing and elections in which the organizer trusts the operator of the sequencer. \subsubsection{Voting period} \label{sec:vocdoni-protocol:votes}

@@ -150,7 +150,7 @@ \item \emph{Blob mode} (registry on a chain with native blob transactions, such as Ethereum). The sequencer sends a single blob-carrying transaction that carries the $\nblobs \le 6$ blobs of the batch and calls

\begin{align*} \fn{submitStateTransition}\bigl(&\processid, \publicvalues, \batchproof,\\ &\{\blobcom_b\}, \{y_b\}, \{\openproof_b\}\bigr), \end{align*} where $\openproof_b$ is the \ac{KZG} opening proof of blob $b$ at $z_b$. The registry reads the versioned hashes of the blobs of its own transaction. - \item \emph{L1-blob mode} (registry on an OP Stack rollup). The sequencer posts the blobs to Ethereum while the batch is being proven, in blob-carrying transactions of at most six blobs each, sent one after another. Once the proof is ready, every blob transaction is included, and the L1 origin of the rollup has reached the newest of them, the sequencer builds an L1 proof $\Pi^{\mathsf{L1}}$: the Ethereum headers from the anchor down to the oldest blob transaction, and a \ac{MPT} inclusion proof of each blob transaction in its block. If the origin moves past the anchor before the settlement lands, the sequencer can call \fn{record} on the \lblobverifier to keep that block usable as an anchor. It then calls + \item \emph{L1-blob mode} (registry on an OP Stack rollup). The sequencer posts the blobs to Ethereum while the batch is being proven, in blob-carrying transactions of at most six blobs each, sent one after another. Once the proof is ready, every blob transaction is included, and the L1 origin of the rollup has reached the newest of them, the sequencer builds an L1 proof $\Pi^{\mathsf{L1}}$: the Ethereum headers from the anchor down to the oldest blob transaction, and a \ac{MPT} inclusion proof of each blob transaction in its block. Since the L1 origin advances every few seconds, a sequencer may preserve a usable anchor by calling \fn{record} on the \lblobverifier while that block is the current origin; if the origin advances past an unrecorded anchor before the settlement lands, the proof is rebuilt against the new origin or another recorded block. It then calls \begin{align*} \fn{submitStateTransitionL1}\bigl(&\processid, \publicvalues, \batchproof,\\ &\{\blobcom_b\}, \{y_b\}, \{\openproof_b\}, \Pi^{\mathsf{L1}}\bigr), \end{align*} and the registry obtains the versioned hashes, in order, from $\lblobverifier.\fn{verify}(\Pi^{\mathsf{L1}})$. Fig.~\ref{fig:l1-settlement} shows the timeline of this mode. \end{itemize}

@@ -189,12 +189,12 @@ \begin{equation}

\graceend = \min\bigl(\mathsf{end} + \texttt{graceMaxTotal},\ \max(\mathsf{end}, \lastvoteat) + \grace\bigr), \label{eq:grace-end} \end{equation} -where $\mathsf{end}$ is the end time and \lastvoteat the time of the latest settled transition. Every transition that lands during the window extends it, so a backlog drains batch by batch, while \texttt{graceMaxTotal} bounds the total extension. The organizer may set \grace before the end within the bounds \texttt{graceFloor} and \texttt{graceCeil} of the registry, and may shorten the voting period, but only to an end time at least \texttt{noticeMin} away, so that every sequencer learns the new end before it applies. From shortly before the end, sequencers stop waiting to fill batches and seal everything pending as soon as the proving budget allows. Fig.~\ref{fig:grace-window} illustrates the window, and Fig.~\ref{fig:process-status} the statuses a process goes through. +where $\mathsf{end}$ is the end time and \lastvoteat the time of the latest settled transition. Every transition that lands during the window extends it, so a backlog drains batch by batch, while \texttt{graceMaxTotal} bounds the total extension. The organizer may set \grace before the end within the bounds \texttt{graceFloor} and \texttt{graceCeil} of the registry. The organizer may also shorten the voting period with \fn{setProcessDuration}, which only accepts a new end at least \texttt{noticeMin} away, so that sequencers that follow the chain learn the new end before it applies; ending the process explicitly with \fn{setProcessStatus} closes it at once, without notice. From shortly before the end, sequencers stop waiting to fill batches and seal everything pending as soon as the proving budget allows. Fig.~\ref{fig:grace-window} illustrates the window, and Fig.~\ref{fig:process-status} the statuses a process goes through. \begin{figure}[h] \centerline{\includegraphics[width=\textwidth,draft=false]{\figs/grace-window.pdf}} \setlength{\abovecaptionskip}{5pt} - \caption{The grace window. Admission closes at the end time; transitions keep settling until \graceend, which every settlement pushes forward by \grace, up to \texttt{graceMaxTotal} after the end. Results can only be published after \graceend.} + \caption{The grace window. Honest sequencers stop admitting votes at the end time; transitions keep settling until \graceend, which every settlement resets to its own time plus \grace, up to \texttt{graceMaxTotal} after the end. Results can only be published after \graceend.} \label{fig:grace-window} \end{figure}

@@ -205,7 +205,7 @@ \caption{Statuses of a process in the registry. Solid transitions are made by the organizer; dashed transitions are made by the registry when results are requested or published.}

\label{fig:process-status} \end{figure} -The grace window lets a sequencer include votes cast before the end but settled after it. The registry cannot tell a vote cast after the end from a delayed one, so a dishonest sequencer could include late votes during the window; sequencers refuse them, and the exposure is bounded by the window and visible, since every transition in the window is recorded on-chain with its time. +The grace window lets a sequencer include votes cast before the end but settled after it. The registry cannot tell a vote cast after the end from a delayed one, so a dishonest sequencer could include late votes during the window; honest sequencers refuse them. The opportunity is bounded by the window, and the transitions settled in it are public, but the contract cannot distinguish delayed submissions from submissions received after the end. \subsubsection{Tally decryption} \label{sec:vocdoni-protocol:tally}

@@ -214,7 +214,7 @@ After the grace window closes, the \hlget{\processregistry} smart contract stops accepting new state updates, fixing the final state root and thus the aggregated encrypted results $\encresults$. Every sequencer that follows the election holds $\encresults$ in its own state tree, and the results can only be requested or published from this point on, which guarantees that the decrypted tally is that of the final state. How the tally is decrypted depends on the key mode.

\paragraph{Threshold decryption (\ac{DKG} and council modes).} Any sequencer with a signing key submits the final accumulator $\encresults$, together with its inclusion proof $\merkleInclusionPf^{\encresults}$ under the latest state root, by calling \fn{requestResultsDecryption}. The registry checks that every coordinate of $\encresults$ is canonical, that $\Sha(\encresults)$ is the value of leaf \texttt{0x4} under the latest state root, moves the process to the ended status, and submits the ciphertext of every active field to the key-management contract through its adapter. Fields whose ciphertext is the identity decrypt to zero under any key and are recorded as zero without being submitted. A threshold of $\theta$ out of $\nu$ \keywardens\ then cooperate to decrypt each submitted ciphertext $(C_1, C_2)$: rather than reconstructing the election secret key, each participating warden $i$ publishes a partial decryption $D_i = \mathsf{sh}_i \cdot C_1$, where $\mathsf{sh}_i$ is its key share, together with a Groth16 proof that $D_i$ is consistent with its committed share. Once $\theta$ valid partial decryptions are available, anyone combines them by Lagrange interpolation, $M = C_2 - \sum_i \lambda_i D_i$, recovers the plaintext $m$ with $M = m \cdot \BJ{G}$ by a bounded discrete-logarithm search, and submits it; the key-management contract checks that $m$ is the correct combination (with a \ac{ZK} proof in the \ac{DKG} network, and by direct computation in the council) before storing it. In the locked mode, partial decryptions are only accepted after the organizer reveals $\sk_{\mathsf{org}}$, and the combination also removes its contribution. In the council mode, they are only accepted once the ceremony's decryption gate has opened. Because only the aggregated results are decrypted and never the individual ballots, voter privacy is preserved throughout the election, and the secret key is never reconstructed by any single party. Moving the process to the ended status when the decryption is requested matters: the plaintexts become public on the key-management contract before the registry records them, and an organizer that could still cancel the process could otherwise veto a tally after reading it. -\paragraph{Sequencer decryption (sequencer mode).} The sequencer that holds $\sk$ decrypts each field $j$ of $\encresults$ as $M_j = C_{2,j} - \sk \cdot C_{1,j}$, recovers $\text{results}_j$ with $M_j = \text{results}_j \cdot \BJ{G}$ by a baby-step giant-step search bounded by $\maxvoters \cdot \maxvalue$, and produces a Chaum--Pedersen proof $\pi^{\mathrm{dec}}_j$ that $\log_{\BJ{G}} \epk = \log_{C_{1,j}} M_j$ (see Appendix~\ref{sec:cryptographic-primitives:encryption}). It can do so during the grace window, once nothing is pending, and submit the result as soon as the window closes, provided that the root has not changed. +\paragraph{Sequencer decryption (sequencer mode).} The sequencer that holds $\sk$ decrypts each field $j$ of $\encresults$ as $M_j = C_{2,j} - \sk \cdot C_{1,j}$, recovers $\text{results}_j$ with $M_j = \text{results}_j \cdot \BJ{G}$ by a baby-step giant-step search bounded by $\maxvoters \cdot \maxvalue$, and produces a Chaum--Pedersen proof $\pi^{\mathrm{dec}}_j$ that $\log_{\BJ{G}} \epk = \log_{C_{1,j}} D_j$, where $D_j = C_{2,j} - \text{results}_j \cdot \BJ{G}$ (see Appendix~\ref{sec:cryptographic-primitives:encryption}). It can do so during the grace window, once nothing is pending, and submit the result as soon as the window closes, provided that the root has not changed. \subsubsection{Election finalization} \label{sec:vocdoni-protocol:finalization}

@@ -225,7 +225,7 @@

\begin{figure}[h] \centerline{\includegraphics[width=0.85\textwidth,draft=false]{\figs/protocol-flow-results.pdf}} \setlength{\abovecaptionskip}{5pt} - \caption{Message flow of an election: decryption and finalization. The path depends on who holds the election key.} + \caption{Message flow of an election: decryption and finalization. The path depends on who holds the election key; in the threshold path, partial decryptions also wait for the organizer's reveal (locked mode) or for the council's decryption gate.} \label{fig:protocol-flow-results} \end{figure}
M v2/sections/protocol-intuition.tex → v2/sections/protocol-intuition.tex

@@ -23,11 +23,11 @@

\begin{enumerate} \item \label{sec:protocol-intuition:vote-casting} \textit{Vote casting}. Voters select their preferred choices according to the voting rules established by the organizer and captured in the process registry. Instead of submitting their votes directly on-chain, they send them off-chain to a sequencer of their choice for processing. - To ensure privacy, votes are encrypted using the election's encryption public key. Additionally, voters compute a unique vote identifier that will allow them to verify that their vote has been included in the final result. Alongside the encrypted vote and the vote identifier, each voter must also provide the following data: a proof of valid voting, demonstrating that the vote complies with the election rules; a proof of eligibility, verifying that they are registered in the census; and a proof of identity ownership, in the form of a digital signature, confirming that they are the legitimate voter and are not impersonating someone else. To mitigate coercion and vote-buying, the protocol allows voters to overwrite their vote any number of times during the voting phase; only the last ballot counts. \\ + To ensure privacy, votes are encrypted using the election's encryption public key. Additionally, voters compute a unique vote identifier that will allow them to verify that their submission has been included in the election state. Alongside the encrypted vote and the vote identifier, each voter must also provide the following data: a proof of valid voting, demonstrating that the vote complies with the election rules; a proof of eligibility, verifying that they are registered in the census; and a proof of identity ownership, in the form of a digital signature, confirming that they are the legitimate voter and are not impersonating someone else. To mitigate coercion and vote-buying, the protocol allows voters to overwrite their vote any number of times during the voting phase; only the last ballot counts. \\ % \item \label{sec:protocol-intuition:vote-batching} \textit{Vote batching}. During this phase, sequencers collect encrypted votes from multiple voters along with their corresponding proofs, and verify the validity of these submissions. That is, sequencers - verify the signatures, to ensure the votes were cast by legitimate voters; they verify the proof of compliance, confirming that each vote adheres to the election voting rules; and they verify the census membership proofs against the commitment to the census data that was originally registered in the process registry. Valid votes are grouped into batches. For each batch, the sequencer re-encrypts the votes, so that voters can no longer decrypt or recognize their own ballots, and also re-encrypts a random sample of the ballots already stored in the state, so that an observer cannot tell a voter who overwrote a ballot from one whose ballot was merely refreshed. While this process does not alter the final tally, it prevents voters from proving their choice to third parties, which mitigates vote selling and coercion. The sequencer then updates the election state and the encrypted tally, and publishes the data of the batch in Ethereum data blobs. + verify the signatures, to ensure the votes were cast by legitimate voters; they verify the proof of compliance, confirming that each vote adheres to the election voting rules; and they verify the census membership proofs against the commitment to the census data that was originally registered in the process registry. Valid votes are grouped into batches. For each batch, the sequencer re-encrypts the votes, so that voters can no longer decrypt or recognize their own ballots, and also re-encrypts a random sample of the ballots already stored in the state, so that an outside observer can hardly tell a voter who overwrote a ballot from one whose ballot was merely refreshed. While this process does not alter the final tally, it makes it harder for voters to prove their choice to third parties, which mitigates vote selling and coercion. The sequencer then updates the election state and the encrypted tally, and publishes the data of the batch in Ethereum data blobs. Instead of submitting individual verifications for each vote, the sequencer generates a single \ac{ZK} proof that attests to the correctness of the whole batch: every verification, every re-encryption, the state update, and the published data. Finally, the sequencer submits the proof and the new state root to the process registry, which verifies the proof and the blobs and accepts the new state. Settlement is permissionless: any sequencer may submit the next state transition, and the first valid one to land advances the election.\\ \end{enumerate}
M v2/sections/smart-contracts.tex → v2/sections/smart-contracts.tex

@@ -5,13 +5,13 @@

\begin{figure}[h] \centerline{\includegraphics[width=\textwidth,draft=false]{\figs/smart-contracts.pdf}} \setlength{\abovecaptionskip}{5pt} - \caption{The \davinci smart contracts and the calls between them. The process registry is the only contract that organizers, sequencers, and voters interact with; it delegates proof verification, blob checks, census root checks, and threshold decryption to the other contracts.} + \caption{The \davinci smart contracts and the calls between them. The process registry is the main interface for election operations; it delegates proof verification, blob checks, census root checks, and threshold decryption to the other contracts. Council ceremonies are managed directly on the council manager, and sequencers may record L1 origins directly on the L1 blob verifier.} \label{fig:smart-contracts} \end{figure} \paragraph{Process registry.} -The \hlset{\processregistry} smart contract manages the lifecycle of every election (a \emph{process}), from its creation to the registration of final results. It stores, for each process, the record summarized in Table~\ref{tab:process-record}, and it ensures that all transitions follow the protocol. A process is identified by a 31-byte \processid that concatenates the 20-byte address of its creator, a 4-byte prefix taken from the last four bytes of $\Keccak(\texttt{chainID} \conc \texttt{registryAddress})$, and a 7-byte per-creator nonce. The prefix binds identifiers to one registry on one chain, and the nonce makes the identifier of the next process of an organizer predictable, which lets the organizer obtain an encryption key for it before creating it. At creation, the registry validates the parameters, obtains the encryption key, and computes the genesis root of the state tree (see Section~\ref{sec:vocdoni-protocol:state-tree}) on-chain, so the first state transition must start from a root that the registry derived itself. +The \hlset{\processregistry} smart contract manages the lifecycle of every election (a \emph{process}), from its creation to the registration of final results. It stores, for each process, the record summarized in Table~\ref{tab:process-record}, and it ensures that all transitions follow the protocol. A process is identified by a 31-byte \processid that concatenates the 20-byte address of its creator, a 4-byte prefix taken from the last four bytes of $\Keccak(\texttt{chainID}_{\text{BE4}} \conc \texttt{registryAddress}_{20})$, and a 7-byte big-endian per-creator nonce. The prefix binds identifiers to one registry on one chain, and the nonce makes the identifier of the next process of an organizer predictable, which lets the organizer obtain an encryption key for it before creating it. At creation, the registry validates the parameters, obtains the encryption key, and computes the genesis root of the state tree (see Section~\ref{sec:vocdoni-protocol:state-tree}) on-chain, so the first state transition must start from a root that the registry derived itself. The registry is deployed with immutable parameters that pin the cryptographic identity of the protocol: the address of the ZisK verifier; the program verification keys of the batch program and of the results program; the root \rootc of the ZisK setup under which both are wrapped; and \ballotvkhash, the SHA-256 digest of the verification key of the ballot circuit. A state transition or a results proof is accepted only if it was proven by the pinned program under the pinned setup, and a batch is accepted only if it verified ballot proofs under the pinned ballot key. The registry is also deployed with the parameters of the grace window (see Section~\ref{sec:vocdoni-protocol:flow:grace}) and, optionally, with the addresses of a \ac{DKG} manager, a council manager, and an L1 blob verifier. It has no owner and cannot be upgraded: a new protocol release is deployed as a new registry.
M v2/sections/state-tree.tex → v2/sections/state-tree.tex

@@ -55,7 +55,7 @@ where the first eight bytes of the digest $h$ are read as a big-endian integer. For a \ac{CSP} census, the slot is $(\configmax + 1) + \idx$, where $\idx$ is the index signed by the \ac{CSP}. In both cases, the result lies in the ballot namespace. The value stored at a slot is the SHA-256 digest of the voter's latest encrypted ballot, after re-encryption by the sequencer; the ciphertexts themselves are published in the data blobs (see Section~\ref{sec:vocdoni-protocol:circuits:batch}).

This construction assigns each eligible voter a unique, reserved leaf in the state tree. Because the address is authenticated by the voter's signature and bound to the census proof (or the index is authenticated by the \ac{CSP}'s signature), a voter can only write to their own slot. Deriving the slot from the address rather than from the voter's position in the census also keeps slots stable when the census grows, and avoids relying on the position of a leaf in a lean \ac{IMT}, which a membership proof does not pin (see Section~\ref{sec:background:mt}). This enables efficient \emph{last-vote-wins} semantics: if a voter overwrites their ballot, the new ciphertext replaces the previous one at the same slot, while the tally is updated by subtracting the old contribution and adding the new one. The uniqueness of slots among the members of a census is discussed in Section~\ref{sec:vocdoni-protocol:census}. -Besides the slots written by votes, every state transition also rewrites a random sample of already occupied slots with fresh re-encryptions of the ballots they hold (see Section~\ref{sec:vocdoni-protocol:circuits:batch}). As a consequence, a change in the value of a slot does not reveal whether its voter cast a new ballot. Only the first write to a slot, which turns an empty leaf into an occupied one, is distinguishable, and it reveals that the voter participated, not how. +Besides the slots written by votes, every state transition also rewrites a random sample of already occupied slots with fresh re-encryptions of the ballots they hold (see Section~\ref{sec:vocdoni-protocol:circuits:batch}). As a consequence, a change in the value of a slot does not by itself reveal whether its voter cast a new ballot. Only the first write to a slot, which turns an empty leaf into an occupied one, is distinguishable, and it reveals that the voter participated, not how. \paragraph{Vote identifier namespace.}

@@ -66,11 +66,11 @@ \label{eq:voteid}

\end{equation} where $k$ is the secret randomness of the voter's ballot encryption. The value stored under a vote identifier is zero: the leaf only records that the identifier has been used. The ballot circuit enforces this derivation, and the batch program enforces that $N \le \voteid < 2^D$ and that each vote identifier is inserted into an empty leaf, guaranteeing that vote identifiers cannot overlap with configuration entries or ballot storage and cannot be reused. -Unlike classical nullifiers, vote identifiers are not used to prevent duplicate voting directly: duplicate voting is prevented by the slot, which a voter can only overwrite. Instead, a vote identifier is a receipt of inclusion that does not reveal the slot. Since the vote identifier depends on a fresh random value $k$, if a collision occurs (i.e., the computed leaf is already occupied), the sequencer rejects the ballot, and the batch program would reject any transition that inserted it. In that case, the voter must resample $k$, re-encrypt the ballot, and recompute a new vote identifier until an unused leaf is obtained. -As a result, collisions do not compromise correctness or liveness, but merely require retrying the identifier derivation. +Unlike classical nullifiers, vote identifiers are not used to prevent duplicate voting directly: duplicate voting is prevented by the slot, which a voter can only overwrite. Instead, a vote identifier is a receipt of inclusion that does not reveal the slot; since it is never removed, it shows that a submission was included, not that it is the ballot that is finally counted. Since the vote identifier depends on a fresh random value $k$, if a collision occurs (i.e., the computed leaf is already occupied), the sequencer rejects the ballot, and the batch program would reject any transition that inserted it. In that case, the voter must resample $k$, re-encrypt the ballot, and recompute a new vote identifier until an unused leaf is obtained. +As a result, collisions do not compromise correctness, and they can be retried while enough time remains before the end of the election. Note that the maximum number of vote identifiers that can be stored is bounded by the size of this namespace ($2^{D-1}$), which upper-bounds the total number of votes and overwrites that can be processed throughout the election. -This capacity is orders of magnitude larger than any realistic election workload: historical elections peak at $\approx 10^{9}$ votes~\cite{reuters2024india}, ensuring that identifier exhaustion is practically impossible and that collisions are exceptionally rare\footnote{Based on the birthday paradox, the probability of at least one collision occurring is given by $P=1 - e^{-n^2/2d}$, where $n$ is the number of vote identifiers and $d = 2^{D-1}$. For a large-scale national election of $10^8$ votes emitted, this probability is vanishingly small ($\approx0.054\%$), and for an extreme workload of $10^9$ votes, the probability of a single collision is only $\approx5.3\%$, meaning that the need to resample $k$ remains highly improbable.}. +This capacity is orders of magnitude larger than any realistic election workload: historical elections peak at $\approx 10^{9}$ votes~\cite{reuters2024india}, ensuring that identifier exhaustion is practically impossible and that collisions are rare\footnote{Based on the birthday paradox, the probability of at least one collision occurring is given by $P=1 - e^{-n^2/2d}$, where $n$ is the number of vote identifiers and $d = 2^{D-1}$. For a large-scale national election of $10^8$ votes emitted, this probability is vanishingly small ($\approx0.054\%$), and for an extreme workload of $10^9$ votes, the probability of at least one collision is about $5.3\%$; even then, only the affected voter needs to resample $k$.}. Together, the state tree provides a compact and tamper-proof commitment to the current status of the election. At the end of the election, the final state root together with the on-chain verification of all transitions serves as a complete cryptographic record of the election, encapsulating both the tally and the integrity of the entire voting procedure.