docs(spec): rewrite v2 for the zkvm-based protocol Replace the circuit pipeline with the batch and results zkVM programs, describe the OP Stack L1-blob settlement, key modes, census origins, the SHA-256 state tree, silent revoting and the grace window, and add draw.io figures for every part of the flow.
jump to
@@ -628,4 +628,170 @@ title = {{DAVINCI} Contracts: {EVM} Smart Contracts},
howpublished = {GitHub repository}, year = {2025}, url = {https://github.com/vocdoni/davinci-contracts} -}+} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% zkVM-based DAVINCI + +@misc{davinci-zkvm, + author = {{Vocdoni}}, + title = {{DAVINCI} {zkVM}: Batch, Results and Aggregator Programs for the {ZisK} {zkVM}}, + howpublished = {GitHub repository, release v0.3.0}, + year = {2026}, + url = {https://github.com/vocdoni/davinci-zkvm} +} + +@misc{davinci-sequencer, + author = {{Vocdoni}}, + title = {{DAVINCI} Sequencer: Node and Client Library}, + howpublished = {GitHub repository, release v0.6.0}, + year = {2026}, + url = {https://github.com/vocdoni/davinci-sequencer} +} + +@misc{davinci-circom, + author = {{Vocdoni}}, + title = {{DAVINCI} Circom: Ballot Circuits}, + howpublished = {GitHub repository}, + year = {2026}, + url = {https://github.com/vocdoni/davinci-circom} +} + +@misc{davinci-dkg, + author = {{Vocdoni}}, + title = {{DAVINCI} {DKG}: Permissionless Threshold Key Generation and Decryption}, + howpublished = {GitHub repository, release v0.11.0}, + year = {2026}, + url = {https://github.com/vocdoni/davinci-dkg} +} + +@misc{davinci-council, + author = {{Vocdoni}}, + title = {{DAVINCI} {DKG} Council: Invite-Only Threshold Key Ceremonies}, + howpublished = {GitHub repository, release v0.3.0}, + year = {2026}, + url = {https://github.com/vocdoni/davinci-dkg-council} +} + +@misc{zisk, + author = {{Polygon Labs}}, + title = {{ZisK}: A High-Performance {zkVM} for {RISC-V} Programs}, + howpublished = {GitHub repository, version 1.3.2-alpha}, + year = {2026}, + url = {https://github.com/0xPolygonHermez/zisk} +} + +@misc{bruestle2023risczero, + author = {Jeremy Bruestle and Paul Gafni and {RISC Zero Team}}, + title = {{RISC} {Zero} {zkVM}: Scalable, Transparent Arguments of {RISC-V} Integrity}, + howpublished = {RISC Zero technical report}, + year = {2023}, + url = {https://dev.risczero.com/proof-system-in-detail.pdf} +} + +@misc{sp1, + author = {{Succinct Labs}}, + title = {{SP1}: A Performant, Open-Source {zkVM}}, + howpublished = {GitHub repository}, + year = {2024}, + url = {https://github.com/succinctlabs/sp1} +} + +@misc{riscv2019, + author = {Andrew Waterman and Krste Asanovi\'{c}}, + title = {The {RISC-V} Instruction Set Manual, Volume {I}: Unprivileged {ISA}}, + howpublished = {RISC-V Foundation, document version 20191213}, + year = {2019}, + url = {https://riscv.org/specifications/} +} + +@misc{bensasson2018stark, + author = {Eli Ben-Sasson and Iddo Bentov and Yinon Horesh and Michael Riabzev}, + title = {Scalable, Transparent, and Post-Quantum Secure Computational Integrity}, + howpublished = {Cryptology {ePrint} Archive, Paper 2018/046}, + year = {2018}, + url = {https://eprint.iacr.org/2018/046} +} + +@inproceedings{bensasson2018fri, + author = {Eli Ben-Sasson and Iddo Bentov and Yinon Horesh and Michael Riabzev}, + title = {Fast {Reed-Solomon} Interactive Oracle Proofs of Proximity}, + booktitle = {45th International Colloquium on Automata, Languages, and Programming ({ICALP} 2018)}, + series = {LIPIcs}, + volume = {107}, + pages = {14:1--14:17}, + year = {2018} +} + +@misc{eip7594, + author = {Danny Ryan and Dankrad Feist and Francesco D'Amato and Hsiao-Wei Wang and Alex Stokes}, + title = {{EIP-7594}: {PeerDAS} -- Peer Data Availability Sampling, {E}thereum {I}mprovement {P}roposals, no. 7594}, + url = {https://eips.ethereum.org/EIPS/eip-7594}, + year = {2024} +} + +@misc{opstack, + author = {{Optimism Collective}}, + title = {The {OP} {Stack} Specification}, + howpublished = {Online specification}, + year = {2026}, + url = {https://specs.optimism.io} +} + +@techreport{fips180-4, + author = {{National Institute of Standards and Technology}}, + title = {Secure Hash Standard ({SHS})}, + institution = {NIST}, + type = {Federal Information Processing Standards Publication}, + number = {180-4}, + year = {2015}, + doi = {10.6028/NIST.FIPS.180-4} +} + +@inproceedings{chaum1992wallet, + author = {David Chaum and Torben Pryds Pedersen}, + title = {Wallet Databases with Observers}, + booktitle = {Advances in Cryptology -- {CRYPTO} '92}, + series = {Lecture Notes in Computer Science}, + volume = {740}, + pages = {89--105}, + publisher = {Springer}, + year = {1992} +} + +@inproceedings{bellare1998batch, + author = {Mihir Bellare and Juan A. Garay and Tal Rabin}, + title = {Fast Batch Verification for Modular Exponentiation and Digital Signatures}, + booktitle = {Advances in Cryptology -- {EUROCRYPT} '98}, + series = {Lecture Notes in Computer Science}, + volume = {1403}, + pages = {236--250}, + publisher = {Springer}, + year = {1998} +} + +@misc{arbo, + author = {{Vocdoni}}, + title = {arbo: Sparse {Merkle} Tree Compatible with the circomlib Verifier}, + howpublished = {GitHub repository}, + year = {2021}, + url = {https://github.com/vocdoni/arbo} +} + +@misc{leanimt, + author = {{Privacy and Scaling Explorations}}, + title = {{LeanIMT}: Lean Incremental {Merkle} Tree}, + howpublished = {zk-kit library}, + year = {2024}, + url = {https://github.com/privacy-scaling-explorations/zk-kit} +} + +@inproceedings{feldman1987practical, + author = {Paul Feldman}, + title = {A Practical Scheme for Non-interactive Verifiable Secret Sharing}, + booktitle = {28th Annual Symposium on Foundations of Computer Science ({FOCS} 1987)}, + pages = {427--438}, + publisher = {IEEE}, + year = {1987} +} + +
@@ -4,14 +4,20 @@ \begin{acronym}
\acro{BFT}{byzantine fault tolerant} \acro{CRS}{common reference string} \acro{CSP}{credential service provider} + \acro{DA}{data availability} \acro{DKG}{distributed key generation} + \acro{EIP}{Ethereum improvement proposal} \acro{EVM}{Ethereum virtual machine} \acro{IMT}{incremental Merkle tree} \acro{IPFS}{interplanetary file system} + \acro{KZG}{Kate--Zaverucha--Goldberg} \acro{MPC}{multi-party computation} - \acro{SMT}{sparse Merkle tree} + \acro{MPT}{Merkle Patricia trie} + \acro{SMT}{sparse Merkle tree} + \acro{STARK}{scalable transparent argument of knowledge} \acro{URI}{uniform resource identifier} \acro{ZK}{zero-knowledge} \acro{ZKP}{zero-knowledge proofs} \acro{ZK-SNARK}{zero-knowledge succinct non-interactive argument of knowledge} -\end{acronym}+ \acro{zkVM}{zero-knowledge virtual machine} +\end{acronym}
@@ -53,10 +53,10 @@ % ---- 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 transitions to a specialized \ac{ZK} rollup system that inherits network security from settlement layers such as the Ethereum mainnet. The system relies on cryptographic proofs to ensure integrity and security, eliminating the need for centralized authorities. By integrating \acsp{ZK-SNARK} 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 Ethereum smart contracts, and uses Ethereum data blobs for data availability. With a focus on accessibility, scalability, receipt-freeness, and automation, \davinci aims to facilitate high-frequency 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 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. % Finally, the design of \davinci is grounded in practicality: all components are - implemented using current technologies and evaluated on production-grade hardware. In sum, the proposed architecture is not merely theoretical, but a viable solution ready for short-term deployment. The source code has been made open source, allowing practitioners and researchers to further investigate its details and potential for future uses. + 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. \end{abstract} % ---- Table of contents ----
@@ -5,6 +5,7 @@ %% DOCUMENT STYLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Document sytle +\setlength{\emergencystretch}{3em} % fewer overfull lines with long monospace identifiers \setcounter{secnumdepth}{3} %enumerate sections up to depth 3 (subsubsection) \setlist[itemize,1]{label=$\bullet$} %set the first-level itemize label to use math mode \bullet \setlist[enumerate,2]{label=(\alph*),ref=\alph*} %the second-level enumerates (enumerate,2) should only show (a) when referenced (not (3a)).@@ -229,6 +230,55 @@ \newcommand{\dkgmanagement}{\smartcontractstyle{KeyManagement}}
\newcommand{\statetransitionverifier}{\smartcontractstyle{StateTransitionVerifier}} \newcommand{\resultsverifier}{\smartcontractstyle{ResultsVerifier}} \newcommand{\censusmanagement}{\smartcontractstyle{CensusManagement}} +\newcommand{\processregistry}{\smartcontractstyle{ProcessRegistry}} +\newcommand{\ziskverifier}{\smartcontractstyle{ZiskVerifier}} +\newcommand{\lblobverifier}{\smartcontractstyle{L1BlobVerifier}} +\newcommand{\lblock}{\smartcontractstyle{L1Block}} +\newcommand{\dkgadapter}{\smartcontractstyle{DavinciDKGAdapter}} +\newcommand{\counciladapter}{\smartcontractstyle{CouncilAdapter}} +\newcommand{\dkgregistry}{\smartcontractstyle{DKGRegistry}} +\newcommand{\dkgmanager}{\smartcontractstyle{DKGManager}} +\newcommand{\dkgappmanager}{\smartcontractstyle{DKGAppManager}} +\newcommand{\councilmanager}{\smartcontractstyle{CouncilManager}} +\newcommand{\censusvalidator}{\smartcontractstyle{ICensusValidator}} + +% Contract methods and events +\newcommand{\fn}[1]{\texttt{#1}\xspace} + +% zkVM programs and proofs +\newcommand{\batchprogram}{\circuitstyle{BatchProgram}} +\newcommand{\resultsprogram}{\circuitstyle{ResultsProgram}} +\newcommand{\aggregatorprogram}{\circuitstyle{AggregatorProgram}} +\newcommand{\Prog}{\mathcal{P}} +\newcommand{\VMProve}{\methodstyle{VM.Prove}} +\newcommand{\VMVerify}{\methodstyle{VM.Verify}} +\newcommand{\VMExec}{\methodstyle{VM.Execute}} +\newcommand{\programvk}{\variablestyle{programVK}} +\newcommand{\rootc}{\variablestyle{rootCVadcopFinal}} +\newcommand{\publicvalues}{\variablestyle{publicValues}} +\newcommand{\batchproof}{\variablestyle{batchProof}} +\newcommand{\ballotinputshash}{\variablestyle{inputsHash}} +\newcommand{\ballotvkhash}{\variablestyle{ballotVKHash}} +\newcommand{\blobsdigest}{\variablestyle{blobsDigest}} +\newcommand{\nblobs}{\variablestyle{nBlobs}} +\newcommand{\occupiedbefore}{\variablestyle{occupiedBefore}} +\newcommand{\voterscount}{\variablestyle{votersCount}} +\newcommand{\overwrittencount}{\variablestyle{overwrittenVotesCount}} +\newcommand{\maxvoters}{\variablestyle{maxVoters}} +\newcommand{\seed}{\variablestyle{seed}} +\newcommand{\slot}{\variablestyle{slot}} +\newcommand{\keymode}{\variablestyle{keyMode}} +\newcommand{\grace}{\variablestyle{grace}} +\newcommand{\graceend}{\variablestyle{graceEnd}} +\newcommand{\lastvoteat}{\variablestyle{lastVoteAt}} +\newcommand{\metadatauri}{\variablestyle{metadataURI}} +\newcommand{\failmask}{\variablestyle{failMask}} +\newcommand{\okflag}{\variablestyle{ok}} +\newcommand{\groupsize}{\ballotstyle{groupSize}} +\newcommand{\Sha}{\methodstyle{SHA256}} +\newcommand{\SlotOf}{\methodstyle{Slot}} +\newcommand{\CPProve}{\methodstyle{CP.Prove}} +\newcommand{\CPVerify}{\methodstyle{CP.Verify}} % Blobs \newcommand{\blobstyle}[1]{{\sf{#1}}\xspace}
@@ -1,1755 +0,0 @@
-<mxfile host="Electron" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/29.0.3 Chrome/140.0.7339.249 Electron/38.7.0 Safari/537.36" version="29.0.3" pages="7"> - <diagram name="1. voter-circuit" id="-BY3RIMELlOST2Ke_Soi"> - <mxGraphModel dx="1185" dy="642" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> - <root> - <mxCell id="9w8_UW6vJWkl_njZVMp4-0" /> - <mxCell id="9w8_UW6vJWkl_njZVMp4-1" parent="9w8_UW6vJWkl_njZVMp4-0" /> - <mxCell id="nvt69mghrfZXCWMQVhOf-0" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" parent="9w8_UW6vJWkl_njZVMp4-1" vertex="1"> - <mxGeometry x="400" y="50" width="820" height="310" as="geometry" /> - </mxCell> - <mxCell id="nvt69mghrfZXCWMQVhOf-1" value="" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;" parent="9w8_UW6vJWkl_njZVMp4-1" vertex="1"> - <mxGeometry x="420" y="140" width="780" height="130" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-4" value="<div>\(\text{protocolRulesCompliance}(\text{ballotMode, weight, ballot})\)</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" parent="9w8_UW6vJWkl_njZVMp4-1" vertex="1"> - <mxGeometry x="440" y="190" width="320" height="40" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-5" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.125;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" parent="9w8_UW6vJWkl_njZVMp4-1" source="9w8_UW6vJWkl_njZVMp4-6" target="9w8_UW6vJWkl_njZVMp4-4" edge="1"> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-6" value="$$\text{ballotMode}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="9w8_UW6vJWkl_njZVMp4-1" vertex="1"> - <mxGeometry x="440" y="80" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-7" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.165;entryY=-0.015;entryDx=0;entryDy=0;entryPerimeter=0;startArrow=oval;startFill=1;fontSize=11;fontFamily=Courier New;" parent="9w8_UW6vJWkl_njZVMp4-1" target="9w8_UW6vJWkl_njZVMp4-14" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="720" y="160" as="sourcePoint" /> - <Array as="points"> - <mxPoint x="810" y="160" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-8" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;fontFamily=Courier New;" parent="9w8_UW6vJWkl_njZVMp4-1" source="9w8_UW6vJWkl_njZVMp4-9" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="720" y="190" as="targetPoint" /> - <Array as="points"> - <mxPoint x="720" y="190" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-9" value="$$\text{ballot}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="9w8_UW6vJWkl_njZVMp4-1" vertex="1"> - <mxGeometry x="680" y="80" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-10" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.445;entryY=0.014;entryDx=0;entryDy=0;entryPerimeter=0;fontSize=11;fontFamily=Courier New;" parent="9w8_UW6vJWkl_njZVMp4-1" target="9w8_UW6vJWkl_njZVMp4-14" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="860" y="120" as="sourcePoint" /> - </mxGeometry> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-12" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.833;entryY=0.003;entryDx=0;entryDy=0;entryPerimeter=0;fontSize=11;fontFamily=Courier New;" parent="9w8_UW6vJWkl_njZVMp4-1" target="9w8_UW6vJWkl_njZVMp4-14" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="930" y="120" as="sourcePoint" /> - </mxGeometry> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-14" value="$$\text{Enc}_{EPK}(\text{ballot}; k)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" parent="9w8_UW6vJWkl_njZVMp4-1" vertex="1"> - <mxGeometry x="780" y="190" width="180" height="40" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-15" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="9w8_UW6vJWkl_njZVMp4-1" source="9w8_UW6vJWkl_njZVMp4-4" target="9w8_UW6vJWkl_njZVMp4-16" edge="1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="639.58" y="230" as="sourcePoint" /> - <mxPoint x="639.58" y="390" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-16" value="true" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" parent="9w8_UW6vJWkl_njZVMp4-1" vertex="1"> - <mxGeometry x="560" y="300" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-17" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="9w8_UW6vJWkl_njZVMp4-1" source="9w8_UW6vJWkl_njZVMp4-14" target="9w8_UW6vJWkl_njZVMp4-18" edge="1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="880" y="230" as="sourcePoint" /> - <mxPoint x="870" y="510" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-18" value="$$\text{encryptedBallot}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="9w8_UW6vJWkl_njZVMp4-1" vertex="1"> - <mxGeometry x="810" y="300" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-19" value="PROTOCOL RULES COMPLIANCE" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" parent="9w8_UW6vJWkl_njZVMp4-1" vertex="1"> - <mxGeometry x="430" y="390.63" width="322.35" height="40" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-20" value="VOTE ENCRYPTION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#f5f5f5;strokeColor=#666666;fontSize=11;fontColor=#333333;" parent="9w8_UW6vJWkl_njZVMp4-1" vertex="1"> - <mxGeometry x="777" y="390.63" width="190" height="40" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-21" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="9w8_UW6vJWkl_njZVMp4-1" vertex="1"> - <mxGeometry x="580.39" y="217.12" width="20" height="327.04" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-22" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="9w8_UW6vJWkl_njZVMp4-1" vertex="1"> - <mxGeometry x="862.52" y="287.87" width="20" height="185.56" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-23" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="9w8_UW6vJWkl_njZVMp4-1" source="9w8_UW6vJWkl_njZVMp4-24" target="9w8_UW6vJWkl_njZVMp4-4" edge="1"> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-24" value="$$\text{weight}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="9w8_UW6vJWkl_njZVMp4-1" vertex="1"> - <mxGeometry x="560" y="80" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="OdLuYHqov1AF89vjBi5t-0" value="$$\text{Hash}(\text{processID} || \text{address} || k)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="9w8_UW6vJWkl_njZVMp4-1" vertex="1"> - <mxGeometry x="980" y="190" width="200" height="40" as="geometry" /> - </mxCell> - <mxCell id="OdLuYHqov1AF89vjBi5t-1" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" parent="9w8_UW6vJWkl_njZVMp4-1" source="OdLuYHqov1AF89vjBi5t-5" edge="1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="1150" y="160" as="sourcePoint" /> - <mxPoint x="1150" y="190" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="OdLuYHqov1AF89vjBi5t-2" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.149;entryY=-0.005;entryDx=0;entryDy=0;entryPerimeter=0;fontSize=11;fontFamily=Courier New;" parent="9w8_UW6vJWkl_njZVMp4-1" source="OdLuYHqov1AF89vjBi5t-4" edge="1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="1079.8899999999999" y="150" as="sourcePoint" /> - <mxPoint x="1079.8000000000002" y="189.79999999999995" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="OdLuYHqov1AF89vjBi5t-3" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;fontFamily=Courier New;" parent="9w8_UW6vJWkl_njZVMp4-1" source="OdLuYHqov1AF89vjBi5t-0" target="OdLuYHqov1AF89vjBi5t-6" edge="1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="1079.58" y="230" as="sourcePoint" /> - <mxPoint x="1080" y="710" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="OdLuYHqov1AF89vjBi5t-4" value="$$\text{processID}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="9w8_UW6vJWkl_njZVMp4-1" vertex="1"> - <mxGeometry x="1050" y="80" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="OdLuYHqov1AF89vjBi5t-5" value="$$\text{address}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="9w8_UW6vJWkl_njZVMp4-1" vertex="1"> - <mxGeometry x="1120" y="80" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="OdLuYHqov1AF89vjBi5t-6" value="$$\text{voteID}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="9w8_UW6vJWkl_njZVMp4-1" vertex="1"> - <mxGeometry x="1050" y="300" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="OdLuYHqov1AF89vjBi5t-7" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;startArrow=oval;startFill=1;fontSize=11;fontFamily=Courier New;" parent="9w8_UW6vJWkl_njZVMp4-1" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="930" y="160" as="sourcePoint" /> - <mxPoint x="1010" y="190" as="targetPoint" /> - <Array as="points"> - <mxPoint x="930" y="160" /> - <mxPoint x="1010" y="160" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="OdLuYHqov1AF89vjBi5t-8" value="$$k$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="9w8_UW6vJWkl_njZVMp4-1" vertex="1"> - <mxGeometry x="900" y="80" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="OdLuYHqov1AF89vjBi5t-9" value="<div style="font-size: 11px;">$$EPK$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="9w8_UW6vJWkl_njZVMp4-1" vertex="1"> - <mxGeometry x="830.66" y="80" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="IJeOMj3sBRJv-nG6xJRO-0" value="VOTE ID" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#ffe6cc;strokeColor=#d79b00;fontSize=11;" parent="9w8_UW6vJWkl_njZVMp4-1" vertex="1"> - <mxGeometry x="979.99" y="390.65" width="208.01" height="40" as="geometry" /> - </mxCell> - <mxCell id="IJeOMj3sBRJv-nG6xJRO-1" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="9w8_UW6vJWkl_njZVMp4-1" vertex="1"> - <mxGeometry x="1073.44" y="276.99" width="20" height="207.33" as="geometry" /> - </mxCell> - </root> - </mxGraphModel> - </diagram> - <diagram name="2. authentication-circuit" id="o6OCBXuaYOciUBZEVznX"> - <mxGraphModel dx="4740" dy="3418" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> - <root> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-0" /> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-1" parent="6AO6W4_8KHMcSuPCPKqw-0" /> - <mxCell id="n4zl9lOKqNB3rH38xvPK-0" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="80" y="-760" width="1280" height="500" as="geometry" /> - </mxCell> - <mxCell id="n4zl9lOKqNB3rH38xvPK-1" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="110" y="-679.88" width="1220" height="339.88" as="geometry" /> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-4" value="$$\text{Proof.verify}(\text{voteProof, public inputs})$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="130" y="-410" width="200" height="40" as="geometry" /> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-5" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.25;entryY=0;entryDx=0;entryDy=0;fontSize=11;" parent="6AO6W4_8KHMcSuPCPKqw-1" source="6AO6W4_8KHMcSuPCPKqw-7" target="6AO6W4_8KHMcSuPCPKqw-4" edge="1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="159.89" y="-639.88" as="sourcePoint" /> - <mxPoint x="159.89" y="-589.88" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-6" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="6AO6W4_8KHMcSuPCPKqw-1" source="6AO6W4_8KHMcSuPCPKqw-4" target="6AO6W4_8KHMcSuPCPKqw-47" edge="1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="229.57999999999998" y="-449.88" as="sourcePoint" /> - <mxPoint x="230" y="-320" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-7" value="<div style="font-size: 11px;">$$\text{voteProof}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="150" y="-736.88" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-8" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;fontSize=11;startArrow=none;startFill=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="6AO6W4_8KHMcSuPCPKqw-1" source="6AO6W4_8KHMcSuPCPKqw-9" target="6AO6W4_8KHMcSuPCPKqw-4" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="560" y="-440" as="sourcePoint" /> - <mxPoint x="760" y="-470.88" as="targetPoint" /> - <Array as="points"> - <mxPoint x="512" y="-440" /> - <mxPoint x="280" y="-440" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-9" value="$$\text{public inputs}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="270" y="-509.88" width="390" height="40" as="geometry" /> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-12" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="6AO6W4_8KHMcSuPCPKqw-1" source="6AO6W4_8KHMcSuPCPKqw-13" target="6AO6W4_8KHMcSuPCPKqw-14" edge="1"> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-13" value="$$pk$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="1050" y="-736.88" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-15" value="$$\text{censusProof}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="770" y="-736.88" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-16" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.702;entryY=0.009;entryDx=0;entryDy=0;entryPerimeter=0;" parent="6AO6W4_8KHMcSuPCPKqw-1" source="6AO6W4_8KHMcSuPCPKqw-17" target="6AO6W4_8KHMcSuPCPKqw-21" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1240" y="-309.88" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-17" value="$$\text{signature}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="1200" y="-736.88" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-18" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="6AO6W4_8KHMcSuPCPKqw-1" source="6AO6W4_8KHMcSuPCPKqw-19" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="900" y="-470" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-19" value="$$\text{censusRoot}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="860" y="-736.88" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-20" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="6AO6W4_8KHMcSuPCPKqw-1" source="6AO6W4_8KHMcSuPCPKqw-21" target="6AO6W4_8KHMcSuPCPKqw-49" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1200" y="-320" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-21" value="$$\text{Signature.verify}_{pk}(\text{voteID, signature})$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="1100" y="-410" width="200" height="40" as="geometry" /> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-22" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;startArrow=oval;startFill=1;" parent="6AO6W4_8KHMcSuPCPKqw-1" target="6AO6W4_8KHMcSuPCPKqw-21" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1080" y="-629.88" as="sourcePoint" /> - <mxPoint x="1140" y="-320" as="targetPoint" /> - <Array as="points"> - <mxPoint x="1140" y="-630" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-23" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;startArrow=oval;startFill=1;jumpStyle=arc;" parent="6AO6W4_8KHMcSuPCPKqw-1" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="950" y="-540" as="sourcePoint" /> - <mxPoint x="950" y="-470" as="targetPoint" /> - <Array as="points"> - <mxPoint x="950" y="-480" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-24" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="6AO6W4_8KHMcSuPCPKqw-1" source="6AO6W4_8KHMcSuPCPKqw-25" target="6AO6W4_8KHMcSuPCPKqw-48" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="880" y="-320" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-25" value="<div>$$\text{MT.verify}((\text{weight, address}), \text{censusProof, censusRoot})$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="720" y="-469.88" width="320" height="40" as="geometry" /> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-26" value="" style="endArrow=classic;html=1;rounded=0;fontSize=11;startArrow=oval;startFill=1;" parent="6AO6W4_8KHMcSuPCPKqw-1" edge="1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="670" y="-630" as="sourcePoint" /> - <mxPoint x="770" y="-470" as="targetPoint" /> - <Array as="points"> - <mxPoint x="770" y="-630" /> - <mxPoint x="770" y="-510" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-27" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="6AO6W4_8KHMcSuPCPKqw-1" source="6AO6W4_8KHMcSuPCPKqw-15" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="810" y="-470" as="targetPoint" /> - <mxPoint x="819.71" y="-669.88" as="sourcePoint" /> - <Array as="points"> - <mxPoint x="810" y="-470" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-28" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.82;entryY=0.005;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryPerimeter=0;jumpStyle=arc;" parent="6AO6W4_8KHMcSuPCPKqw-1" source="6AO6W4_8KHMcSuPCPKqw-14" target="6AO6W4_8KHMcSuPCPKqw-46" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1080" y="-559.88" as="sourcePoint" /> - <mxPoint x="618" y="-509.88" as="targetPoint" /> - <Array as="points"> - <mxPoint x="1080" y="-539.88" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-29" value="VOTER'S PROOF VERIFICATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="130" y="-219.25" width="560" height="40" as="geometry" /> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-30" value="CENSUS MEMBERSHIP" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="730" y="-219.25" width="307.19" height="40" as="geometry" /> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-31" value="AUTHENTICATION + NON-MALLEABILITY" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=11;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="1080" y="-219.25" width="230" height="40" as="geometry" /> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-32" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="400" y="-509.88" width="20" height="561.25" as="geometry" /> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-33" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="872.19" y="-382.67999999999995" width="20" height="306.87" as="geometry" /> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-34" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="1184.19" y="-348" width="20" height="237.5" as="geometry" /> - </mxCell> - <mxCell id="GFPi3vpMem_EEXF4PJQ--6" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="6AO6W4_8KHMcSuPCPKqw-1" source="6AO6W4_8KHMcSuPCPKqw-38" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="385" y="-510" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-38" value="<div>$$\text{ballotMode}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="350" y="-736.88" width="70" height="40" as="geometry" /> - </mxCell> - <mxCell id="GFPi3vpMem_EEXF4PJQ--8" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="6AO6W4_8KHMcSuPCPKqw-1" source="6AO6W4_8KHMcSuPCPKqw-39" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="460" y="-510" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-39" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="430" y="-736.88" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-40" value="$$(C_1, C_2)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="500" y="-736.88" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="GFPi3vpMem_EEXF4PJQ--4" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="6AO6W4_8KHMcSuPCPKqw-1" source="6AO6W4_8KHMcSuPCPKqw-42" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="305" y="-510" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-42" value="<div>$$\text{processID}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="270" y="-736.88" width="70" height="40" as="geometry" /> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-45" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;jumpStyle=arc;" parent="6AO6W4_8KHMcSuPCPKqw-1" source="6AO6W4_8KHMcSuPCPKqw-46" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="650" y="-510" as="targetPoint" /> - <Array as="points"> - <mxPoint x="1009" y="-530" /> - <mxPoint x="1000" y="-530" /> - <mxPoint x="1000" y="-540" /> - <mxPoint x="650" y="-540" /> - <mxPoint x="650" y="-510" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-46" value="$$\text{address}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=default;strokeColor=none;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="982" y="-559.88" width="60" height="39.88" as="geometry" /> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-47" value="true" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="190" y="-309.88" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-48" value="true" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="840" y="-309.88" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-49" value="true" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="1160" y="-309.88" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-50" value="$$\text{weight}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="640" y="-736.88" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-51" value="$$\text{voteID}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="570" y="-736.88" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="GFPi3vpMem_EEXF4PJQ--1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="6AO6W4_8KHMcSuPCPKqw-1" source="6AO6W4_8KHMcSuPCPKqw-40" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="530" y="-510" as="targetPoint" /> - <mxPoint x="520" y="-660" as="sourcePoint" /> - <Array as="points"> - <mxPoint x="530" y="-510" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="GFPi3vpMem_EEXF4PJQ--10" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="6AO6W4_8KHMcSuPCPKqw-1" source="6AO6W4_8KHMcSuPCPKqw-51" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="600" y="-510" as="targetPoint" /> - <mxPoint x="700" y="-600" as="sourcePoint" /> - <Array as="points"> - <mxPoint x="600" y="-610" /> - <mxPoint x="600" y="-610" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="GFPi3vpMem_EEXF4PJQ--11" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.92;entryY=0.019;entryDx=0;entryDy=0;entryPerimeter=0;jumpStyle=arc;" parent="6AO6W4_8KHMcSuPCPKqw-1" source="6AO6W4_8KHMcSuPCPKqw-50" target="6AO6W4_8KHMcSuPCPKqw-9" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="669.97" y="-509.88" as="targetPoint" /> - <mxPoint x="719.97" y="-676.88" as="sourcePoint" /> - <Array as="points"> - <mxPoint x="670" y="-570" /> - <mxPoint x="629" y="-570" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-44" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;jumpStyle=arc;startArrow=oval;startFill=1;" parent="6AO6W4_8KHMcSuPCPKqw-1" target="6AO6W4_8KHMcSuPCPKqw-21" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="600" y="-650" as="sourcePoint" /> - <mxPoint x="1162" y="-318.8800000000001" as="targetPoint" /> - <Array as="points"> - <mxPoint x="1200" y="-650" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="6AO6W4_8KHMcSuPCPKqw-14" value="$$\text{Hash}(pk)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" parent="6AO6W4_8KHMcSuPCPKqw-1" vertex="1"> - <mxGeometry x="1040" y="-599.88" width="80" height="40" as="geometry" /> - </mxCell> - </root> - </mxGraphModel> - </diagram> - <diagram name="Copy of 2. authentication-circuit" id="KVSpEcm4WbDDJAcKJysv"> - <mxGraphModel dx="677" dy="1217" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> - <root> - <mxCell id="KXn8IlWK5bg8NCUujisa-0" /> - <mxCell id="KXn8IlWK5bg8NCUujisa-1" parent="KXn8IlWK5bg8NCUujisa-0" /> - <mxCell id="KXn8IlWK5bg8NCUujisa-4" value="$$\text{Proof.verify}(\text{voteProof, public inputs})$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" vertex="1" parent="KXn8IlWK5bg8NCUujisa-1"> - <mxGeometry x="130" y="-410" width="200" height="40" as="geometry" /> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-5" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.25;entryY=0;entryDx=0;entryDy=0;fontSize=11;" edge="1" parent="KXn8IlWK5bg8NCUujisa-1" source="KXn8IlWK5bg8NCUujisa-7" target="KXn8IlWK5bg8NCUujisa-4"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="159.89" y="-639.88" as="sourcePoint" /> - <mxPoint x="159.89" y="-589.88" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-6" value="" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="KXn8IlWK5bg8NCUujisa-1" source="KXn8IlWK5bg8NCUujisa-4" target="KXn8IlWK5bg8NCUujisa-41"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="229.57999999999998" y="-449.88" as="sourcePoint" /> - <mxPoint x="230" y="-320" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-7" value="<div style="font-size: 11px;">$$\text{ballotProof}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="KXn8IlWK5bg8NCUujisa-1"> - <mxGeometry x="140" y="-736.88" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-8" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;fontSize=11;startArrow=none;startFill=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="KXn8IlWK5bg8NCUujisa-1" source="KXn8IlWK5bg8NCUujisa-9" target="KXn8IlWK5bg8NCUujisa-4"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="560" y="-440" as="sourcePoint" /> - <mxPoint x="760" y="-470.88" as="targetPoint" /> - <Array as="points"> - <mxPoint x="512" y="-440" /> - <mxPoint x="280" y="-440" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-9" value="$$\text{public inputs}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" vertex="1" parent="KXn8IlWK5bg8NCUujisa-1"> - <mxGeometry x="270" y="-509.88" width="390" height="40" as="geometry" /> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-10" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="KXn8IlWK5bg8NCUujisa-1" source="KXn8IlWK5bg8NCUujisa-11" target="KXn8IlWK5bg8NCUujisa-50"> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-11" value="$$pk$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="KXn8IlWK5bg8NCUujisa-1"> - <mxGeometry x="1050" y="-736.88" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.702;entryY=0.009;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="KXn8IlWK5bg8NCUujisa-1" source="KXn8IlWK5bg8NCUujisa-14" target="KXn8IlWK5bg8NCUujisa-18"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1240" y="-309.88" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-14" value="$$\text{signature}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="KXn8IlWK5bg8NCUujisa-1"> - <mxGeometry x="1200" y="-736.88" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-17" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="KXn8IlWK5bg8NCUujisa-1" source="KXn8IlWK5bg8NCUujisa-18" target="KXn8IlWK5bg8NCUujisa-43"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1200" y="-320" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-18" value="$$\text{Signature.verify}_{pk}(\text{voteID, signature})$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" vertex="1" parent="KXn8IlWK5bg8NCUujisa-1"> - <mxGeometry x="1100" y="-410" width="200" height="40" as="geometry" /> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-19" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;startArrow=oval;startFill=1;" edge="1" parent="KXn8IlWK5bg8NCUujisa-1" target="KXn8IlWK5bg8NCUujisa-18"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1080" y="-629.88" as="sourcePoint" /> - <mxPoint x="1140" y="-320" as="targetPoint" /> - <Array as="points"> - <mxPoint x="1140" y="-630" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-21" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="KXn8IlWK5bg8NCUujisa-1" source="KXn8IlWK5bg8NCUujisa-40"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="880" y="-309.8800000000001" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-25" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.82;entryY=0.005;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryPerimeter=0;jumpStyle=arc;" edge="1" parent="KXn8IlWK5bg8NCUujisa-1" source="KXn8IlWK5bg8NCUujisa-50" target="KXn8IlWK5bg8NCUujisa-40"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1080" y="-559.88" as="sourcePoint" /> - <mxPoint x="618" y="-509.88" as="targetPoint" /> - <Array as="points"> - <mxPoint x="1080" y="-539.88" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-26" value="VOTER'S PROOF VERIFICATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" vertex="1" parent="KXn8IlWK5bg8NCUujisa-1"> - <mxGeometry x="130" y="-219.25" width="560" height="40" as="geometry" /> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-28" value="AUTHENTICATION + NON-MALLEABILITY" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=11;" vertex="1" parent="KXn8IlWK5bg8NCUujisa-1"> - <mxGeometry x="1080" y="-219.25" width="230" height="40" as="geometry" /> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-29" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="KXn8IlWK5bg8NCUujisa-1"> - <mxGeometry x="400" y="-509.88" width="20" height="561.25" as="geometry" /> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-31" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="KXn8IlWK5bg8NCUujisa-1"> - <mxGeometry x="1184.19" y="-348" width="20" height="237.5" as="geometry" /> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-32" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="KXn8IlWK5bg8NCUujisa-1" source="KXn8IlWK5bg8NCUujisa-33"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="385" y="-510" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-33" value="<div>$$\text{ballotMode}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="KXn8IlWK5bg8NCUujisa-1"> - <mxGeometry x="350" y="-736.88" width="70" height="40" as="geometry" /> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-34" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="KXn8IlWK5bg8NCUujisa-1" source="KXn8IlWK5bg8NCUujisa-35"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="460" y="-510" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-35" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="KXn8IlWK5bg8NCUujisa-1"> - <mxGeometry x="430" y="-736.88" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-36" value="$$\text{encryptedBallot}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="KXn8IlWK5bg8NCUujisa-1"> - <mxGeometry x="500" y="-736.88" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-37" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="KXn8IlWK5bg8NCUujisa-1" source="KXn8IlWK5bg8NCUujisa-38"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="305" y="-510" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-38" value="<div>$$\text{processID}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="KXn8IlWK5bg8NCUujisa-1"> - <mxGeometry x="270" y="-736.88" width="70" height="40" as="geometry" /> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-39" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;jumpStyle=arc;" edge="1" parent="KXn8IlWK5bg8NCUujisa-1" source="KXn8IlWK5bg8NCUujisa-40"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="650" y="-510" as="targetPoint" /> - <Array as="points"> - <mxPoint x="1009" y="-530" /> - <mxPoint x="1000" y="-530" /> - <mxPoint x="1000" y="-540" /> - <mxPoint x="650" y="-540" /> - <mxPoint x="650" y="-510" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-40" value="$$\text{address}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=default;strokeColor=none;fontFamily=Courier New;" vertex="1" parent="KXn8IlWK5bg8NCUujisa-1"> - <mxGeometry x="982" y="-559.88" width="60" height="39.88" as="geometry" /> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-41" value="true" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" vertex="1" parent="KXn8IlWK5bg8NCUujisa-1"> - <mxGeometry x="190" y="-309.88" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-43" value="true" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" vertex="1" parent="KXn8IlWK5bg8NCUujisa-1"> - <mxGeometry x="1160" y="-309.88" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-44" value="$$\text{weight}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="KXn8IlWK5bg8NCUujisa-1"> - <mxGeometry x="640" y="-736.88" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-45" value="$$\text{voteID}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="KXn8IlWK5bg8NCUujisa-1"> - <mxGeometry x="570" y="-736.88" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-46" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="KXn8IlWK5bg8NCUujisa-1" source="KXn8IlWK5bg8NCUujisa-36"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="530" y="-510" as="targetPoint" /> - <mxPoint x="520" y="-660" as="sourcePoint" /> - <Array as="points"> - <mxPoint x="530" y="-510" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-47" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="KXn8IlWK5bg8NCUujisa-1" source="KXn8IlWK5bg8NCUujisa-45"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="600" y="-510" as="targetPoint" /> - <mxPoint x="700" y="-600" as="sourcePoint" /> - <Array as="points"> - <mxPoint x="600" y="-610" /> - <mxPoint x="600" y="-610" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-48" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.92;entryY=0.019;entryDx=0;entryDy=0;entryPerimeter=0;jumpStyle=arc;" edge="1" parent="KXn8IlWK5bg8NCUujisa-1" source="KXn8IlWK5bg8NCUujisa-44" target="KXn8IlWK5bg8NCUujisa-9"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="669.97" y="-509.88" as="targetPoint" /> - <mxPoint x="719.97" y="-676.88" as="sourcePoint" /> - <Array as="points"> - <mxPoint x="670" y="-570" /> - <mxPoint x="629" y="-570" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-49" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;jumpStyle=arc;startArrow=oval;startFill=1;" edge="1" parent="KXn8IlWK5bg8NCUujisa-1" target="KXn8IlWK5bg8NCUujisa-18"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="600" y="-650" as="sourcePoint" /> - <mxPoint x="1162" y="-318.8800000000001" as="targetPoint" /> - <Array as="points"> - <mxPoint x="1200" y="-650" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="KXn8IlWK5bg8NCUujisa-50" value="$$\text{Hash}(pk)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" vertex="1" parent="KXn8IlWK5bg8NCUujisa-1"> - <mxGeometry x="1040" y="-599.88" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="2DXNI-Av7wMyQZ8m3Fvy-1" value="$$\text{address}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="KXn8IlWK5bg8NCUujisa-1"> - <mxGeometry x="850" y="-309.88" width="60" height="40" as="geometry" /> - </mxCell> - </root> - </mxGraphModel> - </diagram> - <diagram name="3. aggregate-circuit" id="88JFnn8AstWJnzEelpN0"> - <mxGraphModel dx="1233" dy="728" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> - <root> - <mxCell id="vWYVikCydA5HvOjBRwIf-0" /> - <mxCell id="vWYVikCydA5HvOjBRwIf-1" parent="vWYVikCydA5HvOjBRwIf-0" /> - <mxCell id="i_wgu6sUIYtOpveSoJkK-0" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry x="30" y="60" width="790" height="260" as="geometry" /> - </mxCell> - <mxCell id="i_wgu6sUIYtOpveSoJkK-1" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry x="50" y="135" width="750" height="95" as="geometry" /> - </mxCell> - <mxCell id="mhMekiSe2uiXRmLYm047-1" value="$$\text{voteID}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> - <mxGeometry x="310.00000000000006" y="80" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="VWBkZtje_WCXQabFDbId-4" value="$$\text{censusRoot}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> - <mxGeometry x="710" y="80" width="70" height="40" as="geometry" /> - </mxCell> - <mxCell id="VWBkZtje_WCXQabFDbId-5" value="<div>$$\text{ballotMode}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> - <mxGeometry x="540" y="80.00000000000011" width="70" height="40" as="geometry" /> - </mxCell> - <mxCell id="VWBkZtje_WCXQabFDbId-6" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> - <mxGeometry x="630" y="80.00000000000011" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="VWBkZtje_WCXQabFDbId-7" value="$$(C_1, C_2)_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> - <mxGeometry x="230" y="80.00000000000011" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="VWBkZtje_WCXQabFDbId-8" value="<div>$$\text{processID}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> - <mxGeometry x="450" y="80.00000000000011" width="70" height="40" as="geometry" /> - </mxCell> - <mxCell id="VWBkZtje_WCXQabFDbId-11" value="$$pk_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> - <mxGeometry x="390" y="80" width="40" height="40" as="geometry" /> - </mxCell> - <mxCell id="QCU0WVTcZCZ_NDvB6I_U-1" value="true" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> - <mxGeometry x="385" y="270" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="QCU0WVTcZCZ_NDvB6I_U-15" value="" style="endArrow=classic;html=1;rounded=0;" parent="vWYVikCydA5HvOjBRwIf-1" edge="1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="138.83000000000004" y="120" as="sourcePoint" /> - <mxPoint x="138.83000000000004" y="160" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="kuW-ZrGGYPgx6TDovwxI-0" value="SHARED PUBLIC INPUTS" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=11;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> - <mxGeometry x="458" y="354.01" width="319" height="40" as="geometry" /> - </mxCell> - <mxCell id="kuW-ZrGGYPgx6TDovwxI-1" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> - <mxGeometry x="606.87" y="176.93" width="20" height="326.16" as="geometry" /> - </mxCell> - <mxCell id="kuW-ZrGGYPgx6TDovwxI-2" value="VOTES AGGREGATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> - <mxGeometry x="73" y="354.01" width="360" height="40" as="geometry" /> - </mxCell> - <mxCell id="kuW-ZrGGYPgx6TDovwxI-3" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> - <mxGeometry x="242.82" y="156.88" width="20" height="366.25" as="geometry" /> - </mxCell> - <mxCell id="KYVxoJJrrN6A2haL3CTe-1" value="<div style="font-size: 11px;">$$\text{authenticationProof}_i$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> - <mxGeometry x="70" y="80" width="140" height="40" as="geometry" /> - </mxCell> - <mxCell id="YQak7JiX628nDuEKiX8z-1" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="vWYVikCydA5HvOjBRwIf-1" source="YQak7JiX628nDuEKiX8z-0" target="QCU0WVTcZCZ_NDvB6I_U-1" edge="1"> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="YQak7JiX628nDuEKiX8z-0" value="recursive SNARK batch verifier" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" parent="vWYVikCydA5HvOjBRwIf-1" vertex="1"> - <mxGeometry x="70" y="160" width="710" height="40" as="geometry" /> - </mxCell> - <mxCell id="52VyXC8j5xGTEDYuN6SN-2" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="259.65999999999997" y="120" as="sourcePoint" /> - <mxPoint x="259.65999999999997" y="160" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="52VyXC8j5xGTEDYuN6SN-3" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="339.65999999999997" y="120" as="sourcePoint" /> - <mxPoint x="339.65999999999997" y="160" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="52VyXC8j5xGTEDYuN6SN-4" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="409.66" y="120" as="sourcePoint" /> - <mxPoint x="409.66" y="160" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="52VyXC8j5xGTEDYuN6SN-5" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="484.83" y="120" as="sourcePoint" /> - <mxPoint x="484.83" y="160" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="52VyXC8j5xGTEDYuN6SN-6" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="574.83" y="120" as="sourcePoint" /> - <mxPoint x="574.83" y="160" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="52VyXC8j5xGTEDYuN6SN-7" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="659.83" y="120" as="sourcePoint" /> - <mxPoint x="659.83" y="160" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="52VyXC8j5xGTEDYuN6SN-8" value="" style="endArrow=classic;html=1;rounded=0;" edge="1" parent="vWYVikCydA5HvOjBRwIf-1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="744.83" y="120" as="sourcePoint" /> - <mxPoint x="744.83" y="160" as="targetPoint" /> - </mxGeometry> - </mxCell> - </root> - </mxGraphModel> - </diagram> - <diagram name="4. state-transition-circuit" id="PK6FMuq_bwtaiANtLuxe"> - <mxGraphModel dx="3782" dy="1928" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> - <root> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-0" /> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-1" parent="D6Gzr2-08hJ62fW1Y4SW-0" /> - <mxCell id="ojYA5p9BOs-s12dUr8XO-1" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry x="-390" y="-340" width="1990" height="1380" as="geometry" /> - </mxCell> - <mxCell id="ojYA5p9BOs-s12dUr8XO-0" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry x="-250" y="-60" width="1800" height="980" as="geometry" /> - </mxCell> - <mxCell id="EZ67WfkGteQ7pZBN_wck-0" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fontStyle=1;dashed=1;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry x="280" y="330" width="1040" height="550" as="geometry" /> - </mxCell> - <mxCell id="EZ67WfkGteQ7pZBN_wck-7" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fontStyle=1;dashed=1;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry x="290" y="480" width="160" height="60" as="geometry" /> - </mxCell> - <mxCell id="EZ67WfkGteQ7pZBN_wck-1" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fontStyle=1;dashed=1;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry x="915" y="347" width="355" height="113" as="geometry" /> - </mxCell> - <mxCell id="0c9yVQNtpXtt_NukVZet-10" value="" style="rounded=0;whiteSpace=wrap;html=1;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="320" y="-310" width="380" height="230" as="geometry" /> - </mxCell> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-3" value="$$\text{voteID}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="480" y="-190" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-1" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="D6Gzr2-08hJ62fW1Y4SW-10" target="yhMjlz7L6oX0I03LSNM_-0" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="640" y="-30" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-10" value="$$pk_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="600" y="-140" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-26" value="$$\text{stateRoot}^{\text{old}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="1160" y="-120" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="SGKnkJu5_sYSCg57PFAC-7" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" target="xZoSSO8U0oyJhFnYmJBx-8"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="779.67" y="230" as="sourcePoint" /> - <mxPoint x="779.67" y="620" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="I46Z3Tsccw4bTtzRbnAU-12" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="xZoSSO8U0oyJhFnYmJBx-9" target="xZoSSO8U0oyJhFnYmJBx-5"> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-22" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="505" y="1220" as="sourcePoint" /> - <mxPoint x="505" y="1220" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-30" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.513;entryDx=0;entryDy=0;entryPerimeter=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="xZoSSO8U0oyJhFnYmJBx-25" edge="1" target="EZ67WfkGteQ7pZBN_wck-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1280" y="405" as="targetPoint" /> - <Array as="points"> - <mxPoint x="1390" y="830" /> - <mxPoint x="1390" y="405" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-23" value="$$\text{stateRoot}^{\text{new}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="1040" y="810" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="EZ67WfkGteQ7pZBN_wck-18" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="xZoSSO8U0oyJhFnYmJBx-24"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="680" y="960" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-24" value="<div><div>$$\text{numVotes}^{\text{new}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="620" y="810" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="EZ67WfkGteQ7pZBN_wck-16" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="xZoSSO8U0oyJhFnYmJBx-25"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="540" y="960" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-25" value="<div><div>$$\text{numOverwrites}^{\text{new}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="480" y="810" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-26" value="<div><div>$$\text{resultsAdd}^{\text{new}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="900" y="810" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-27" value="<div><div>$$\text{resultsSub}^{\text{new}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="760" y="810" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-34" value="$$\text{stateRoot}^{\text{new}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="1040" y="960" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="0c9yVQNtpXtt_NukVZet-3" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="kZ82RYXQcsU66MAzuXJf-0" target="kZ82RYXQcsU66MAzuXJf-1" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="-145" y="-10" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="kZ82RYXQcsU66MAzuXJf-0" value="<div style="font-size: 11px;">$$\text{aggregationProof}_i$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="-165" y="-120" width="130" height="40" as="geometry" /> - </mxCell> - <mxCell id="kZ82RYXQcsU66MAzuXJf-1" value="recursive SNARK batch verifier" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="-210" y="80" width="440" height="220" as="geometry" /> - </mxCell> - <mxCell id="0c9yVQNtpXtt_NukVZet-4" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="D6Gzr2-08hJ62fW1Y4SW-3" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="520.09" y="-60" as="sourcePoint" /> - <mxPoint x="520" y="80" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="0c9yVQNtpXtt_NukVZet-1" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.75;entryY=0;entryDx=0;entryDy=0;startArrow=oval;startFill=1;jumpStyle=arc;" parent="D6Gzr2-08hJ62fW1Y4SW-1" target="kZ82RYXQcsU66MAzuXJf-1" edge="1"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="320" y="-120" as="sourcePoint" /> - <mxPoint x="570" y="-110" as="targetPoint" /> - <Array as="points"> - <mxPoint x="120" y="-120" /> - <mxPoint x="120" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="yhMjlz7L6oX0I03LSNM_-1" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="yhMjlz7L6oX0I03LSNM_-0" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="640.0222222222224" y="29.88000000000011" as="sourcePoint" /> - <mxPoint x="640" y="80" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="yhMjlz7L6oX0I03LSNM_-0" value="$$\text{Hash}(pk_i)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="600" y="-40" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="D1O2pzwOY9OCH-spyj_d-0" value="$$\text{address}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=default;strokeColor=none;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="610" y="20" width="60" height="39.88" as="geometry" /> - </mxCell> - <mxCell id="yhMjlz7L6oX0I03LSNM_-6" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="D6Gzr2-08hJ62fW1Y4SW-24" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="898.95" y="-80" as="sourcePoint" /> - <mxPoint x="900" y="80" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="yhMjlz7L6oX0I03LSNM_-7" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="xZoSSO8U0oyJhFnYmJBx-20" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1059.47" y="-80" as="sourcePoint" /> - <mxPoint x="1060" y="80" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="yhMjlz7L6oX0I03LSNM_-8" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1199.47" y="-80" as="sourcePoint" /> - <mxPoint x="1199" y="80" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="0c9yVQNtpXtt_NukVZet-11" value="public inputs" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="160" y="-140" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="jH9XEzTzumLLzgrA1KFi-0" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="kZ82RYXQcsU66MAzuXJf-1" target="jH9XEzTzumLLzgrA1KFi-1" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint y="310" as="targetPoint" /> - <mxPoint y="240" as="sourcePoint" /> - </mxGeometry> - </mxCell> - <mxCell id="jH9XEzTzumLLzgrA1KFi-1" value="true" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="-30" y="960" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="0c9yVQNtpXtt_NukVZet-8" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="D6Gzr2-08hJ62fW1Y4SW-4" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="400" y="-80" as="sourcePoint" /> - <mxPoint x="400" y="80" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-4" value="$$\text{censusRoot}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="360" y="-290" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-5" value="<div>$$\text{ballotMode}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="360" y="-240" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-6" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="360" y="-190" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-9" value="<div>$$\text{processID}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="360" y="-140" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-8" value="$$(C_1, C_2)_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="480" y="-140" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-23" value="<div>$$\text{numVotes}^{\text{old}}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="840" y="-120" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-24" value="<div>$$\text{numOverwrites}^{\text{old}}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="840" y="-170" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-20" value="<div>$$\text{resultsAdd}^{\text{old}}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="1000" y="-170" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-21" value="<div>$$\text{resultsSub}^{\text{old}}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="1000" y="-120" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="I46Z3Tsccw4bTtzRbnAU-13" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="RKRk78QnPbcHQFYOCmT4-4" target="xZoSSO8U0oyJhFnYmJBx-5"> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="I46Z3Tsccw4bTtzRbnAU-2" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;jumpStyle=arc;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="I46Z3Tsccw4bTtzRbnAU-0" target="I46Z3Tsccw4bTtzRbnAU-3"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="320" y="730" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="I46Z3Tsccw4bTtzRbnAU-0" value="$$k$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry x="-350" y="490" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="I46Z3Tsccw4bTtzRbnAU-4" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="I46Z3Tsccw4bTtzRbnAU-3" target="xZoSSO8U0oyJhFnYmJBx-5"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="440" y="730" as="sourcePoint" /> - </mxGeometry> - </mxCell> - <mxCell id="I46Z3Tsccw4bTtzRbnAU-3" value="$$\text{Hash}(k)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry x="360" y="490" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="I46Z3Tsccw4bTtzRbnAU-18" value="" style="text;whiteSpace=wrap;html=1;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry x="880" y="1020" width="60" height="50" as="geometry" /> - </mxCell> - <mxCell id="KAu6sMc1Uvy6INGLTeTi-1" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.173;exitY=0.992;exitDx=0;exitDy=0;exitPerimeter=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="D6Gzr2-08hJ62fW1Y4SW-31" target="RKRk78QnPbcHQFYOCmT4-4"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="512" y="320" as="sourcePoint" /> - <mxPoint x="560" y="580" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="KAu6sMc1Uvy6INGLTeTi-2" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" target="xZoSSO8U0oyJhFnYmJBx-9"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="596.5" y="300" as="sourcePoint" /> - <mxPoint x="596.5" y="550" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="KAu6sMc1Uvy6INGLTeTi-4" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" target="xZoSSO8U0oyJhFnYmJBx-7"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="870" y="300" as="sourcePoint" /> - <mxPoint x="870" y="550" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="KAu6sMc1Uvy6INGLTeTi-5" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" target="xZoSSO8U0oyJhFnYmJBx-13"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="979.5" y="250" as="sourcePoint" /> - <mxPoint x="979.5" y="500" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="KAu6sMc1Uvy6INGLTeTi-6" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" target="xZoSSO8U0oyJhFnYmJBx-17"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1109" y="250" as="sourcePoint" /> - <mxPoint x="1109" y="500" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="KAu6sMc1Uvy6INGLTeTi-7" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" target="xZoSSO8U0oyJhFnYmJBx-11"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1219.5" y="300" as="sourcePoint" /> - <mxPoint x="1219.5" y="550" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="KAu6sMc1Uvy6INGLTeTi-11" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="779.29" y="440" as="sourcePoint" /> - <mxPoint x="779" y="610" as="targetPoint" /> - <Array as="points"> - <mxPoint x="779" y="520" /> - <mxPoint x="779" y="520" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="KAu6sMc1Uvy6INGLTeTi-12" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="979.41" y="350" as="sourcePoint" /> - <mxPoint x="980" y="610" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-31" value="<div><div><div><div><div><div><div><div><div><div>$$\text{stateRoot}^{\text{old}} = \text{stateRoot}^{\text{new}}$$</div><div><br></div></div></div></div>$$\text{numVotes}^{\text{old}} = \text{numVotes}^{\text{new}}$$</div></div></div>$$\text{numOverwrites}^{\text{old}} = \text{numOverwrites}^{\text{new}}$$</div><div><br></div><div><div><div><div><div><div><div>$$\text{resultsAdd}^{\text{old}} = \text{resultsAdd}^{\text{new}}$$</div></div></div>$$\text{resultsSub}^{\text{old}} = \text{resultsSub}^{\text{new}}$$</div></div></div></div></div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="1270" y="490" width="240" height="230" as="geometry" /> - </mxCell> - <mxCell id="D6Gzr2-08hJ62fW1Y4SW-31" value="<div><u><b>VERIFY INITIAL STATE</b><b><br><br></b></u></div><div><b><br></b></div><div align="left"><b>1.</b> Verify the MTProofs that prove that the first leafs of the tree store the public parameters of the voting process:<br><br>&nbsp;&nbsp; 0x0 = <b>processID</b>, 0x1 = <b>censusRoot</b>, 0x2 = <b>ballotMode</b>, 0x3 = <b>EPK</b>, 0x4 = <b>resultsAdd^{old}</b>, 0x5 = <b>resultsAdd^{sub}</b>. <br><br></div><div align="left"><b>2.</b> Verify the MTProofs that prove that none of the <b>voteIDs</b> belong to the tree.<br><b><br>3.</b> Verify the MTProofs of each <b>address</b>:<br><br>&nbsp;&nbsp; - If it is an inclusion proof: consider the vote <b>(c1, c2)</b> an <b>overwrite</b>.</div><div align="left">&nbsp;&nbsp; - If it is a non-inclusion proof: consider the vote <b>(c1, c2)</b> a <b>newVote</b>.</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="360" y="80" width="880" height="220" as="geometry" /> - </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-7" value="$$\text{address}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#f8cecc;strokeColor=#b85450;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="830" y="410" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-8" value="$$\text{voteID}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="740" y="410" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-9" value="$$(C_1, C_2)_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="557" y="410" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="RKRk78QnPbcHQFYOCmT4-4" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry x="472" y="410" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="c3b2KowYPhYfo68HtMrI-6" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="869.9499999999999" y="450" as="sourcePoint" /> - <mxPoint x="870" y="610" as="targetPoint" /> - <Array as="points"> - <mxPoint x="869.66" y="530" /> - <mxPoint x="869.66" y="530" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="c3b2KowYPhYfo68HtMrI-9" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="I46Z3Tsccw4bTtzRbnAU-20"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="550" y="520" as="sourcePoint" /> - <mxPoint x="550" y="570" as="targetPoint" /> - <Array as="points"> - <mxPoint x="549.71" y="550" /> - <mxPoint x="549.71" y="550" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="c3b2KowYPhYfo68HtMrI-10" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1109.41" y="350" as="sourcePoint" /> - <mxPoint x="1110" y="610" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="c3b2KowYPhYfo68HtMrI-11" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1219.4099999999999" y="450" as="sourcePoint" /> - <mxPoint x="1219" y="610" as="targetPoint" /> - <Array as="points"> - <mxPoint x="1219.12" y="530" /> - <mxPoint x="1219.12" y="530" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-13" value="<div><div>$$\text{numOverwrites}^{\text{old}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="920" y="360" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-17" value="<div><div>$$\text{resultsAdd}^{\text{old}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="1050" y="360" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-11" value="$$\text{stateRoot}^{\text{old}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="1180" y="410" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-12" value="<div><div>$$\text{numVotes}^{\text{old}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="920" y="410" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-18" value="<div><div>$$\text{resultsSub}^{\text{old}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="1050" y="410" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="c3b2KowYPhYfo68HtMrI-13" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="550" y="520" as="sourcePoint" /> - <mxPoint x="550" y="610" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="I46Z3Tsccw4bTtzRbnAU-20" value="$$(C_1', C_2')_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry x="510" y="543" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-5" value="$$\mathsf{ReEnc}_{EPK}(C_1, C_2)_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="470" y="490" width="170" height="40" as="geometry" /> - </mxCell> - <mxCell id="c3b2KowYPhYfo68HtMrI-15" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="539.41" y="720" as="sourcePoint" /> - <mxPoint x="539.41" y="810" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="c3b2KowYPhYfo68HtMrI-16" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="679.6" y="720" as="sourcePoint" /> - <mxPoint x="679.6" y="810" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="c3b2KowYPhYfo68HtMrI-17" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="820" y="720" as="sourcePoint" /> - <mxPoint x="820" y="810" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="c3b2KowYPhYfo68HtMrI-12" value="" style="group" vertex="1" connectable="0" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry x="360" y="610" width="880" height="160" as="geometry" /> - </mxCell> - <mxCell id="c3b2KowYPhYfo68HtMrI-18" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="c3b2KowYPhYfo68HtMrI-12"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="600" y="110" as="sourcePoint" /> - <mxPoint x="600" y="200" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="c3b2KowYPhYfo68HtMrI-19" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="c3b2KowYPhYfo68HtMrI-12"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="720" y="110" as="sourcePoint" /> - <mxPoint x="720" y="200" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-3" value="<div align="center"><b><u>APPLY STATE TRANSITIONS<br><br></u></b></div><div align="left"><b><br></b></div><div align="left"><b>&nbsp;&nbsp;&nbsp; </b>If the vote is a <b>newVote: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </b>If the vote is an <b>overwrite</b>:<b> <br></b></div><div align="left"><br></div><div align="left">&nbsp; &nbsp; <b>1.</b> Include <b>address</b>, <b>voteID</b>, and <b>(C1', C2')</b>.&nbsp;&nbsp; <span style="white-space: pre;">	</span><b>&nbsp;&nbsp;&nbsp; 1.</b> Update vote associated to <b>address</b> to<b> (C1', C2')</b> and include <b>voteID</b>.</div><div align="left">&nbsp; &nbsp; <b>2.</b> Update <b>numVotes</b>.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>2.</b> Update <b>numVotes</b> and <b>numOverwrites</b>.<div align="left">&nbsp; &nbsp; <b>3.</b> Update <b>resultsAdd</b>.&nbsp; &nbsp; <span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span>&nbsp;&nbsp;&nbsp; <b>3.</b> Update <b>resultsAdd</b> and <b>resultsSub</b>.<br>&nbsp;&nbsp;&nbsp; <b>4.</b> Update <b>stateRoot</b>.<span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span>&nbsp;&nbsp;&nbsp; <b>4.</b> Update <b>stateRoot</b>.</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=left;" parent="c3b2KowYPhYfo68HtMrI-12" vertex="1"> - <mxGeometry width="880" height="160" as="geometry" /> - </mxCell> - <mxCell id="c3b2KowYPhYfo68HtMrI-3" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;strokeColor=#9673a6;fontFamily=Courier New;align=left;" vertex="1" parent="c3b2KowYPhYfo68HtMrI-12"> - <mxGeometry x="10" y="50" width="350" height="100" as="geometry" /> - </mxCell> - <mxCell id="c3b2KowYPhYfo68HtMrI-4" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;strokeColor=#9673a6;fontFamily=Courier New;align=left;" vertex="1" parent="c3b2KowYPhYfo68HtMrI-12"> - <mxGeometry x="375" y="50" width="495" height="100" as="geometry" /> - </mxCell> - <mxCell id="EZ67WfkGteQ7pZBN_wck-6" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;endArrow=none;startFill=0;endFill=1;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="I46Z3Tsccw4bTtzRbnAU-3"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="-430" y="604.47" as="sourcePoint" /> - <mxPoint x="200" y="510" as="targetPoint" /> - <Array as="points"> - <mxPoint x="400" y="570" /> - <mxPoint x="200" y="570" /> - <mxPoint x="200" y="510" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="EZ67WfkGteQ7pZBN_wck-5" value="<div><div><div><div><div><div><div><div><div><div>$$k = \text{Hash}(k)$$</div></div></div></div></div></div></div></div><div><div><div></div></div></div></div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry x="230" y="550" width="100" height="40" as="geometry" /> - </mxCell> - <mxCell id="EZ67WfkGteQ7pZBN_wck-8" value="$$\text{Iterate over } i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;align=center;spacingBottom=-4;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry x="290" y="340" width="130" height="53" as="geometry" /> - </mxCell> - <mxCell id="EZ67WfkGteQ7pZBN_wck-10" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1" source="EZ67WfkGteQ7pZBN_wck-8" target="EZ67WfkGteQ7pZBN_wck-8"> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="EZ67WfkGteQ7pZBN_wck-19" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1079.38" y="850" as="sourcePoint" /> - <mxPoint x="1079.38" y="960" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="EZ67WfkGteQ7pZBN_wck-20" value="<div><div>$$\text{numVotes}^{\text{new}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry x="620" y="960" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="EZ67WfkGteQ7pZBN_wck-21" value="<div><div>$$\text{numOverwrites}^{\text{new}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry x="480" y="960" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="EZ67WfkGteQ7pZBN_wck-22" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="760" y="-130" as="sourcePoint" /> - <mxPoint x="760" y="80" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="xZoSSO8U0oyJhFnYmJBx-2" value="<div>$$\text{MTProofs}_i$$</div><div>(inclusion or non-inclusion)</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="D6Gzr2-08hJ62fW1Y4SW-1" vertex="1"> - <mxGeometry x="720" y="-200" width="80" height="120" as="geometry" /> - </mxCell> - <mxCell id="GPVaXYSz-EfsHx1UZKMQ-0" value="<div align="left"><b>&nbsp;&nbsp; MISSING</b></div><div align="left"><b><br></b></div><div align="left">&nbsp;&nbsp; <b>1.</b> For <i>some</i> existing leafs, also reencrypt the votes.</div><div align="left">&nbsp;&nbsp; <b>2.</b> Data blobs.</div><div align="left">&nbsp;&nbsp; <b>3.</b> Add some details, like specifics of resultsAdd.</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#647687;strokeColor=#314354;fontFamily=Courier New;align=left;fontColor=#ffffff;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry x="1200" y="-320" width="380" height="150" as="geometry" /> - </mxCell> - <mxCell id="3ep81gfC2W1f0rtrtprN-0" value="AGGREGATION VERIFICATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry x="-200" y="1117.18" width="440" height="40" as="geometry" /> - </mxCell> - <mxCell id="3ep81gfC2W1f0rtrtprN-1" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry x="12.17999999999995" y="880" width="20" height="435" as="geometry" /> - </mxCell> - <mxCell id="3ep81gfC2W1f0rtrtprN-2" value="TRANSITION VERIFICATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=11;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry x="280" y="1117.18" width="1120" height="40" as="geometry" /> - </mxCell> - <mxCell id="3ep81gfC2W1f0rtrtprN-3" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="D6Gzr2-08hJ62fW1Y4SW-1"> - <mxGeometry x="832.5" y="537.5" width="20" height="1120" as="geometry" /> - </mxCell> - </root> - </mxGraphModel> - </diagram> - <diagram name="Copy of 4." id="SfqXgv12DMmRO-l3Q4tj"> - <mxGraphModel dx="2264" dy="1396" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> - <root> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-0" /> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-1" parent="ZHVPnpmu-zi4kkNDXHjC-0" /> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-2" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="-390" y="-340" width="1990" height="1380" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-3" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="-250" y="-60" width="1800" height="980" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-4" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fontStyle=1;dashed=1;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="280" y="330" width="1040" height="550" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-5" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fontStyle=1;dashed=1;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="290" y="480" width="160" height="60" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-6" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fontStyle=1;dashed=1;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="915" y="347" width="355" height="113" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-7" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="320" y="-310" width="380" height="230" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-8" value="$$\text{voteID}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="480" y="-190" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-9" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-10" target="ZHVPnpmu-zi4kkNDXHjC-30"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="640" y="-30" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-10" value="$$pk_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="600" y="-140" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-11" value="$$\text{stateRoot}^{\text{old}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="1160" y="-120" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-12" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" target="ZHVPnpmu-zi4kkNDXHjC-65"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="779.67" y="230" as="sourcePoint" /> - <mxPoint x="779.67" y="620" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-13" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-66" target="ZHVPnpmu-zi4kkNDXHjC-79"> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-14" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="505" y="1220" as="sourcePoint" /> - <mxPoint x="505" y="1220" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-15" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.513;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-20" target="ZHVPnpmu-zi4kkNDXHjC-6"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1280" y="405" as="targetPoint" /> - <Array as="points"> - <mxPoint x="1390" y="830" /> - <mxPoint x="1390" y="405" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-16" value="$$\text{stateRoot}^{\text{new}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="1040" y="810" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-17" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-18"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="680" y="960" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-18" value="<div><div>$$\text{numVotes}^{\text{new}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="620" y="810" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-19" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-20"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="540" y="960" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-20" value="<div><div>$$\text{numOverwrites}^{\text{new}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="480" y="810" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-21" value="<div><div>$$\text{resultsAdd}^{\text{new}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="900" y="810" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-22" value="<div><div>$$\text{resultsSub}^{\text{new}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="760" y="810" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-23" value="$$\text{stateRoot}^{\text{new}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="1040" y="960" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-24" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-25" target="ZHVPnpmu-zi4kkNDXHjC-26"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="-145" y="-10" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-25" value="<div style="font-size: 11px;">$$\text{aggregationProof}_i$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="-165" y="-120" width="130" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-26" value="recursive SNARK batch verifier" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="-210" y="80" width="440" height="220" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-27" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-8"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="520.09" y="-60" as="sourcePoint" /> - <mxPoint x="520" y="80" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-28" value="" style="endArrow=classic;html=1;rounded=0;entryX=0.75;entryY=0;entryDx=0;entryDy=0;startArrow=oval;startFill=1;jumpStyle=arc;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" target="ZHVPnpmu-zi4kkNDXHjC-26"> - <mxGeometry width="50" height="50" relative="1" as="geometry"> - <mxPoint x="320" y="-120" as="sourcePoint" /> - <mxPoint x="570" y="-110" as="targetPoint" /> - <Array as="points"> - <mxPoint x="120" y="-120" /> - <mxPoint x="120" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-29" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-30"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="640.0222222222224" y="29.88000000000011" as="sourcePoint" /> - <mxPoint x="640" y="80" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-30" value="$$\text{Hash}(pk_i)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="600" y="-40" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-31" value="$$\text{address}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=default;strokeColor=none;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="610" y="20" width="60" height="39.88" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-32" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-45"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="898.95" y="-80" as="sourcePoint" /> - <mxPoint x="900" y="80" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-33" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-46"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1059.47" y="-80" as="sourcePoint" /> - <mxPoint x="1060" y="80" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-34" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1199.47" y="-80" as="sourcePoint" /> - <mxPoint x="1199" y="80" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-35" value="public inputs" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="160" y="-140" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-36" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-26" target="ZHVPnpmu-zi4kkNDXHjC-37"> - <mxGeometry relative="1" as="geometry"> - <mxPoint y="310" as="targetPoint" /> - <mxPoint y="240" as="sourcePoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-37" value="true" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="-30" y="960" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-38" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-39"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="400" y="-80" as="sourcePoint" /> - <mxPoint x="400" y="80" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-39" value="$$\text{censusRoot}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="360" y="-290" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-40" value="<div>$$\text{ballotMode}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="360" y="-240" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-41" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="360" y="-190" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-42" value="<div>$$\text{processID}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="360" y="-140" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-43" value="$$(C_1, C_2)_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="480" y="-140" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-44" value="<div>$$\text{numVotes}^{\text{old}}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="840" y="-120" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-45" value="<div>$$\text{numOverwrites}^{\text{old}}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="840" y="-170" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-46" value="<div>$$\text{resultsAdd}^{\text{old}}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="1000" y="-170" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-47" value="<div>$$\text{resultsSub}^{\text{old}}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="1000" y="-120" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-48" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-67" target="ZHVPnpmu-zi4kkNDXHjC-79"> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-49" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;jumpStyle=arc;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-50" target="ZHVPnpmu-zi4kkNDXHjC-52"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="320" y="730" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-50" value="$$k$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="-350" y="490" width="60" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-51" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-52" target="ZHVPnpmu-zi4kkNDXHjC-79"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="440" y="730" as="sourcePoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-52" value="$$\text{Hash}(k)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="360" y="490" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-53" value="" style="text;whiteSpace=wrap;html=1;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="880" y="1020" width="60" height="50" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-54" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.173;exitY=0.992;exitDx=0;exitDy=0;exitPerimeter=0;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-63" target="ZHVPnpmu-zi4kkNDXHjC-67"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="512" y="320" as="sourcePoint" /> - <mxPoint x="560" y="580" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-55" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" target="ZHVPnpmu-zi4kkNDXHjC-66"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="596.5" y="300" as="sourcePoint" /> - <mxPoint x="596.5" y="550" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-56" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" target="ZHVPnpmu-zi4kkNDXHjC-64"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="870" y="300" as="sourcePoint" /> - <mxPoint x="870" y="550" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-57" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" target="ZHVPnpmu-zi4kkNDXHjC-72"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="979.5" y="250" as="sourcePoint" /> - <mxPoint x="979.5" y="500" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-58" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" target="ZHVPnpmu-zi4kkNDXHjC-73"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1109" y="250" as="sourcePoint" /> - <mxPoint x="1109" y="500" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-59" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" target="ZHVPnpmu-zi4kkNDXHjC-74"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1219.5" y="300" as="sourcePoint" /> - <mxPoint x="1219.5" y="550" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-60" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="779.29" y="440" as="sourcePoint" /> - <mxPoint x="779" y="610" as="targetPoint" /> - <Array as="points"> - <mxPoint x="779" y="520" /> - <mxPoint x="779" y="520" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-61" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="979.41" y="350" as="sourcePoint" /> - <mxPoint x="980" y="610" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-62" value="<div><div><div><div><div><div><div><div><div><div>$$\text{stateRoot}^{\text{old}} = \text{stateRoot}^{\text{new}}$$</div><div><br></div></div></div></div>$$\text{numVotes}^{\text{old}} = \text{numVotes}^{\text{new}}$$</div></div></div>$$\text{numOverwrites}^{\text{old}} = \text{numOverwrites}^{\text{new}}$$</div><div><br></div><div><div><div><div><div><div><div>$$\text{resultsAdd}^{\text{old}} = \text{resultsAdd}^{\text{new}}$$</div></div></div>$$\text{resultsSub}^{\text{old}} = \text{resultsSub}^{\text{new}}$$</div></div></div></div></div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="1270" y="490" width="240" height="230" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-63" value="<div><u><b>VERIFY INITIAL STATE</b><b><br><br></b></u></div><div><b><br></b></div><div align="left"><b>1.</b> Verify the MTProofs that prove that the first leafs of the tree store the public parameters of the voting process:<br><br>&nbsp;&nbsp; 0x0 = <b>processID</b>, 0x1 = <b>censusRoot</b>, 0x2 = <b>ballotMode</b>, 0x3 = <b>EPK</b>, 0x4 = <b>resultsAdd^{old}</b>, 0x5 = <b>resultsAdd^{sub}</b>. <br><br></div><div align="left"><b>2.</b> Verify the MTProofs that prove that none of the <b>voteIDs</b> belong to the tree.<br><b><br>3.</b> Verify the MTProofs of each <b>address</b>:<br><br>&nbsp;&nbsp; - If it is an inclusion proof: consider the vote <b>(c1, c2)</b> an <b>overwrite</b>.</div><div align="left">&nbsp;&nbsp; - If it is a non-inclusion proof: consider the vote <b>(c1, c2)</b> a <b>newVote</b>.</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="360" y="80" width="880" height="220" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-64" value="$$\text{address}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#f8cecc;strokeColor=#b85450;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="830" y="410" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-65" value="$$\text{voteID}_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="740" y="410" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-66" value="$$(C_1, C_2)_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="557" y="410" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-67" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="472" y="410" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-68" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="869.9499999999999" y="450" as="sourcePoint" /> - <mxPoint x="870" y="610" as="targetPoint" /> - <Array as="points"> - <mxPoint x="869.66" y="530" /> - <mxPoint x="869.66" y="530" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-69" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-78"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="550" y="520" as="sourcePoint" /> - <mxPoint x="550" y="570" as="targetPoint" /> - <Array as="points"> - <mxPoint x="549.71" y="550" /> - <mxPoint x="549.71" y="550" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-70" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1109.41" y="350" as="sourcePoint" /> - <mxPoint x="1110" y="610" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-71" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1219.4099999999999" y="450" as="sourcePoint" /> - <mxPoint x="1219" y="610" as="targetPoint" /> - <Array as="points"> - <mxPoint x="1219.12" y="530" /> - <mxPoint x="1219.12" y="530" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-72" value="<div><div>$$\text{numOverwrites}^{\text{old}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="920" y="360" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-73" value="<div><div>$$\text{resultsAdd}^{\text{old}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="1050" y="360" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-74" value="$$\text{stateRoot}^{\text{old}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="1180" y="410" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-75" value="<div><div>$$\text{numVotes}^{\text{old}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="920" y="410" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-76" value="<div><div>$$\text{resultsSub}^{\text{old}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="1050" y="410" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-77" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="550" y="520" as="sourcePoint" /> - <mxPoint x="550" y="610" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-78" value="$$(C_1', C_2')_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="510" y="543" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-79" value="$$\mathsf{ReEnc}_{EPK}(C_1, C_2)_i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="470" y="490" width="170" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-80" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="539.41" y="720" as="sourcePoint" /> - <mxPoint x="539.41" y="810" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-81" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="679.6" y="720" as="sourcePoint" /> - <mxPoint x="679.6" y="810" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-82" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="820" y="720" as="sourcePoint" /> - <mxPoint x="820" y="810" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-83" value="" style="group" vertex="1" connectable="0" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="360" y="610" width="880" height="160" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-84" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-83"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="600" y="110" as="sourcePoint" /> - <mxPoint x="600" y="200" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-85" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-83"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="720" y="110" as="sourcePoint" /> - <mxPoint x="720" y="200" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-86" value="<div align="center"><b><u>APPLY STATE TRANSITIONS<br><br></u></b></div><div align="left"><b><br></b></div><div align="left"><b>&nbsp;&nbsp;&nbsp; </b>If the vote is a <b>newVote: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </b>If the vote is an <b>overwrite</b>:<b> <br></b></div><div align="left"><br></div><div align="left">&nbsp; &nbsp; <b>1.</b> Include <b>address</b>, <b>voteID</b>, and <b>(C1', C2')</b>.&nbsp;&nbsp; <span style="white-space: pre;">	</span><b>&nbsp;&nbsp;&nbsp; 1.</b> Update vote associated to <b>address</b> to<b> (C1', C2')</b> and include <b>voteID</b>.</div><div align="left">&nbsp; &nbsp; <b>2.</b> Update <b>numVotes</b>.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>2.</b> Update <b>numVotes</b> and <b>numOverwrites</b>.<div align="left">&nbsp; &nbsp; <b>3.</b> Update <b>resultsAdd</b>.&nbsp; &nbsp; <span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span>&nbsp;&nbsp;&nbsp; <b>3.</b> Update <b>resultsAdd</b> and <b>resultsSub</b>.<br>&nbsp;&nbsp;&nbsp; <b>4.</b> Update <b>stateRoot</b>.<span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span>&nbsp;&nbsp;&nbsp; <b>4.</b> Update <b>stateRoot</b>.</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=left;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-83"> - <mxGeometry width="880" height="160" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-87" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;strokeColor=#9673a6;fontFamily=Courier New;align=left;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-83"> - <mxGeometry x="10" y="50" width="350" height="100" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-88" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;strokeColor=#9673a6;fontFamily=Courier New;align=left;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-83"> - <mxGeometry x="375" y="50" width="495" height="100" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-89" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;endArrow=none;startFill=0;endFill=1;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-52"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="-430" y="604.47" as="sourcePoint" /> - <mxPoint x="200" y="510" as="targetPoint" /> - <Array as="points"> - <mxPoint x="400" y="570" /> - <mxPoint x="200" y="570" /> - <mxPoint x="200" y="510" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-90" value="<div><div><div><div><div><div><div><div><div><div>$$k = \text{Hash}(k)$$</div></div></div></div></div></div></div></div><div><div><div></div></div></div></div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="230" y="550" width="100" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-91" value="$$\text{Iterate over } i$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;align=center;spacingBottom=-4;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="290" y="340" width="130" height="53" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-92" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1" source="ZHVPnpmu-zi4kkNDXHjC-91" target="ZHVPnpmu-zi4kkNDXHjC-91"> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-93" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1079.38" y="850" as="sourcePoint" /> - <mxPoint x="1079.38" y="960" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-94" value="<div><div>$$\text{numVotes}^{\text{new}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="620" y="960" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-95" value="<div><div>$$\text{numOverwrites}^{\text{new}}$$</div></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="480" y="960" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-96" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="760" y="-130" as="sourcePoint" /> - <mxPoint x="760" y="80" as="targetPoint" /> - <Array as="points" /> - </mxGeometry> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-97" value="<div>$$\text{MTProofs}_i$$</div><div>(inclusion or non-inclusion)</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="720" y="-200" width="80" height="120" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-98" value="<div align="left"><b>&nbsp;&nbsp; MISSING</b></div><div align="left"><b><br></b></div><div align="left">&nbsp;&nbsp; <b>1.</b> For <i>some</i> existing leafs, also reencrypt the votes.</div><div align="left">&nbsp;&nbsp; <b>2.</b> Data blobs.</div><div align="left">&nbsp;&nbsp; <b>3.</b> Add some details, like specifics of resultsAdd.</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#647687;strokeColor=#314354;fontFamily=Courier New;align=left;fontColor=#ffffff;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="1200" y="-320" width="380" height="150" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-99" value="AGGREGATION VERIFICATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="-200" y="1117.18" width="440" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-100" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="12.17999999999995" y="880" width="20" height="435" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-101" value="TRANSITION VERIFICATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=11;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="280" y="1117.18" width="1120" height="40" as="geometry" /> - </mxCell> - <mxCell id="ZHVPnpmu-zi4kkNDXHjC-102" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="ZHVPnpmu-zi4kkNDXHjC-1"> - <mxGeometry x="832.5" y="537.5" width="20" height="1120" as="geometry" /> - </mxCell> - </root> - </mxGraphModel> - </diagram> - <diagram name="5. results-circuit" id="vOdGFxvcKQLxlt7TpMJr"> - <mxGraphModel dx="1850" dy="1092" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> - <root> - <mxCell id="bshJnAdmZ42-ucYETjzj-0" /> - <mxCell id="bshJnAdmZ42-ucYETjzj-1" parent="bshJnAdmZ42-ucYETjzj-0" /> - <mxCell id="njsKSg5quu9oUWfDPbnt-0" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> - <mxGeometry x="80" y="50" width="1170" height="530" as="geometry" /> - </mxCell> - <mxCell id="EhFKpIqwLm2i5KqQf0Kn-0" value="<div><br></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> - <mxGeometry x="120" y="140" width="1090" height="360" as="geometry" /> - </mxCell> - <mxCell id="w11Yu14kjo9wnOEZIBzt-8" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.9;entryY=-0.003;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-11" target="bshJnAdmZ42-ucYETjzj-63"> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="bshJnAdmZ42-ucYETjzj-11" value="$$\text{stateRoot}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" parent="bshJnAdmZ42-ucYETjzj-1" vertex="1"> - <mxGeometry x="1100" y="80" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="bshJnAdmZ42-ucYETjzj-14" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="bshJnAdmZ42-ucYETjzj-1" edge="1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="505" y="1200" as="sourcePoint" /> - <mxPoint x="505" y="1200" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="bshJnAdmZ42-ucYETjzj-37" value="true" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" parent="bshJnAdmZ42-ucYETjzj-1" vertex="1"> - <mxGeometry x="940" y="520" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="bshJnAdmZ42-ucYETjzj-41" value="$$EPK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="bshJnAdmZ42-ucYETjzj-1" vertex="1"> - <mxGeometry x="150" y="80" width="50" height="40" as="geometry" /> - </mxCell> - <mxCell id="w11Yu14kjo9wnOEZIBzt-6" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-46" target="w11Yu14kjo9wnOEZIBzt-0"> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="bshJnAdmZ42-ucYETjzj-46" value="<div>$$\text{resultsAdd}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="bshJnAdmZ42-ucYETjzj-1" vertex="1"> - <mxGeometry x="610" y="80" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="w11Yu14kjo9wnOEZIBzt-5" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-47" target="w11Yu14kjo9wnOEZIBzt-0"> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="bshJnAdmZ42-ucYETjzj-47" value="<div>$$\text{resultsSub}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="bshJnAdmZ42-ucYETjzj-1" vertex="1"> - <mxGeometry x="470" y="80" width="120" height="40" as="geometry" /> - </mxCell> - <mxCell id="bshJnAdmZ42-ucYETjzj-53" value="" style="text;whiteSpace=wrap;html=1;" parent="bshJnAdmZ42-ucYETjzj-1" vertex="1"> - <mxGeometry x="880" y="1020" width="60" height="50" as="geometry" /> - </mxCell> - <mxCell id="32wBmxPFM4Aquibm1vis-1" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-63" target="bshJnAdmZ42-ucYETjzj-37"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="980" y="400" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="bshJnAdmZ42-ucYETjzj-63" value="<div align="center">Verify the MTProofs that prove that the first leafs of the tree store the public parameters of the voting process:<br><br></div><div align="center">0x3 = <b>EPK</b>, 0x4 = <b>resultsAdd</b>, 0x5 = <b>resultsAdd</b>.</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=center;" parent="bshJnAdmZ42-ucYETjzj-1" vertex="1"> - <mxGeometry x="780" y="200" width="400" height="80" as="geometry" /> - </mxCell> - <mxCell id="w11Yu14kjo9wnOEZIBzt-7" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.351;entryY=-0.006;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-97" target="bshJnAdmZ42-ucYETjzj-63"> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="bshJnAdmZ42-ucYETjzj-97" value="<div>$$\text{MTProofs}_i \text{ for } \text{EPK, resultsSub, resultsAdd}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" parent="bshJnAdmZ42-ucYETjzj-1" vertex="1"> - <mxGeometry x="780" y="80" width="280" height="40" as="geometry" /> - </mxCell> - <mxCell id="bshJnAdmZ42-ucYETjzj-99" value="DECRYPTION KEY CORRECTNESS" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" parent="bshJnAdmZ42-ucYETjzj-1" vertex="1"> - <mxGeometry x="140" y="627.1800000000001" width="180" height="40" as="geometry" /> - </mxCell> - <mxCell id="bshJnAdmZ42-ucYETjzj-100" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="bshJnAdmZ42-ucYETjzj-1" vertex="1"> - <mxGeometry x="219.68" y="517.5" width="20" height="180" as="geometry" /> - </mxCell> - <mxCell id="bshJnAdmZ42-ucYETjzj-101" value="RESULTS INTEGRITY" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=11;" parent="bshJnAdmZ42-ucYETjzj-1" vertex="1"> - <mxGeometry x="760" y="627.1800000000001" width="420" height="40" as="geometry" /> - </mxCell> - <mxCell id="bshJnAdmZ42-ucYETjzj-102" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" parent="bshJnAdmZ42-ucYETjzj-1" vertex="1"> - <mxGeometry x="961.24" y="396.27" width="20" height="422.49" as="geometry" /> - </mxCell> - <mxCell id="w11Yu14kjo9wnOEZIBzt-4" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.112;entryY=-0.025;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="32wBmxPFM4Aquibm1vis-2" target="w11Yu14kjo9wnOEZIBzt-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="365" y="200" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="32wBmxPFM4Aquibm1vis-2" value="$$ESK$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> - <mxGeometry x="340" y="80" width="50" height="40" as="geometry" /> - </mxCell> - <mxCell id="w11Yu14kjo9wnOEZIBzt-2" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.907;entryY=0.002;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="w11Yu14kjo9wnOEZIBzt-0" target="w11Yu14kjo9wnOEZIBzt-1"> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="w11Yu14kjo9wnOEZIBzt-0" value="<div>$$\text{encryptedResults} = \text{resultsAdd} - \text{resultsSub}$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> - <mxGeometry x="460" y="200" width="280" height="40" as="geometry" /> - </mxCell> - <mxCell id="w11Yu14kjo9wnOEZIBzt-1" value="<div>$$\text{results} = \text{Dec}_{ESK}(\text{encryptedResults})$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> - <mxGeometry x="340" y="320" width="230" height="40" as="geometry" /> - </mxCell> - <mxCell id="w11Yu14kjo9wnOEZIBzt-9" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;startArrow=oval;startFill=1;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="365" y="160" as="sourcePoint" /> - <mxPoint x="260" y="200" as="targetPoint" /> - <Array as="points"> - <mxPoint x="260" y="160" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="w11Yu14kjo9wnOEZIBzt-10" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="w11Yu14kjo9wnOEZIBzt-1"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="490" y="430" as="sourcePoint" /> - <mxPoint x="455" y="520" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="w11Yu14kjo9wnOEZIBzt-11" value="$$\text{results}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> - <mxGeometry x="415" y="520" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="MAhqL2grAOHlyQJotUcC-2" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="bshJnAdmZ42-ucYETjzj-41"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="175" y="330" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="MAhqL2grAOHlyQJotUcC-4" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" source="MAhqL2grAOHlyQJotUcC-0"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="260" y="330" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="MAhqL2grAOHlyQJotUcC-0" value="<div>$$scalarMul()$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> - <mxGeometry x="220" y="200" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="MAhqL2grAOHlyQJotUcC-5" value="<div>$$isEqual()$$</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> - <mxGeometry x="150" y="330" width="130" height="40" as="geometry" /> - </mxCell> - <mxCell id="MAhqL2grAOHlyQJotUcC-6" value="true" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> - <mxGeometry x="175" y="520" width="80" height="40" as="geometry" /> - </mxCell> - <mxCell id="MAhqL2grAOHlyQJotUcC-7" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="bshJnAdmZ42-ucYETjzj-1" target="MAhqL2grAOHlyQJotUcC-6" source="MAhqL2grAOHlyQJotUcC-5"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="220" y="370" as="sourcePoint" /> - <mxPoint x="220" y="400" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="MAhqL2grAOHlyQJotUcC-8" value="RESULTS CALCULATION" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> - <mxGeometry x="344" y="627.1800000000001" width="390" height="40" as="geometry" /> - </mxCell> - <mxCell id="MAhqL2grAOHlyQJotUcC-9" value="" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" vertex="1" parent="bshJnAdmZ42-ucYETjzj-1"> - <mxGeometry x="529.06" y="408.13" width="20" height="398.75" as="geometry" /> - </mxCell> - </root> - </mxGraphModel> - </diagram> -</mxfile>
@@ -0,0 +1,1 @@
+<mxfile host="drawio"><diagram name="ballot-mode-packing" id="ballot-mode-packing"><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="1112" height="130" as="geometry"/></mxCell><mxCell id="c4" value="<b>numFields</b><br><font style='font-size:9px'>8 bits</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="20" y="40" width="76" height="40" as="geometry"/></mxCell><mxCell id="c5" value="0" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="10" y="82" width="40" height="16" as="geometry"/></mxCell><mxCell id="c6" value="<b>groupSize</b><br><font style='font-size:9px'>8 bits</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="96" y="40" width="76" height="40" as="geometry"/></mxCell><mxCell id="c7" value="8" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="86" y="82" width="40" height="16" as="geometry"/></mxCell><mxCell id="c8" value="<b>unique</b><br><font style='font-size:9px'>1 bit</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="172" y="40" width="56" height="40" as="geometry"/></mxCell><mxCell id="c9" value="16" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="162" y="82" width="40" height="16" as="geometry"/></mxCell><mxCell id="c10" value="<b>costExp.</b><br><font style='font-size:9px'>8 bits</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="228" y="40" width="66" height="40" as="geometry"/></mxCell><mxCell id="c11" value="17" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="218" y="82" width="40" height="16" as="geometry"/></mxCell><mxCell id="c12" value="<b>maxValue</b><br><font style='font-size:9px'>48 bits</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="294" y="40" width="172.8" height="40" as="geometry"/></mxCell><mxCell id="c13" value="25" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="284" y="82" width="40" height="16" as="geometry"/></mxCell><mxCell id="c14" value="<b>minValue</b><br><font style='font-size:9px'>48 bits</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="466.8" y="40" width="172.8" height="40" as="geometry"/></mxCell><mxCell id="c15" value="73" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="456.8" y="82" width="40" height="16" as="geometry"/></mxCell><mxCell id="c16" value="<b>maxValueSum</b><br><font style='font-size:9px'>63 bits</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="639.6" y="40" width="226.8" height="40" as="geometry"/></mxCell><mxCell id="c17" value="121" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="629.6" y="82" width="40" height="16" as="geometry"/></mxCell><mxCell id="c18" value="<b>minValueSum</b><br><font style='font-size:9px'>63 bits</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="866.4000000000001" y="40" width="226.8" height="40" as="geometry"/></mxCell><mxCell id="c19" value="184" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="856.4000000000001" y="82" width="40" height="16" as="geometry"/></mxCell><mxCell id="c20" value="247" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="1073.2" y="82" width="40" height="16" as="geometry"/></mxCell><mxCell id="c21" value="<b>packed ballot mode</b> (state leaf 0x02 and ballot circuit input): one integer below 2<sup>247</sup>, fields from the least significant bit" style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="20" y="8" width="960" height="24" as="geometry"/></mxCell><mxCell id="c22" value="registry checks at creation: 1 &le; numFields &le; 16, groupSize &le; numFields, minValue &le; maxValue, minValueSum &le; maxValueSum, maxValue &middot; maxVoters &le; 10<sup>12</sup>" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="20" y="102" width="960" height="22" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>
@@ -0,0 +1,1 @@
+<mxfile host="drawio"><diagram name="batch-program" id="batch-program"><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="1130" height="600" as="geometry"/></mxCell><mxCell id="c4" value="PRIVATE INPUT BLOCKS" style="text;html=1;whiteSpace=wrap;fontSize=11;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="20" y="8" width="300" height="22" as="geometry"/></mxCell><mxCell id="c5" value="GROUPS OF CONSTRAINTS" style="text;html=1;whiteSpace=wrap;fontSize=11;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="380" y="8" width="360" height="22" as="geometry"/></mxCell><mxCell id="c6" value="PUBLIC OUTPUTS" style="text;html=1;whiteSpace=wrap;fontSize=11;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="860" y="8" width="240" height="22" as="geometry"/></mxCell><mxCell id="c7" value="<b>ballot proofs</b><div style='text-align:left;font-size:9px;line-height:1.35;margin-top:3px'>&bull; ballot verification key<br>&bull; n Groth16 proofs with (address, voteID, inputsHash)<br>&bull; n ECDSA signatures over the voteIDs</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;align=left;verticalAlign=top;spacingLeft=8;spacingTop=4;" vertex="1" parent="1"><mxGeometry x="20" y="40" width="300" height="84" as="geometry"/></mxCell><mxCell id="c8" value="<b>state transition</b><div style='text-align:left;font-size:9px;line-height:1.35;margin-top:3px'>&bull; processID, old and new state roots<br>&bull; n, w, occupiedBefore<br>&bull; inclusion proofs of 5 configuration leaves<br>&bull; transition chains: vote IDs, ballots,<br>&bull; &nbsp;&nbsp;refreshes, results accumulator<br>&bull; new, overwritten and refreshed ballots,<br>&bull; &nbsp;&nbsp;old accumulator</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;align=left;verticalAlign=top;spacingLeft=8;spacingTop=4;" vertex="1" parent="1"><mxGeometry x="20" y="136" width="300" height="150" as="geometry"/></mxCell><mxCell id="c9" value="<b>eligibility</b><div style='text-align:left;font-size:9px;line-height:1.35;margin-top:3px'>&bull; n Merkle census proofs, or<br>&bull; n CSP credentials (signature, weight, index)</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;align=left;verticalAlign=top;spacingLeft=8;spacingTop=4;" vertex="1" parent="1"><mxGeometry x="20" y="298" width="300" height="70" as="geometry"/></mxCell><mxCell id="c10" value="<b>reencryption</b><div style='text-align:left;font-size:9px;line-height:1.35;margin-top:3px'>&bull; encryption key<br>&bull; secret seed of the batch<br>&bull; n original and reencrypted ballots</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;align=left;verticalAlign=top;spacingLeft=8;spacingTop=4;" vertex="1" parent="1"><mxGeometry x="20" y="380" width="300" height="84" as="geometry"/></mxCell><mxCell id="c11" value="<b>blobs</b><div style='text-align:left;font-size:9px;line-height:1.35;margin-top:3px'>&bull; processID, old state root<br>&bull; KZG commitments of the blobs</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;align=left;verticalAlign=top;spacingLeft=8;spacingTop=4;" vertex="1" parent="1"><mxGeometry x="20" y="476" width="300" height="70" as="geometry"/></mxCell><mxCell id="c12" value="<b>ballot proof verification</b><br><font style='font-size:9px'>VK hash = leaf 0x07; batched Groth16 check</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="380" y="40" width="380" height="40" as="geometry"/></mxCell><mxCell id="c13" value="<b>authentication</b><br><font style='font-size:9px'>recover key from signature; address matches</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="380" y="92" width="380" height="40" as="geometry"/></mxCell><mxCell id="c14" value="<b>census membership</b><br><font style='font-size:9px'>Merkle: one root, valid paths, no duplicates<br>CSP: one signer key, distinct addresses and indexes</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="380" y="298" width="380" height="52" as="geometry"/></mxCell><mxCell id="c15" value="<b>state transition</b><div style='text-align:left;font-size:9px;line-height:1.4;margin-top:3px'>&bull; configuration read under the old root<br>&bull; key namespaces and slot binding<br>&bull; chain of tree transitions<br>&bull; reencryption from the seed chain<br>&bull; results accumulation<br>&bull; silent refresh (count, disjoint, sorted)</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=top;spacingTop=6;" vertex="1" parent="1"><mxGeometry x="380" y="144" width="380" height="142" as="geometry"/></mxCell><mxCell id="c16" value="<b>data blobs</b><br><font style='font-size:9px'>rebuild blob cells from verified state;<br>z<sub>b</sub> from commitment, y<sub>b</sub> = p<sub>b</sub>(z<sub>b</sub>); digest</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="380" y="476" width="380" height="52" as="geometry"/></mxCell><mxCell id="c17" value="<b>binding</b><br><font style='font-size:9px'>same processID, root and key in every block;<br>inputsHash recomputed; census address = ballot address;<br>stored ballot = verified reencryption</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="380" y="380" width="380" height="70" as="geometry"/></mxCell><mxCell id="c18" value="<b>verdict</b>: ok = every group passed" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="440" y="548" width="260" height="36" as="geometry"/></mxCell><mxCell id="c19" value="ok, failMask" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="860" y="40" width="240" height="40" as="geometry"/></mxCell><mxCell id="c20" value="stateRoot<sup>old</sup>, stateRoot<sup>new</sup><br>numVotes, numOverwrites<br>occupiedBefore" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="860" y="144" width="240" height="74" as="geometry"/></mxCell><mxCell id="c21" value="censusRoot (or CSP address)" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="860" y="298" width="240" height="40" as="geometry"/></mxCell><mxCell id="c22" value="blobsDigest, nBlobs" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="860" y="476" width="240" height="40" as="geometry"/></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.238;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c7" target="c12"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c24" 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.857;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c7" target="c13"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c25" 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.527;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c8" target="c15"><mxGeometry relative="1" as="geometry"></mxGeometry></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=1;exitY=0.371;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c9" target="c14"><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.417;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c10" target="c17"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c28" 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.371;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c11" target="c16"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c29" 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.254;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c15" target="c20"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c30" 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.385;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c14" target="c21"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c31" 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.385;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c16" target="c22"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c32" 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;dashed=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c18" target="c19"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="1112" y="566"/><mxPoint x="1112" y="60"/></Array></mxGeometry></mxCell><mxCell id="c33" value="from all groups" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="710" y="568" width="160" height="20" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>
@@ -0,0 +1,1 @@
+<mxfile host="drawio"><diagram name="blob-layout" id="blob-layout"><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="1060" height="330" as="geometry"/></mxCell><mxCell id="c4" value="<b>cells</b> (32-byte big-endian elements of the BLS12-381 scalar field), in order:" style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="16" y="8" width="1000" height="22" as="geometry"/></mxCell><mxCell id="c5" value="header<br>u + 2<sup>64</sup>&middot;m" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="16" y="36" width="84" height="46" as="geometry"/></mxCell><mxCell id="c6" value="vote IDs (m) and updated slots (u),<br>4 per cell: &lceil;(m+u)/4&rceil; cells" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="100" y="36" width="216" height="46" as="geometry"/></mxCell><mxCell id="c7" value="ballot of slot 1<br>2&middot;n<sub>f</sub> point cells" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="316" y="36" width="176" height="46" as="geometry"/></mxCell><mxCell id="c8" value="ballot of slot 2<br>2&middot;n<sub>f</sub> point cells" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="492" y="36" width="176" height="46" as="geometry"/></mxCell><mxCell id="c9" value="&hellip;" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="668" y="36" width="50" height="46" as="geometry"/></mxCell><mxCell id="c10" value="ballot of slot u<br>2&middot;n<sub>f</sub> point cells" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="718" y="36" width="176" height="46" as="geometry"/></mxCell><mxCell id="c11" value="zero cells up to<br>4096 &middot; nBlobs" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;dashed=1;" vertex="1" parent="1"><mxGeometry x="894" y="36" width="140" height="46" as="geometry"/></mxCell><mxCell id="c12" value="split into blobs of 4096 cells; T = 1 + &lceil;(m+u)/4&rceil; + 2&middot;n<sub>f</sub>&middot;u cells in total; nBlobs = &lceil;T / 4096&rceil; &le; 32" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="16" y="84" width="1030" height="20" as="geometry"/></mxCell><mxCell id="c13" value="<b>packed cell</b>: pack4(a, b, c, d) = a&middot;2<sup>189</sup> + b&middot;2<sup>126</sup> + c&middot;2<sup>63</sup> + d" style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="16" y="110" width="600" height="20" as="geometry"/></mxCell><mxCell id="c14" value="0" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="16" y="132" width="40" height="28" as="geometry"/></mxCell><mxCell id="c15" value="a (63 bits)" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="56" y="132" width="150" height="28" as="geometry"/></mxCell><mxCell id="c16" value="b (63 bits)" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="206" y="132" width="150" height="28" as="geometry"/></mxCell><mxCell id="c17" value="c (63 bits)" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="356" y="132" width="150" height="28" as="geometry"/></mxCell><mxCell id="c18" value="d (63 bits)" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="506" y="132" width="150" height="28" as="geometry"/></mxCell><mxCell id="c19" value="vote IDs enter without their top bit (all lie in [2<sup>63</sup>, 2<sup>64</sup>)); slots are already below 2<sup>63</sup>" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="16" y="162" width="640" height="20" as="geometry"/></mxCell><mxCell id="c20" value="<b>point cell</b>: (x, y) &rarr; y + 2<sup>254</sup>&middot;(x mod 2)" style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="16" y="192" width="600" height="20" as="geometry"/></mxCell><mxCell id="c21" value="0" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="16" y="214" width="40" height="28" as="geometry"/></mxCell><mxCell id="c22" value="x mod 2" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="56" y="214" width="40" height="28" as="geometry"/></mxCell><mxCell id="c23" value="y (254 bits, a BN254 field element)" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="96" y="214" width="560" height="28" as="geometry"/></mxCell><mxCell id="c24" value="the identity (0, 1) encodes as 1; p<sub>BN254</sub> + 2<sup>254</sup> &lt; q<sub>BLS</sub>, so every cell is a valid field element" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="16" y="244" width="640" height="20" as="geometry"/></mxCell><mxCell id="c25" value="<b>binding to the commitments</b><br><div style='text-align:left;font-size:9px;line-height:1.5;margin-top:4px'>for each blob b with KZG commitment com<sub>b</sub>:<br>&nbsp;z<sub>b</sub> = H(processID || stateRoot<sup>old</sup> || com<sub>b</sub>) mod q<sub>BLS</sub><br>&nbsp;y<sub>b</sub> = p<sub>b</sub>(z<sub>b</sub>) (computed in the program)<br>blobsDigest = H(com<sub>1</sub> || y<sub>1</sub> || &hellip; || com<sub>nBlobs</sub> || y<sub>nBlobs</sub>)<br><br>the registry opens each (com<sub>b</sub>, z<sub>b</sub>, y<sub>b</sub>) with the<br>point-evaluation precompile against the<br>versioned hash of the published blob</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=top;spacingTop=6;" vertex="1" parent="1"><mxGeometry x="700" y="110" width="344" height="160" as="geometry"/></mxCell><mxCell id="c26" value="Slots are listed once, in increasing order, whether they hold a new vote, an overwrite, or a silent refresh. The results accumulator is not published; observers recompute it from the old and new ballots of the listed slots." style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="16" y="286" width="1030" height="34" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>
@@ -0,0 +1,1 @@
+<mxfile host="drawio"><diagram name="circuit1" id="circuit1"><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="1" 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="980" height="420" as="geometry"/></mxCell><mxCell id="c4" value="$$\text{ballotMode}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="30" y="20" width="120" height="36" as="geometry"/></mxCell><mxCell id="c5" value="$$\text{weight}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="170" y="20" width="100" height="36" as="geometry"/></mxCell><mxCell id="c6" value="$$\text{ballot}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="300" y="20" width="100" height="36" as="geometry"/></mxCell><mxCell id="c7" value="$$\text{encryptionKey}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="430" y="20" width="140" height="36" as="geometry"/></mxCell><mxCell id="c8" value="$$k$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="590" y="20" width="60" height="36" as="geometry"/></mxCell><mxCell id="c9" value="$$\text{processID}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="680" y="20" width="120" height="36" as="geometry"/></mxCell><mxCell id="c10" value="$$\text{address}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="830" y="20" width="120" height="36" as="geometry"/></mxCell><mxCell id="c11" 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="20" y="86" width="940" height="214" as="geometry"/></mxCell><mxCell id="c12" value="$$\text{protocolRulesCompliance(ballotMode, weight, ballot)}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="30" y="112" width="320" height="46" as="geometry"/></mxCell><mxCell id="c13" value="$$\text{Enc}_{\text{encryptionKey}}(\text{ballot}; k)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="366" y="112" width="250" height="46" as="geometry"/></mxCell><mxCell id="c14" value="$$2^{63} + (\text{Poseidon}(\text{processID}, \text{address}, k) \bmod 2^{63})$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="646" y="112" width="300" height="46" as="geometry"/></mxCell><mxCell id="c15" value="$$\text{Poseidon}(\text{processID}, \text{ballotMode}, \text{encryptionKey}, \text{address}, \text{voteID}, \text{encryptedBallot}, \text{weight})$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="380" y="232" width="566" height="46" as="geometry"/></mxCell><mxCell id="c16" value="$$\text{encryptedBallot}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="416" y="176" width="150" height="34" as="geometry"/></mxCell><mxCell id="c17" value="$$\text{voteID}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="736" y="176" width="120" height="34" as="geometry"/></mxCell><mxCell id="c18" 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.15;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c4" target="c12"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c19" 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.48;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c5" target="c12"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c20" 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.88;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c6" target="c12"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c21" 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.12;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c6" target="c13"><mxGeometry relative="1" as="geometry"></mxGeometry></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.55;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c7" target="c13"><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=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.9;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c8" target="c13"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c24" 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.08;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c8" target="c14"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c25" 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.45;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c9" target="c14"><mxGeometry relative="1" as="geometry"></mxGeometry></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.85;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c10" target="c14"><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=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c13" target="c16"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c28" 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="c14" target="c17"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c29" 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.196;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c16" target="c15"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c30" 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.735;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c17" target="c15"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c31" value="true" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="140" y="316" width="100" height="24" as="geometry"/></mxCell><mxCell id="c32" 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="c12" target="c31"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c33" value="$$\text{inputsHash}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="416" y="316" width="150" height="34" 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.196;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c15" target="c33"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c35" value="$$\text{voteID}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="736" y="316" width="120" height="34" as="geometry"/></mxCell><mxCell id="c36" 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;dashed=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c17" target="c35"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="900" y="193"/><mxPoint x="900" y="333"/></Array></mxGeometry></mxCell><mxCell id="c37" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="40" y="372" width="22" height="16" as="geometry"/></mxCell><mxCell id="c38" value="public input" style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="68" y="368" width="200" height="24" as="geometry"/></mxCell><mxCell id="c39" 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="270" y="372" width="22" height="16" as="geometry"/></mxCell><mxCell id="c40" value="private input" style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="298" y="368" width="200" height="24" as="geometry"/></mxCell><mxCell id="c41" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="500" y="372" width="22" height="16" as="geometry"/></mxCell><mxCell id="c42" value="private input bound by inputsHash" style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="528" y="368" width="200" height="24" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>
@@ -0,0 +1,1 @@
+<mxfile host="drawio"><diagram name="circuits-flow" id="circuits-flow"><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="VOTER" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;verticalAlign=top;align=center;spacingTop=4;spacingLeft=6;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="0" y="0" width="280" height="270" as="geometry"/></mxCell><mxCell id="c4" value="SEQUENCER" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;verticalAlign=top;align=center;spacingTop=4;spacingLeft=6;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="330" y="0" width="300" height="270" as="geometry"/></mxCell><mxCell id="c5" value="SETTLEMENT CHAIN" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;verticalAlign=top;align=center;spacingTop=4;spacingLeft=6;fontStyle=1;dashed=1;" vertex="1" parent="1"><mxGeometry x="680" y="0" width="240" height="270" as="geometry"/></mxCell><mxCell id="c6" value="<b>Ballot circuit</b><br><div style='text-align:left;margin-top:6px;line-height:1.45'>&bull; <b>proof system:</b> Groth16<br>&bull; <b>elliptic curve:</b> BN254<br>&bull; <b>software:</b> circom</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=top;spacingTop=6;spacingLeft=10;" vertex="1" parent="1"><mxGeometry x="25" y="70" width="230" height="96" as="geometry"/></mxCell><mxCell id="c7" value="1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontStyle=1;fontFamily=Courier New;" vertex="1" parent="1"><mxGeometry x="17" y="62" width="18" height="16" as="geometry"/></mxCell><mxCell id="c8" value="<b>Batch program</b><br><div style='text-align:left;margin-top:6px;line-height:1.45'>&bull; <b>proof system:</b> STARK + PlonK<br>&bull; <b>zkVM:</b> ZisK (RISC-V)<br>&bull; <b>software:</b> Rust</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=top;spacingTop=6;spacingLeft=10;" vertex="1" parent="1"><mxGeometry x="365" y="40" width="230" height="96" as="geometry"/></mxCell><mxCell id="c9" value="2" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontStyle=1;fontFamily=Courier New;" vertex="1" parent="1"><mxGeometry x="357" y="32" width="18" height="16" as="geometry"/></mxCell><mxCell id="c10" value="<b>Results program</b><br><div style='text-align:left;margin-top:6px;line-height:1.45'>&bull; <b>proof system:</b> STARK + PlonK<br>&bull; <b>zkVM:</b> ZisK (RISC-V)<br>&bull; <b>used:</b> sequencer-held keys</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=top;spacingTop=6;spacingLeft=10;" vertex="1" parent="1"><mxGeometry x="365" y="160" width="230" height="96" as="geometry"/></mxCell><mxCell id="c11" value="3" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontStyle=1;fontFamily=Courier New;" vertex="1" parent="1"><mxGeometry x="357" y="152" width="18" height="16" as="geometry"/></mxCell><mxCell id="c12" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="705" y="70" width="190" height="130" 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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNiA0MCI+PGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMzMzMzMzIiBzdHJva2Utd2lkdGg9IjEuOCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTEzIDIgTDI0IDIwIEwxMyAyNiBMMiAyMCBaIi8+PHBhdGggZD0iTTEzIDIgTDEzIDI2Ii8+PHBhdGggZD0iTTIgMjAgTDEzIDE1IEwyNCAyMCIvPjxwYXRoIGQ9Ik0yIDIzIEwxMyAzOCBMMjQgMjMgTDEzIDI5IFoiLz48L2c+PC9zdmc+;" vertex="1" parent="1"><mxGeometry x="788" y="82" width="16" height="24" as="geometry"/></mxCell><mxCell id="c14" value="<b>ProcessRegistry</b><br>verifies proofs with<br>the ZiskVerifier and<br>blob openings" style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="705" y="110" width="190" height="80" as="geometry"/></mxCell><mxCell id="c15" value="ballot<br>proof" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.3;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c6" target="c8"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c16" value="batch proof,<br>blobs" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.25;entryDx=0;entryDy=0;" edge="1" parent="1" source="c8" target="c12"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c17" value="results<br>proof" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.8;entryDx=0;entryDy=0;" edge="1" parent="1" source="c10" target="c12"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c18" value="one proof per ballot,<br>verified in batches<br>inside the batch program" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="25" y="186" width="230" height="70" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>
@@ -1,1426 +0,0 @@
-<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:146.0) Gecko/20100101 Firefox/146.0" version="29.2.10" pages="6"> - <diagram name="1. voter" id="-BY3RIMELlOST2Ke_Soi"> - <mxGraphModel dx="1245" dy="586" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> - <root> - <mxCell id="9w8_UW6vJWkl_njZVMp4-0" /> - <mxCell id="9w8_UW6vJWkl_njZVMp4-1" parent="9w8_UW6vJWkl_njZVMp4-0" /> - <mxCell id="soDssakDcq8FXFe2htng-0" parent="9w8_UW6vJWkl_njZVMp4-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" value="<div><br></div>" vertex="1"> - <mxGeometry height="305" width="880" x="400" y="55" as="geometry" /> - </mxCell> - <mxCell id="soDssakDcq8FXFe2htng-1" parent="9w8_UW6vJWkl_njZVMp4-1" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Courier New;" value="" vertex="1"> - <mxGeometry height="130" width="840" x="420" y="145" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-4" parent="9w8_UW6vJWkl_njZVMp4-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" value="<div>\(\text{protocolRulesCompliance}(\text{ballotMode, weight, ballot})\)</div>" vertex="1"> - <mxGeometry height="40" width="320" x="440" y="190" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-5" edge="1" parent="9w8_UW6vJWkl_njZVMp4-1" source="9w8_UW6vJWkl_njZVMp4-6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.125;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" target="9w8_UW6vJWkl_njZVMp4-4" value=""> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-6" parent="9w8_UW6vJWkl_njZVMp4-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{ballotMode}$$" vertex="1"> - <mxGeometry height="40" width="80" x="440" y="80" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-7" edge="1" parent="9w8_UW6vJWkl_njZVMp4-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;startArrow=oval;startFill=1;fontSize=11;fontFamily=Courier New;entryX=0.136;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;" target="9w8_UW6vJWkl_njZVMp4-14" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="810" y="160" /> - </Array> - <mxPoint x="720" y="160" as="sourcePoint" /> - <mxPoint x="810" y="189" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-8" edge="1" parent="9w8_UW6vJWkl_njZVMp4-1" source="9w8_UW6vJWkl_njZVMp4-9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;fontFamily=Courier New;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="720" y="190" /> - </Array> - <mxPoint x="720" y="190" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-9" parent="9w8_UW6vJWkl_njZVMp4-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{ballot}$$" vertex="1"> - <mxGeometry height="40" width="80" x="680" y="80" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-12" edge="1" parent="9w8_UW6vJWkl_njZVMp4-1" source="OdLuYHqov1AF89vjBi5t-8" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;fontFamily=Courier New;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="930" y="120" as="sourcePoint" /> - <mxPoint x="970" y="190" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-14" parent="9w8_UW6vJWkl_njZVMp4-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#f5f5f5;fontColor=#333333;strokeColor=#666666;" value="$$\text{Enc}_{\text{encryptionKey}}(\text{ballot}; k)$$" vertex="1"> - <mxGeometry height="40" width="220" x="780" y="190" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-15" edge="1" parent="9w8_UW6vJWkl_njZVMp4-1" source="9w8_UW6vJWkl_njZVMp4-4" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" target="9w8_UW6vJWkl_njZVMp4-16" value=""> - <mxGeometry height="50" relative="1" width="50" as="geometry"> - <mxPoint x="639.58" y="230" as="sourcePoint" /> - <mxPoint x="639.58" y="390" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-16" parent="9w8_UW6vJWkl_njZVMp4-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="true" vertex="1"> - <mxGeometry height="40" width="80" x="560" y="300" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-17" edge="1" parent="9w8_UW6vJWkl_njZVMp4-1" source="9w8_UW6vJWkl_njZVMp4-14" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" target="9w8_UW6vJWkl_njZVMp4-18" value=""> - <mxGeometry height="50" relative="1" width="50" as="geometry"> - <mxPoint x="880" y="230" as="sourcePoint" /> - <mxPoint x="870" y="510" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-18" parent="9w8_UW6vJWkl_njZVMp4-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{encryptedBallot}$$" vertex="1"> - <mxGeometry height="40" width="120" x="830" y="300" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-19" parent="9w8_UW6vJWkl_njZVMp4-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" value="PROTOCOL RULES COMPLIANCE" vertex="1"> - <mxGeometry height="40" width="322.35" x="430" y="390.63" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-20" parent="9w8_UW6vJWkl_njZVMp4-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#f5f5f5;strokeColor=#666666;fontSize=11;fontColor=#333333;" value="VOTE ENCRYPTION" vertex="1"> - <mxGeometry height="40" width="233" x="779" y="390.63" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-21" parent="9w8_UW6vJWkl_njZVMp4-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> - <mxGeometry height="327.04" width="20" x="580.39" y="217.12" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-22" parent="9w8_UW6vJWkl_njZVMp4-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> - <mxGeometry height="232.13" width="20" x="885.81" y="264.58" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-23" edge="1" parent="9w8_UW6vJWkl_njZVMp4-1" source="9w8_UW6vJWkl_njZVMp4-24" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" target="9w8_UW6vJWkl_njZVMp4-4" value=""> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="9w8_UW6vJWkl_njZVMp4-24" parent="9w8_UW6vJWkl_njZVMp4-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{weight}$$" vertex="1"> - <mxGeometry height="40" width="80" x="560" y="80" as="geometry" /> - </mxCell> - <mxCell id="OdLuYHqov1AF89vjBi5t-0" parent="9w8_UW6vJWkl_njZVMp4-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#ffe6cc;strokeColor=#d79b00;" value="$$\text{Hash}(\text{processID} || \text{address} || k)$$" vertex="1"> - <mxGeometry height="40" width="200" x="1040" y="190" as="geometry" /> - </mxCell> - <mxCell id="OdLuYHqov1AF89vjBi5t-1" edge="1" parent="9w8_UW6vJWkl_njZVMp4-1" source="OdLuYHqov1AF89vjBi5t-5" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontSize=11;fontFamily=Courier New;" value=""> - <mxGeometry height="50" relative="1" width="50" as="geometry"> - <mxPoint x="1210" y="160" as="sourcePoint" /> - <mxPoint x="1210" y="190" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="OdLuYHqov1AF89vjBi5t-2" edge="1" parent="9w8_UW6vJWkl_njZVMp4-1" source="OdLuYHqov1AF89vjBi5t-4" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.149;entryY=-0.005;entryDx=0;entryDy=0;entryPerimeter=0;fontSize=11;fontFamily=Courier New;" value=""> - <mxGeometry height="50" relative="1" width="50" as="geometry"> - <mxPoint x="1139.8899999999999" y="150" as="sourcePoint" /> - <mxPoint x="1139.8000000000002" y="189.79999999999995" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="OdLuYHqov1AF89vjBi5t-3" edge="1" parent="9w8_UW6vJWkl_njZVMp4-1" source="OdLuYHqov1AF89vjBi5t-0" style="endArrow=classic;html=1;rounded=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;fontFamily=Courier New;" target="OdLuYHqov1AF89vjBi5t-6" value=""> - <mxGeometry height="50" relative="1" width="50" as="geometry"> - <mxPoint x="1139.58" y="230" as="sourcePoint" /> - <mxPoint x="1140" y="710" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="OdLuYHqov1AF89vjBi5t-4" parent="9w8_UW6vJWkl_njZVMp4-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{processID}$$" vertex="1"> - <mxGeometry height="40" width="60" x="1110" y="80" as="geometry" /> - </mxCell> - <mxCell id="OdLuYHqov1AF89vjBi5t-5" parent="9w8_UW6vJWkl_njZVMp4-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{address}$$" vertex="1"> - <mxGeometry height="40" width="60" x="1180" y="80" as="geometry" /> - </mxCell> - <mxCell id="OdLuYHqov1AF89vjBi5t-6" parent="9w8_UW6vJWkl_njZVMp4-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{voteID}$$" vertex="1"> - <mxGeometry height="40" width="60" x="1110" y="300" as="geometry" /> - </mxCell> - <mxCell id="OdLuYHqov1AF89vjBi5t-7" edge="1" parent="9w8_UW6vJWkl_njZVMp4-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;startArrow=oval;startFill=1;fontSize=11;fontFamily=Courier New;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="990" y="160" /> - <mxPoint x="1070" y="160" /> - </Array> - <mxPoint x="970" y="160" as="sourcePoint" /> - <mxPoint x="1070" y="190" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="OdLuYHqov1AF89vjBi5t-8" parent="9w8_UW6vJWkl_njZVMp4-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$k$$" vertex="1"> - <mxGeometry height="40" width="60" x="940" y="80" as="geometry" /> - </mxCell> - <mxCell id="aigXhIMcltKlNBnPKtQZ-1" edge="1" parent="9w8_UW6vJWkl_njZVMp4-1" source="OdLuYHqov1AF89vjBi5t-9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.408;entryY=-0.01;entryDx=0;entryDy=0;entryPerimeter=0;" target="9w8_UW6vJWkl_njZVMp4-14" value=""> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="OdLuYHqov1AF89vjBi5t-9" parent="9w8_UW6vJWkl_njZVMp4-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="<div style="font-size: 11px;">$$\text{encryptionKey}$$</div>" vertex="1"> - <mxGeometry height="40" width="100" x="820" y="80" as="geometry" /> - </mxCell> - <mxCell id="IJeOMj3sBRJv-nG6xJRO-0" parent="9w8_UW6vJWkl_njZVMp4-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#ffe6cc;strokeColor=#d79b00;fontSize=11;" value="VOTE ID" vertex="1"> - <mxGeometry height="40" width="208.01" x="1039.99" y="390.65" as="geometry" /> - </mxCell> - <mxCell id="IJeOMj3sBRJv-nG6xJRO-1" parent="9w8_UW6vJWkl_njZVMp4-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> - <mxGeometry height="207.33" width="20" x="1133.44" y="276.99" as="geometry" /> - </mxCell> - </root> - </mxGraphModel> - </diagram> - <diagram name="2. authentication" id="WzA6qX0mKvumESjFDZzn"> - <mxGraphModel dx="1465" dy="1539" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> - <root> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-0" /> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-1" parent="3f8I2EUOT3BU8Yha7U0F-0" /> - <mxCell id="WidNY7TYG4Gs_5p9z0Nr-0" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" value="<div><br></div>" vertex="1"> - <mxGeometry height="410" width="1217" x="50" y="-770" as="geometry" /> - </mxCell> - <mxCell id="WidNY7TYG4Gs_5p9z0Nr-1" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" value="<div><br></div>" vertex="1"> - <mxGeometry height="250" width="1157" x="80" y="-690" as="geometry" /> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-4" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" value="$$\text{P.Verify}(\text{ballotProof, public inputs})$$" vertex="1"> - <mxGeometry height="40" width="220" x="100" y="-509.88" as="geometry" /> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-5" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-7" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.25;entryY=0;entryDx=0;entryDy=0;fontSize=11;" target="3f8I2EUOT3BU8Yha7U0F-4" value=""> - <mxGeometry height="50" relative="1" width="50" as="geometry"> - <mxPoint x="139.89" y="-639.88" as="sourcePoint" /> - <mxPoint x="139.89" y="-589.88" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-6" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-4" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="3f8I2EUOT3BU8Yha7U0F-27" value=""> - <mxGeometry height="50" relative="1" width="50" as="geometry"> - <mxPoint x="209.57999999999998" y="-449.88" as="sourcePoint" /> - <mxPoint x="210" y="-320" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-7" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div style="font-size: 11px;">$$\text{ballotProof}$$</div>" vertex="1"> - <mxGeometry height="40" width="80" x="115" y="-746.88" as="geometry" /> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-8" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;startArrow=none;startFill=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="525" y="-540" /> - <mxPoint x="260" y="-540" /> - </Array> - <mxPoint x="585" y="-570" as="sourcePoint" /> - <mxPoint x="260" y="-510" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-9" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" value="$$\text{public inputs}$$" vertex="1"> - <mxGeometry height="40" width="570" x="240" y="-610" as="geometry" /> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-10" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-11" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" target="3f8I2EUOT3BU8Yha7U0F-15" value=""> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-11" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;fontStyle=0" value="$$pk$$" vertex="1"> - <mxGeometry height="40" width="60" x="1040" y="-746.88" as="geometry" /> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-12" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.75;entryY=0;entryDx=0;entryDy=0;" target="3f8I2EUOT3BU8Yha7U0F-15"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1160" y="-309.88" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-13" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{signature}$$" vertex="1"> - <mxGeometry height="40" width="80" x="1130" y="-746.88" as="geometry" /> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-14" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-15" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="3f8I2EUOT3BU8Yha7U0F-28"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1200" y="-320" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-15" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" value="$$\text{S.Verify}_{pk}(\text{voteID, signature})$$" vertex="1"> - <mxGeometry height="40" width="200" x="1020" y="-509.88" as="geometry" /> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-16" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;startArrow=oval;startFill=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="3f8I2EUOT3BU8Yha7U0F-32" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="960" y="-640" /> - </Array> - <mxPoint x="1070" y="-640" as="sourcePoint" /> - <mxPoint x="960" y="-600" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-17" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-34" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" target="3f8I2EUOT3BU8Yha7U0F-35"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1012" y="-520" as="sourcePoint" /> - <mxPoint x="880" y="-309.8800000000001" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-18" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-32" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;jumpStyle=arc;" target="3f8I2EUOT3BU8Yha7U0F-34" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="960" y="-550" /> - <mxPoint x="960" y="-550" /> - </Array> - <mxPoint x="1080" y="-559.88" as="sourcePoint" /> - <mxPoint x="1031.1999999999998" y="-559.6806" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-19" parent="3f8I2EUOT3BU8Yha7U0F-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" value="VOTER'S PROOF VERIFICATION" vertex="1"> - <mxGeometry height="40" width="730" x="100" y="-319.25" as="geometry" /> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-20" parent="3f8I2EUOT3BU8Yha7U0F-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" value="AUTHENTICATION + NON-MALLEABILITY" vertex="1"> - <mxGeometry height="40" width="400" x="850" y="-319.25" as="geometry" /> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-21" parent="3f8I2EUOT3BU8Yha7U0F-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> - <mxGeometry height="730.68" width="20" x="453.92" y="-694.6" as="geometry" /> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-22" parent="3f8I2EUOT3BU8Yha7U0F-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> - <mxGeometry height="402" width="20" x="1038.44" y="-530.25" as="geometry" /> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-23" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="<div>$$\text{ballotMode}$$</div>" vertex="1"> - <mxGeometry height="40" width="70" x="320" y="-746.88" as="geometry" /> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-24" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{encryptionKey}$$" vertex="1"> - <mxGeometry height="40" width="90" x="400" y="-746.88" as="geometry" /> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-25" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{encryptedBallot}$$" vertex="1"> - <mxGeometry height="40" width="100" x="500" y="-746.88" as="geometry" /> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-26" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="<div>$$\text{processID}$$</div>" vertex="1"> - <mxGeometry height="40" width="70" x="240" y="-746.88" as="geometry" /> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-27" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="true" vertex="1"> - <mxGeometry height="40" width="80" x="170" y="-410" as="geometry" /> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-28" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="true" vertex="1"> - <mxGeometry height="40" width="80" x="1080" y="-410" as="geometry" /> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-29" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{weight}$$" vertex="1"> - <mxGeometry height="40" width="60" x="680" y="-746.88" as="geometry" /> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-30" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{voteID}$$" vertex="1"> - <mxGeometry height="40" width="60" x="610" y="-746.88" as="geometry" /> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-31" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;jumpStyle=arc;startArrow=oval;startFill=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" target="3f8I2EUOT3BU8Yha7U0F-34" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="880" y="-650" /> - </Array> - <mxPoint x="780" y="-650" as="sourcePoint" /> - <mxPoint x="1162" y="-318.8800000000001" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-32" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" value="$$\text{Hash}(pk)$$" vertex="1"> - <mxGeometry height="40" width="80" x="920" y="-610" as="geometry" /> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-33" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{address}$$" vertex="1"> - <mxGeometry height="40" width="60" x="750" y="-746.88" as="geometry" /> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-34" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" value="<div>$$\text{address} =? \text{ Hash}(pk)$$</div>" vertex="1"> - <mxGeometry height="40" width="160" x="840" y="-509.88" as="geometry" /> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-35" parent="3f8I2EUOT3BU8Yha7U0F-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="true" vertex="1"> - <mxGeometry height="40" width="80" x="880" y="-410" as="geometry" /> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-36" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-23" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="355" y="-647" /> - </Array> - <mxPoint x="354.40999999999997" y="-696.88" as="sourcePoint" /> - <mxPoint x="354.40999999999997" y="-609.88" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-37" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-26" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="275" y="-611" /> - </Array> - <mxPoint x="280" y="-697" as="sourcePoint" /> - <mxPoint x="275" y="-611" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-38" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-24" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="445" y="-610" /> - </Array> - <mxPoint x="459.83" y="-696.88" as="sourcePoint" /> - <mxPoint x="445" y="-610" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-39" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-25" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points" /> - <mxPoint x="550" y="-696.88" as="sourcePoint" /> - <mxPoint x="550" y="-609.88" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-40" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-30" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points" /> - <mxPoint x="639.83" y="-696.88" as="sourcePoint" /> - <mxPoint x="639.83" y="-609.88" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-41" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-29" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points" /> - <mxPoint x="709.83" y="-696.88" as="sourcePoint" /> - <mxPoint x="709.83" y="-609.88" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="3f8I2EUOT3BU8Yha7U0F-42" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" source="3f8I2EUOT3BU8Yha7U0F-33" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points" /> - <mxPoint x="779.83" y="-696.88" as="sourcePoint" /> - <mxPoint x="779.83" y="-609.88" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="e3s4HrUR3a-s9xtcPCWI-1" edge="1" parent="3f8I2EUOT3BU8Yha7U0F-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;jumpStyle=arc;startArrow=oval;startFill=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="3f8I2EUOT3BU8Yha7U0F-15" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="1120" y="-670" /> - </Array> - <mxPoint x="640" y="-670.25" as="sourcePoint" /> - <mxPoint x="740" y="-530.25" as="targetPoint" /> - </mxGeometry> - </mxCell> - </root> - </mxGraphModel> - </diagram> - <diagram name="2. authentication (bis)" id="LuADnGaQK4kse1oG0egb"> - <mxGraphModel dx="1465" dy="1539" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> - <root> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-0" /> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-1" parent="ivgGZHrRByy_Q-LoWHiO-0" /> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-2" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" value="<div><br></div>" vertex="1"> - <mxGeometry height="410" width="1310" x="50" y="-770" as="geometry" /> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-3" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" value="<div><br></div>" vertex="1"> - <mxGeometry height="250" width="1250" x="80" y="-690" as="geometry" /> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-4" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" value="$$\text{P.Verify}(\text{ballotProof, public inputs})$$" vertex="1"> - <mxGeometry height="40" width="220" x="100" y="-509.88" as="geometry" /> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-5" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-7" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.25;entryY=0;entryDx=0;entryDy=0;fontSize=11;" target="ivgGZHrRByy_Q-LoWHiO-4" value=""> - <mxGeometry height="50" relative="1" width="50" as="geometry"> - <mxPoint x="139.89" y="-639.88" as="sourcePoint" /> - <mxPoint x="139.89" y="-589.88" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-6" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-4" style="endArrow=classic;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;fontSize=11;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="ivgGZHrRByy_Q-LoWHiO-27" value=""> - <mxGeometry height="50" relative="1" width="50" as="geometry"> - <mxPoint x="209.57999999999998" y="-449.88" as="sourcePoint" /> - <mxPoint x="210" y="-320" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-7" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div style="font-size: 11px;">$$\text{ballotProof}$$</div>" vertex="1"> - <mxGeometry height="40" width="80" x="115" y="-746.88" as="geometry" /> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-8" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;startArrow=none;startFill=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="525" y="-540" /> - <mxPoint x="260" y="-540" /> - </Array> - <mxPoint x="585" y="-570" as="sourcePoint" /> - <mxPoint x="260" y="-510" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-9" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" value="$$\text{public inputs}$$" vertex="1"> - <mxGeometry height="40" width="570" x="240" y="-610" as="geometry" /> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-10" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-11" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="ivgGZHrRByy_Q-LoWHiO-15" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="1130" y="-700" /> - <mxPoint x="1130" y="-700" /> - </Array> - </mxGeometry> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-11" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;fontStyle=0" value="$$pk$$" vertex="1"> - <mxGeometry height="40" width="40" x="1110" y="-746.88" as="geometry" /> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-12" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.877;entryY=0.019;entryDx=0;entryDy=0;entryPerimeter=0;" target="ivgGZHrRByy_Q-LoWHiO-15"> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="1205" y="-707" /> - </Array> - <mxPoint x="1160" y="-309.88" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-13" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{signature}$$" vertex="1"> - <mxGeometry height="40" width="80" x="1165" y="-746.88" as="geometry" /> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-14" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-15" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="ivgGZHrRByy_Q-LoWHiO-28"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1200" y="-320" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-15" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" value="$$\text{S.Verify}_{pk}(\text{voteID, signature})$$" vertex="1"> - <mxGeometry height="40" width="200" x="1030" y="-509.88" as="geometry" /> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-17" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-34" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" target="ivgGZHrRByy_Q-LoWHiO-35"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1012" y="-520" as="sourcePoint" /> - <mxPoint x="880" y="-309.8800000000001" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-18" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-32" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;jumpStyle=arc;" target="ivgGZHrRByy_Q-LoWHiO-34" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="960" y="-550" /> - <mxPoint x="960" y="-550" /> - </Array> - <mxPoint x="1080" y="-559.88" as="sourcePoint" /> - <mxPoint x="1031.1999999999998" y="-559.6806" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-19" parent="ivgGZHrRByy_Q-LoWHiO-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" value="VOTER'S PROOF VERIFICATION" vertex="1"> - <mxGeometry height="40" width="730" x="100" y="-319.25" as="geometry" /> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-20" parent="ivgGZHrRByy_Q-LoWHiO-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" value="AUTHENTICATION + NON-MALLEABILITY" vertex="1"> - <mxGeometry height="40" width="400" x="850" y="-319.25" as="geometry" /> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-21" parent="ivgGZHrRByy_Q-LoWHiO-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> - <mxGeometry height="730.68" width="20" x="453.92" y="-694.6" as="geometry" /> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-22" parent="ivgGZHrRByy_Q-LoWHiO-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> - <mxGeometry height="402" width="20" x="1038.44" y="-530.25" as="geometry" /> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-23" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="<div>$$\text{ballotMode}$$</div>" vertex="1"> - <mxGeometry height="40" width="70" x="320" y="-746.88" as="geometry" /> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-24" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{encryptionKey}$$" vertex="1"> - <mxGeometry height="40" width="90" x="400" y="-746.88" as="geometry" /> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-25" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{encryptedBallot}$$" vertex="1"> - <mxGeometry height="40" width="100" x="500" y="-746.88" as="geometry" /> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-26" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="<div>$$\text{processID}$$</div>" vertex="1"> - <mxGeometry height="40" width="70" x="240" y="-746.88" as="geometry" /> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-27" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="true" vertex="1"> - <mxGeometry height="40" width="80" x="170" y="-410" as="geometry" /> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-28" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="true" vertex="1"> - <mxGeometry height="40" width="80" x="1090" y="-410" as="geometry" /> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-29" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{weight}$$" vertex="1"> - <mxGeometry height="40" width="60" x="680" y="-746.88" as="geometry" /> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-30" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{voteID}$$" vertex="1"> - <mxGeometry height="40" width="60" x="610" y="-746.88" as="geometry" /> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-31" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;jumpStyle=arc;startArrow=oval;startFill=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" target="ivgGZHrRByy_Q-LoWHiO-34" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="880" y="-650" /> - </Array> - <mxPoint x="780" y="-650" as="sourcePoint" /> - <mxPoint x="1162" y="-318.8800000000001" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-32" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" value="$$\text{Hash}(pk)$$" vertex="1"> - <mxGeometry height="40" width="80" x="920" y="-610" as="geometry" /> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-33" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{address}$$" vertex="1"> - <mxGeometry height="40" width="60" x="750" y="-746.88" as="geometry" /> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-34" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" value="<div>$$\text{address} =? \text{ Hash}(pk)$$</div>" vertex="1"> - <mxGeometry height="40" width="160" x="840" y="-509.88" as="geometry" /> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-35" parent="ivgGZHrRByy_Q-LoWHiO-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="true" vertex="1"> - <mxGeometry height="40" width="80" x="880" y="-410" as="geometry" /> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-36" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-23" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="355" y="-647" /> - </Array> - <mxPoint x="354.40999999999997" y="-696.88" as="sourcePoint" /> - <mxPoint x="354.40999999999997" y="-609.88" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-37" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-26" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="275" y="-611" /> - </Array> - <mxPoint x="280" y="-697" as="sourcePoint" /> - <mxPoint x="275" y="-611" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-38" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-24" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="445" y="-610" /> - </Array> - <mxPoint x="459.83" y="-696.88" as="sourcePoint" /> - <mxPoint x="445" y="-610" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-39" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-25" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points" /> - <mxPoint x="550" y="-696.88" as="sourcePoint" /> - <mxPoint x="550" y="-609.88" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-40" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-30" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points" /> - <mxPoint x="639.83" y="-696.88" as="sourcePoint" /> - <mxPoint x="639.83" y="-609.88" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-41" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-29" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points" /> - <mxPoint x="709.83" y="-696.88" as="sourcePoint" /> - <mxPoint x="709.83" y="-609.88" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-42" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" source="ivgGZHrRByy_Q-LoWHiO-33" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.212;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points" /> - <mxPoint x="779.83" y="-696.88" as="sourcePoint" /> - <mxPoint x="779.83" y="-609.88" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-43" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;jumpStyle=arc;startArrow=oval;startFill=1;entryX=0.143;entryY=-0.009;entryDx=0;entryDy=0;entryPerimeter=0;" target="ivgGZHrRByy_Q-LoWHiO-15" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="1059" y="-670" /> - </Array> - <mxPoint x="640" y="-670.25" as="sourcePoint" /> - <mxPoint x="740" y="-530.25" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ivgGZHrRByy_Q-LoWHiO-16" edge="1" parent="ivgGZHrRByy_Q-LoWHiO-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontSize=11;startArrow=oval;startFill=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;jumpStyle=arc;" target="ivgGZHrRByy_Q-LoWHiO-32" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="960" y="-640" /> - </Array> - <mxPoint x="1130" y="-640" as="sourcePoint" /> - <mxPoint x="960" y="-600" as="targetPoint" /> - </mxGeometry> - </mxCell> - </root> - </mxGraphModel> - </diagram> - <diagram name="3. aggregation" id="wAmNdo2rwqAe7TFG6LFr"> - <mxGraphModel dx="1245" dy="586" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> - <root> - <mxCell id="ecz03OsYZvi9N8fAGkOF-0" /> - <mxCell id="ecz03OsYZvi9N8fAGkOF-1" parent="ecz03OsYZvi9N8fAGkOF-0" /> - <mxCell id="ecz03OsYZvi9N8fAGkOF-2" parent="ecz03OsYZvi9N8fAGkOF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" value="<div><br></div>" vertex="1"> - <mxGeometry height="260" width="835" x="35" y="60" as="geometry" /> - </mxCell> - <mxCell id="ecz03OsYZvi9N8fAGkOF-3" parent="ecz03OsYZvi9N8fAGkOF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" value="<div><br></div>" vertex="1"> - <mxGeometry height="95" width="795" x="55" y="135" as="geometry" /> - </mxCell> - <mxCell id="ecz03OsYZvi9N8fAGkOF-4" parent="ecz03OsYZvi9N8fAGkOF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{voteID}_i$$" vertex="1"> - <mxGeometry height="40" width="60" x="350.00000000000006" y="80" as="geometry" /> - </mxCell> - <mxCell id="ecz03OsYZvi9N8fAGkOF-5" parent="ecz03OsYZvi9N8fAGkOF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="<div>$$\text{ballotMode}$$</div>" vertex="1"> - <mxGeometry height="40" width="80" x="640" y="80" as="geometry" /> - </mxCell> - <mxCell id="ecz03OsYZvi9N8fAGkOF-6" parent="ecz03OsYZvi9N8fAGkOF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{encryptionKey}$$" vertex="1"> - <mxGeometry height="40" width="100" x="730" y="80" as="geometry" /> - </mxCell> - <mxCell id="ecz03OsYZvi9N8fAGkOF-7" edge="1" parent="ecz03OsYZvi9N8fAGkOF-1" source="ecz03OsYZvi9N8fAGkOF-8" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.273;entryY=0.012;entryDx=0;entryDy=0;entryPerimeter=0;" target="ecz03OsYZvi9N8fAGkOF-19" value=""> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="ecz03OsYZvi9N8fAGkOF-8" parent="ecz03OsYZvi9N8fAGkOF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="<div>$$\text{encryptedBallot}_i$$</div>" vertex="1"> - <mxGeometry height="40" width="110" x="230" y="80" as="geometry" /> - </mxCell> - <mxCell id="ecz03OsYZvi9N8fAGkOF-9" parent="ecz03OsYZvi9N8fAGkOF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="<div>$$\text{processID}$$</div>" vertex="1"> - <mxGeometry height="40" width="70" x="560" y="80.00000000000011" as="geometry" /> - </mxCell> - <mxCell id="ecz03OsYZvi9N8fAGkOF-10" parent="ecz03OsYZvi9N8fAGkOF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{address}_i$$" vertex="1"> - <mxGeometry height="40" width="60" x="420" y="80" as="geometry" /> - </mxCell> - <mxCell id="ecz03OsYZvi9N8fAGkOF-11" parent="ecz03OsYZvi9N8fAGkOF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="true" vertex="1"> - <mxGeometry height="40" width="80" x="415" y="270" as="geometry" /> - </mxCell> - <mxCell id="ecz03OsYZvi9N8fAGkOF-12" edge="1" parent="ecz03OsYZvi9N8fAGkOF-1" style="endArrow=classic;html=1;rounded=0;" value=""> - <mxGeometry height="50" relative="1" width="50" as="geometry"> - <mxPoint x="148.83000000000004" y="120" as="sourcePoint" /> - <mxPoint x="148.83000000000004" y="160" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ecz03OsYZvi9N8fAGkOF-13" parent="ecz03OsYZvi9N8fAGkOF-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=11;" value="SHARED PUBLIC INPUTS" vertex="1"> - <mxGeometry height="40" width="372" x="458" y="354.01" as="geometry" /> - </mxCell> - <mxCell id="ecz03OsYZvi9N8fAGkOF-14" parent="ecz03OsYZvi9N8fAGkOF-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> - <mxGeometry height="373.07" width="20" x="630.32" y="153.48" as="geometry" /> - </mxCell> - <mxCell id="ecz03OsYZvi9N8fAGkOF-15" parent="ecz03OsYZvi9N8fAGkOF-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" value="VOTES AGGREGATION" vertex="1"> - <mxGeometry height="40" width="360" x="73" y="354.01" as="geometry" /> - </mxCell> - <mxCell id="ecz03OsYZvi9N8fAGkOF-16" parent="ecz03OsYZvi9N8fAGkOF-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> - <mxGeometry height="366.25" width="20" x="242.82" y="156.88" as="geometry" /> - </mxCell> - <mxCell id="ecz03OsYZvi9N8fAGkOF-17" parent="ecz03OsYZvi9N8fAGkOF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div style="font-size: 11px;">$$\text{authenticationProof}_i$$</div>" vertex="1"> - <mxGeometry height="40" width="140" x="80" y="80" as="geometry" /> - </mxCell> - <mxCell id="ecz03OsYZvi9N8fAGkOF-18" edge="1" parent="ecz03OsYZvi9N8fAGkOF-1" source="ecz03OsYZvi9N8fAGkOF-19" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" target="ecz03OsYZvi9N8fAGkOF-11" value=""> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="ecz03OsYZvi9N8fAGkOF-19" parent="ecz03OsYZvi9N8fAGkOF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" value="recursive SNARK batch verifier" vertex="1"> - <mxGeometry height="40" width="750" x="80" y="160" as="geometry" /> - </mxCell> - <mxCell id="ecz03OsYZvi9N8fAGkOF-20" parent="ecz03OsYZvi9N8fAGkOF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{weight}_i$$" vertex="1"> - <mxGeometry height="40" width="60" x="490" y="80" as="geometry" /> - </mxCell> - <mxCell id="ecz03OsYZvi9N8fAGkOF-21" edge="1" parent="ecz03OsYZvi9N8fAGkOF-1" style="endArrow=classic;html=1;rounded=0;" value=""> - <mxGeometry height="50" relative="1" width="50" as="geometry"> - <mxPoint x="379.58" y="120" as="sourcePoint" /> - <mxPoint x="379.58" y="160" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ecz03OsYZvi9N8fAGkOF-22" edge="1" parent="ecz03OsYZvi9N8fAGkOF-1" style="endArrow=classic;html=1;rounded=0;" value=""> - <mxGeometry height="50" relative="1" width="50" as="geometry"> - <mxPoint x="449.58" y="120" as="sourcePoint" /> - <mxPoint x="449.58" y="160" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ecz03OsYZvi9N8fAGkOF-23" edge="1" parent="ecz03OsYZvi9N8fAGkOF-1" style="endArrow=classic;html=1;rounded=0;" value=""> - <mxGeometry height="50" relative="1" width="50" as="geometry"> - <mxPoint x="519.58" y="120" as="sourcePoint" /> - <mxPoint x="519.58" y="160" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ecz03OsYZvi9N8fAGkOF-24" edge="1" parent="ecz03OsYZvi9N8fAGkOF-1" style="endArrow=classic;html=1;rounded=0;" value=""> - <mxGeometry height="50" relative="1" width="50" as="geometry"> - <mxPoint x="594.58" y="120" as="sourcePoint" /> - <mxPoint x="594.58" y="160" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ecz03OsYZvi9N8fAGkOF-25" edge="1" parent="ecz03OsYZvi9N8fAGkOF-1" style="endArrow=classic;html=1;rounded=0;" value=""> - <mxGeometry height="50" relative="1" width="50" as="geometry"> - <mxPoint x="674.58" y="120" as="sourcePoint" /> - <mxPoint x="674.58" y="160" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="ecz03OsYZvi9N8fAGkOF-26" edge="1" parent="ecz03OsYZvi9N8fAGkOF-1" style="endArrow=classic;html=1;rounded=0;" value=""> - <mxGeometry height="50" relative="1" width="50" as="geometry"> - <mxPoint x="779.9200000000001" y="120" as="sourcePoint" /> - <mxPoint x="779.9200000000001" y="160" as="targetPoint" /> - </mxGeometry> - </mxCell> - </root> - </mxGraphModel> - </diagram> - <diagram name="4. state-transition" id="gqVSyPOq0HqqUG1E7rmp"> - <mxGraphModel dx="4213" dy="2315" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> - <root> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-0" /> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-1" parent="YdgG6UzsnOPgAgFR6wUF-0" /> - <mxCell id="FyhsC8kHZ14GA4Zg5NcN-0" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" value="<div><br></div>" vertex="1"> - <mxGeometry height="1350" width="2780" x="-720" y="-290" as="geometry" /> - </mxCell> - <mxCell id="FyhsC8kHZ14GA4Zg5NcN-1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" value="<div><br></div>" vertex="1"> - <mxGeometry height="980" width="2595" x="-585" y="-60" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-4" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;" target="YdgG6UzsnOPgAgFR6wUF-26" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="240" y="-195" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-5" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;" value="" vertex="1"> - <mxGeometry height="130" width="490" x="330" y="-210" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-6" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-33" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="640" y="-110" /> - <mxPoint x="640" y="-110" /> - </Array> - <mxPoint x="640" y="-220" as="sourcePoint" /> - <mxPoint x="640" y="-110" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-7" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fontStyle=1;dashed=1;" value="" vertex="1"> - <mxGeometry height="550" width="1040" x="280" y="330" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-8" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fontStyle=1;dashed=1;" value="" vertex="1"> - <mxGeometry height="60" width="160" x="290" y="480" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-9" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fontStyle=1;dashed=1;" value="" vertex="1"> - <mxGeometry height="113" width="355" x="915" y="347" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-10" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{voteID}_i$$" vertex="1"> - <mxGeometry height="40" width="100" x="470" y="-190" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-11" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{stateRoot}^{\text{old}}$$" vertex="1"> - <mxGeometry height="40" width="80" x="1260" y="-120" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-12" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" target="YdgG6UzsnOPgAgFR6wUF-55" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="779.67" y="230" as="sourcePoint" /> - <mxPoint x="779.67" y="620" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-13" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-56" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.737;entryY=-0.012;entryDx=0;entryDy=0;entryPerimeter=0;" target="YdgG6UzsnOPgAgFR6wUF-70" value=""> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-14" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="505" y="1220" as="sourcePoint" /> - <mxPoint x="505" y="1220" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-15" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-20" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.513;entryDx=0;entryDy=0;entryPerimeter=0;" target="YdgG6UzsnOPgAgFR6wUF-9" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="1390" y="830" /> - <mxPoint x="1390" y="405" /> - </Array> - <mxPoint x="1280" y="405" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-16" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{stateRoot}^{\text{new}}$$" vertex="1"> - <mxGeometry height="40" width="80" x="1040" y="810" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-17" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-18" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="680" y="960" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-18" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div><div>$$\text{numVotes}^{\text{new}}$$</div></div>" vertex="1"> - <mxGeometry height="40" width="120" x="620" y="810" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-19" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-20" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;"> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="540" y="960" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-20" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div><div>$$\text{numOverwrites}^{\text{new}}$$</div></div>" vertex="1"> - <mxGeometry height="40" width="120" x="480" y="810" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-21" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div><div>$$\text{resultsAdd}^{\text{new}}$$</div></div>" vertex="1"> - <mxGeometry height="40" width="120" x="900" y="810" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-22" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div><div>$$\text{resultsSub}^{\text{new}}$$</div></div>" vertex="1"> - <mxGeometry height="40" width="120" x="760" y="810" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-23" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{stateRoot}^{\text{new}}$$" vertex="1"> - <mxGeometry height="40" width="80" x="1040" y="960" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-24" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-25" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" target="YdgG6UzsnOPgAgFR6wUF-26" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="-525" y="-10" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-25" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div style="font-size: 11px;">$$\text{aggregationProof}_i$$</div>" vertex="1"> - <mxGeometry height="40" width="130" x="-528" y="-120" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-26" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" value="recursive SNARK batch verifier" vertex="1"> - <mxGeometry height="220" width="390" x="-560" y="80" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-27" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-10" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points" /> - <mxPoint x="520.09" y="-60" as="sourcePoint" /> - <mxPoint x="520" y="80" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-28" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-37" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points" /> - <mxPoint x="1018.95" y="-80" as="sourcePoint" /> - <mxPoint x="1020" y="80" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-29" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-38" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points" /> - <mxPoint x="1169.47" y="-80" as="sourcePoint" /> - <mxPoint x="1170" y="80" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-30" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points" /> - <mxPoint x="1299.47" y="-80" as="sourcePoint" /> - <mxPoint x="1299" y="80" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-31" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-26" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" target="YdgG6UzsnOPgAgFR6wUF-32" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="-380" y="240" as="sourcePoint" /> - <mxPoint x="-380" y="310" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-32" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="true" vertex="1"> - <mxGeometry height="40" width="80" x="-405" y="959" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-33" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div>$$\text{ballotMode}$$</div>" vertex="1"> - <mxGeometry height="40" width="90" x="595" y="-190" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-34" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{encryptionKey}$$" vertex="1"> - <mxGeometry height="40" width="90" x="595" y="-140" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-35" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{encryptedBallot}_i$$" vertex="1"> - <mxGeometry height="40" width="100" x="470" y="-140" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-36" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="<div>$$\text{numVotes}^{\text{old}}$$</div>" vertex="1"> - <mxGeometry height="40" width="120" x="960" y="-120" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-37" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="<div>$$\text{numOverwrites}^{\text{old}}$$</div>" vertex="1"> - <mxGeometry height="40" width="120" x="960" y="-170" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-38" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div>$$\text{resultsAdd}^{\text{old}}$$</div>" vertex="1"> - <mxGeometry height="40" width="120" x="1110" y="-170" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-39" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div>$$\text{resultsSub}^{\text{old}}$$</div>" vertex="1"> - <mxGeometry height="40" width="120" x="1110" y="-120" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-40" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$k$$" vertex="1"> - <mxGeometry height="40" width="60" x="-680" y="490" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-41" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-42" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" target="YdgG6UzsnOPgAgFR6wUF-70" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="440" y="730" as="sourcePoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-42" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{Hash}(k)$$" vertex="1"> - <mxGeometry height="40" width="80" x="360" y="490" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-43" parent="YdgG6UzsnOPgAgFR6wUF-1" style="text;whiteSpace=wrap;html=1;" value="" vertex="1"> - <mxGeometry height="50" width="60" x="880" y="1020" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-44" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-53" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.222;exitY=1.002;exitDx=0;exitDy=0;exitPerimeter=0;" target="YdgG6UzsnOPgAgFR6wUF-58" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points" /> - <mxPoint x="512" y="320" as="sourcePoint" /> - <mxPoint x="560" y="580" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-45" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-53" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.317;exitY=1.002;exitDx=0;exitDy=0;exitPerimeter=0;" target="YdgG6UzsnOPgAgFR6wUF-56" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="596.5" y="300" as="sourcePoint" /> - <mxPoint x="596.5" y="550" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-46" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="YdgG6UzsnOPgAgFR6wUF-54" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="870" y="300" as="sourcePoint" /> - <mxPoint x="870" y="550" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-47" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="YdgG6UzsnOPgAgFR6wUF-63" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="979.5" y="250" as="sourcePoint" /> - <mxPoint x="979.5" y="500" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-48" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="YdgG6UzsnOPgAgFR6wUF-64" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1109" y="250" as="sourcePoint" /> - <mxPoint x="1109" y="500" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-49" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" target="YdgG6UzsnOPgAgFR6wUF-65" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1219.5" y="300" as="sourcePoint" /> - <mxPoint x="1219.5" y="550" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-50" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="779" y="520" /> - <mxPoint x="779" y="520" /> - </Array> - <mxPoint x="779.29" y="440" as="sourcePoint" /> - <mxPoint x="779" y="610" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-51" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="979.41" y="350" as="sourcePoint" /> - <mxPoint x="980" y="610" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-52" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;" value="<div><div><div><div><div><div><div><div><div><div>$$\text{stateRoot}^{\text{old}} = \text{stateRoot}^{\text{new}}$$</div><div><br></div></div></div></div>$$\text{numVotes}^{\text{old}} = \text{numVotes}^{\text{new}}$$</div></div></div>$$\text{numOverwrites}^{\text{old}} = \text{numOverwrites}^{\text{new}}$$</div><div><br></div><div><div><div><div><div><div><div>$$\text{resultsAdd}^{\text{old}} = \text{resultsAdd}^{\text{new}}$$</div></div></div>$$\text{resultsSub}^{\text{old}} = \text{resultsSub}^{\text{new}}$$</div></div></div></div></div></div>" vertex="1"> - <mxGeometry height="230" width="240" x="1270" y="490" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-53" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" value="<div><u><b>VERIFY INITIAL STATE</b><b><br><br></b></u></div><div><b><br></b></div><div align="left"><b>1.</b> Verify the MTProofs that prove that the first leafs of the tree store the public parameters of the voting process:<br><br>&nbsp;&nbsp; 0x0 = <b>processID</b>, 0x1 = <b>censusOrigin</b>, 0x2 = <b>ballotMode</b>, 0x3 = <b>encryptionKey</b>, 0x4 = <b>resultsAdd^{old}</b>, 0x5 = <b>resultsAdd^{sub}</b>. <br><br></div><div align="left"><b>2.</b> Verify the MTProofs that prove that none of the <b>voteIDs</b> belong to the tree.<br><b><br>3.</b> Verify the MTProofs of each <b>address</b>:<br><br>&nbsp;&nbsp; - If it is an inclusion proof: consider <b>encryptedBallot</b> an <b>overwrite</b>.</div><div align="left">&nbsp;&nbsp; - If it is a non-inclusion proof: consider&nbsp;<b>encryptedBallot</b>&nbsp;a <b>newVote</b>.</div>" vertex="1"> - <mxGeometry height="220" width="1040" x="280" y="80" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-54" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#f8cecc;strokeColor=#b85450;" value="$$\text{address}_i$$" vertex="1"> - <mxGeometry height="40" width="80" x="830" y="410" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-55" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{voteID}_i$$" vertex="1"> - <mxGeometry height="40" width="80" x="740" y="410" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-56" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{encryptedBallot}_i$$" vertex="1"> - <mxGeometry height="40" width="100" x="560" y="410" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-57" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-58" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.216;entryY=-0.005;entryDx=0;entryDy=0;entryPerimeter=0;" target="YdgG6UzsnOPgAgFR6wUF-70" value=""> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-58" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{encryptionKey}$$" vertex="1"> - <mxGeometry height="40" width="82" x="470" y="410" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-59" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="869.66" y="530" /> - <mxPoint x="869.66" y="530" /> - </Array> - <mxPoint x="869.9499999999999" y="450" as="sourcePoint" /> - <mxPoint x="870" y="610" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-60" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-69" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="549.71" y="550" /> - <mxPoint x="549.71" y="550" /> - </Array> - <mxPoint x="550" y="520" as="sourcePoint" /> - <mxPoint x="550" y="570" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-61" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1109.41" y="350" as="sourcePoint" /> - <mxPoint x="1110" y="610" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-62" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="1219.12" y="530" /> - <mxPoint x="1219.12" y="530" /> - </Array> - <mxPoint x="1219.4099999999999" y="450" as="sourcePoint" /> - <mxPoint x="1219" y="610" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-63" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div><div>$$\text{numOverwrites}^{\text{old}}$$</div></div>" vertex="1"> - <mxGeometry height="40" width="120" x="920" y="360" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-64" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div><div>$$\text{resultsAdd}^{\text{old}}$$</div></div>" vertex="1"> - <mxGeometry height="40" width="120" x="1050" y="360" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-65" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{stateRoot}^{\text{old}}$$" vertex="1"> - <mxGeometry height="40" width="80" x="1180" y="410" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-66" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div><div>$$\text{numVotes}^{\text{old}}$$</div></div>" vertex="1"> - <mxGeometry height="40" width="120" x="920" y="410" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-67" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div><div>$$\text{resultsSub}^{\text{old}}$$</div></div>" vertex="1"> - <mxGeometry height="40" width="120" x="1050" y="410" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-68" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points" /> - <mxPoint x="550" y="520" as="sourcePoint" /> - <mxPoint x="550" y="610" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-69" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="$$\text{reEncryptedBallot}'_i$$" vertex="1"> - <mxGeometry height="40" width="80" x="510" y="543" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-70" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;" value="$$\mathsf{ReEnc}_{\text{encryptionKey}}(C_1, C_2)_i$$" vertex="1"> - <mxGeometry height="40" width="190" x="470" y="490" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-71" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points" /> - <mxPoint x="539.41" y="720" as="sourcePoint" /> - <mxPoint x="539.41" y="810" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-72" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points" /> - <mxPoint x="679.6" y="720" as="sourcePoint" /> - <mxPoint x="679.6" y="810" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-73" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points" /> - <mxPoint x="820" y="720" as="sourcePoint" /> - <mxPoint x="820" y="810" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-74" connectable="0" parent="YdgG6UzsnOPgAgFR6wUF-1" style="group" value="" vertex="1"> - <mxGeometry height="160" width="880" x="360" y="610" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-75" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-74" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points" /> - <mxPoint x="600" y="110" as="sourcePoint" /> - <mxPoint x="600" y="200" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-76" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-74" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points" /> - <mxPoint x="720" y="110" as="sourcePoint" /> - <mxPoint x="720" y="200" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-77" parent="YdgG6UzsnOPgAgFR6wUF-74" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=left;" value="<div align="center"><b><u>APPLY STATE TRANSITIONS<br><br></u></b></div><div align="left"><b><br></b></div><div align="left"><b>&nbsp;&nbsp;&nbsp; </b>If the vote is a <b>newVote: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </b>If the vote is an <b>overwrite</b>:<b> <br></b></div><div align="left"><br></div><div align="left">&nbsp; &nbsp; <b>1.</b> Include <b>voteID</b>.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <b>1.</b> Include <b>voteID</b>.</div><div align="left">&nbsp; &nbsp; <b>2.</b> In leaf path <b>address</b>, write <b>reEncryptedBallot'</b>.&nbsp; &nbsp; &nbsp; <b>2.</b> In leaf with path <b>address</b>, update the content to <b>reEncryptedBallot'</b>.</div><div align="left">&nbsp; &nbsp;&nbsp;<b>3.</b> Update <b>numVotes</b>.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>3.</b> Update <b>numVotes</b> and <b>numOverwrites</b>.<div align="left">&nbsp; &nbsp; <b>4.</b> Update <b>resultsAdd</b>.&nbsp; &nbsp; <span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span>&nbsp;&nbsp;&nbsp; <b>4.</b> Update <b>resultsAdd</b> and <b>resultsSub</b>.<br>&nbsp;&nbsp;&nbsp; <b>5.</b> Update <b>stateRoot</b>.<span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span><span style="white-space: pre;">	</span>&nbsp;&nbsp;&nbsp; <b>5.</b> Update <b>stateRoot</b>.</div></div>" vertex="1"> - <mxGeometry height="160" width="880" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-78" parent="YdgG6UzsnOPgAgFR6wUF-74" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;strokeColor=#9673a6;fontFamily=Courier New;align=left;" value="" vertex="1"> - <mxGeometry height="100" width="350" x="10" y="50" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-79" parent="YdgG6UzsnOPgAgFR6wUF-74" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=none;strokeColor=#9673a6;fontFamily=Courier New;align=left;" value="" vertex="1"> - <mxGeometry height="100" width="495" x="375" y="50" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-80" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;align=center;spacingBottom=-4;" value="$$\text{Iterate over } i$$" vertex="1"> - <mxGeometry height="53" width="130" x="290" y="340" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-81" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-80" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" target="YdgG6UzsnOPgAgFR6wUF-80"> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-82" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1079.38" y="850" as="sourcePoint" /> - <mxPoint x="1079.38" y="960" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-83" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="<div><div>$$\text{numVotes}^{\text{new}}$$</div></div>" vertex="1"> - <mxGeometry height="40" width="120" x="620" y="960" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-84" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="<div><div>$$\text{numOverwrites}^{\text{new}}$$</div></div>" vertex="1"> - <mxGeometry height="40" width="120" x="480" y="960" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-85" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points" /> - <mxPoint x="890" y="-130" as="sourcePoint" /> - <mxPoint x="890" y="80" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-86" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div>$$\text{MTProofs}_i$$</div>" vertex="1"> - <mxGeometry height="130" width="80" x="850" y="-210" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-87" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e3c800;strokeColor=#B09500;fontFamily=Courier New;align=center;fontColor=#000000;" value="<div align="center"><font style="font-size: 12px;"><b><u>MISSING</u>: reencrypt the votes for <i>some</i> existing leafs.</b></font></div>" vertex="1"> - <mxGeometry height="60" width="410" x="-680" y="-250" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-88" parent="YdgG6UzsnOPgAgFR6wUF-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" value="AGGREGATION VERIFICATION" vertex="1"> - <mxGeometry height="40" width="440" x="-580" y="1117.18" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-89" parent="YdgG6UzsnOPgAgFR6wUF-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> - <mxGeometry height="435" width="20" x="-367.82000000000005" y="880" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-90" parent="YdgG6UzsnOPgAgFR6wUF-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=11;" value="TRANSITION VERIFICATION" vertex="1"> - <mxGeometry height="40" width="1120" x="280" y="1117.18" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-91" parent="YdgG6UzsnOPgAgFR6wUF-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> - <mxGeometry height="1127.5" width="20" x="828.75" y="533.75" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-92" parent="YdgG6UzsnOPgAgFR6wUF-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#ffe6cc;strokeColor=#d79b00;fontSize=11;" value="CENSUS MEMBERSHIP VERIFICATION" vertex="1"> - <mxGeometry height="40" width="350" x="-110" y="1117.19" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-93" parent="YdgG6UzsnOPgAgFR6wUF-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> - <mxGeometry height="360.24" width="20" x="58.88" y="917.38" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-94" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-95" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.163;entryY=0.002;entryDx=0;entryDy=0;entryPerimeter=0;" target="YdgG6UzsnOPgAgFR6wUF-98" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="-70" y="-10" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-95" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{censusProof}_i$$" vertex="1"> - <mxGeometry height="40" width="80" x="-110" y="-120" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-96" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-97" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.431;entryY=-0.004;entryDx=0;entryDy=0;entryPerimeter=0;" target="YdgG6UzsnOPgAgFR6wUF-98" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="30" y="-10" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-97" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{censusRoot}$$" vertex="1"> - <mxGeometry height="40" width="80" x="-10" y="-120" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-98" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;" value="<div><u><b><br></b></u></div><div><u><b>VERIFY CENSUS MEMBERSHIP PROOFS</b></u></div><div><b><br></b></div><div><br></div><div>- If <b>\(\text{censusOrigin}\)</b>&nbsp;= CSP, then verify CPS's signature:</div><div><br></div><div>$$\text{S.Verify}_\text{censusRoot}((\text{weight}_i, \text{address}_i), \text{censusProof}_i)$$</div><div><br></div><div><br></div><div>- Else, do:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>$$\text{MT.Verify}((\text{weight}_i, \text{address}_i), \text{censusProof}_i, \text{censusRoot})$$</div>" vertex="1"> - <mxGeometry height="220" width="370" x="-130" y="80" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-99" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-34" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.346;entryY=-0.013;entryDx=0;entryDy=0;entryPerimeter=0;" target="YdgG6UzsnOPgAgFR6wUF-53" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="640" y="-30" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="_rE4CFF2qiUWnB8IBAZF-2" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-100" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.452;entryY=-0.002;entryDx=0;entryDy=0;entryPerimeter=0;" target="YdgG6UzsnOPgAgFR6wUF-53" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="750" y="-30" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-100" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div>$$\text{processID}$$</div>" vertex="1"> - <mxGeometry height="40" width="80" x="710" y="-140" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-101" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points" /> - <mxPoint x="400.40999999999997" y="-150" as="sourcePoint" /> - <mxPoint x="400.40999999999997" y="80" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-102" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;fontStyle=0" value="$$\text{weight}_i$$" vertex="1"> - <mxGeometry height="40" width="80" x="360" y="-190" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-103" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$\text{address}_i$$" vertex="1"> - <mxGeometry height="40" width="80" x="360" y="-140" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-104" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;startArrow=oval;startFill=1;entryX=0.037;entryY=-0.001;entryDx=0;entryDy=0;entryPerimeter=0;" target="YdgG6UzsnOPgAgFR6wUF-53" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="318" /> - <mxPoint x="318" y="80" /> - </Array> - <mxPoint x="130" as="sourcePoint" /> - <mxPoint x="360.00000000000045" y="40" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-105" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div>$$\text{censusOrigin}$$</div>" vertex="1"> - <mxGeometry height="40" width="80" x="90" y="-120" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-106" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="129.74" y="-80" as="sourcePoint" /> - <mxPoint x="129.74" y="80" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-107" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-98" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" target="YdgG6UzsnOPgAgFR6wUF-108" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="30" y="310" as="sourcePoint" /> - <mxPoint x="20" y="320" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-108" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="true" vertex="1"> - <mxGeometry height="40" width="80" x="15" y="959" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-109" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="endArrow=classic;html=1;rounded=0;startArrow=oval;startFill=1;jumpStyle=arc;" value=""> - <mxGeometry height="50" relative="1" width="50" as="geometry"> - <Array as="points"> - <mxPoint x="200" y="-30" /> - <mxPoint x="200" y="40" /> - </Array> - <mxPoint x="400" y="-30" as="sourcePoint" /> - <mxPoint x="200" y="80" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-110" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-40" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;jumpStyle=arc;" target="YdgG6UzsnOPgAgFR6wUF-42" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="320" y="730" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-111" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-42" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;endArrow=none;startFill=0;endFill=1;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="400" y="570" /> - <mxPoint x="200" y="570" /> - <mxPoint x="200" y="510" /> - </Array> - <mxPoint x="-430" y="604.47" as="sourcePoint" /> - <mxPoint x="200" y="510" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-112" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;" value="<div><div><div><div><div><div><div><div><div><div>$$k = \text{Hash}(k)$$</div></div></div></div></div></div></div></div><div><div><div></div></div></div></div></div>" vertex="1"> - <mxGeometry height="40" width="100" x="230" y="550" as="geometry" /> - </mxCell> - <mxCell id="YdgG6UzsnOPgAgFR6wUF-113" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=light-dark(#ffffff, #ededed);strokeWidth=2;" value="public inputs" vertex="1"> - <mxGeometry height="40" width="100" x="-318" y="-120" as="geometry" /> - </mxCell> - <mxCell id="_rE4CFF2qiUWnB8IBAZF-3" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="endArrow=classic;html=1;rounded=0;startArrow=oval;startFill=1;jumpStyle=arc;" value=""> - <mxGeometry height="50" relative="1" width="50" as="geometry"> - <Array as="points"> - <mxPoint x="1340" /> - <mxPoint x="1520" /> - </Array> - <mxPoint x="750" as="sourcePoint" /> - <mxPoint x="1520" y="80" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="_rE4CFF2qiUWnB8IBAZF-4" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;startArrow=oval;startFill=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="_rE4CFF2qiUWnB8IBAZF-5" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="1600" y="-40" /> - </Array> - <mxPoint x="1300" y="-40" as="sourcePoint" /> - <mxPoint x="1640" y="50" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="_rE4CFF2qiUWnB8IBAZF-19" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="_rE4CFF2qiUWnB8IBAZF-5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="_rE4CFF2qiUWnB8IBAZF-12" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="1600" y="200" /> - <mxPoint x="1760" y="200" /> - </Array> - <mxPoint x="1600" y="200" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="_rE4CFF2qiUWnB8IBAZF-5" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" value="<div>$$z = \text{Hash}(\text{processID} ||&nbsp;\text{stateRoot}^{\text{old}}&nbsp;|| C)$$</div>" vertex="1"> - <mxGeometry height="40" width="240" x="1480" y="80" as="geometry" /> - </mxCell> - <mxCell id="_rE4CFF2qiUWnB8IBAZF-9" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="_rE4CFF2qiUWnB8IBAZF-7" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.831;entryY=-0.043;entryDx=0;entryDy=0;entryPerimeter=0;" target="_rE4CFF2qiUWnB8IBAZF-5" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1680" y="-10" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="_rE4CFF2qiUWnB8IBAZF-7" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="<div>$$C$$</div>" vertex="1"> - <mxGeometry height="40" width="80" x="1640" y="-120" as="geometry" /> - </mxCell> - <mxCell id="_rE4CFF2qiUWnB8IBAZF-11" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="YdgG6UzsnOPgAgFR6wUF-7" style="endArrow=classic;html=1;rounded=0;exitX=1.001;exitY=0.054;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" target="_rE4CFF2qiUWnB8IBAZF-13" value=""> - <mxGeometry height="50" relative="1" width="50" as="geometry"> - <mxPoint x="1320" y="360" as="sourcePoint" /> - <mxPoint x="1480" y="360" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="_rE4CFF2qiUWnB8IBAZF-26" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="_rE4CFF2qiUWnB8IBAZF-12" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.166;entryY=0.018;entryDx=0;entryDy=0;entryPerimeter=0;" target="_rE4CFF2qiUWnB8IBAZF-24" value=""> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="_rE4CFF2qiUWnB8IBAZF-12" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" value="$$y = p(z)$$" vertex="1"> - <mxGeometry height="40" width="60" x="1730" y="340" as="geometry" /> - </mxCell> - <mxCell id="_rE4CFF2qiUWnB8IBAZF-17" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="_rE4CFF2qiUWnB8IBAZF-13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" target="_rE4CFF2qiUWnB8IBAZF-12" value=""> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="_rE4CFF2qiUWnB8IBAZF-13" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" value="Construct polynomial \(p(x)\)" vertex="1"> - <mxGeometry height="40" width="190" x="1510" y="340" as="geometry" /> - </mxCell> - <mxCell id="_rE4CFF2qiUWnB8IBAZF-15" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;fillColor=#f8cecc;strokeColor=#b85450;fontStyle=0" value="Create <b>blob</b> \(B\) from all state tree leafs that changed" vertex="1"> - <mxGeometry height="60" width="120" x="1360" y="330" as="geometry" /> - </mxCell> - <mxCell id="_rE4CFF2qiUWnB8IBAZF-21" parent="YdgG6UzsnOPgAgFR6wUF-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" value="DATA BLOB CONSISTENCY CHECK" vertex="1"> - <mxGeometry height="40" width="560" x="1430" y="1117.18" as="geometry" /> - </mxCell> - <mxCell id="_rE4CFF2qiUWnB8IBAZF-22" parent="YdgG6UzsnOPgAgFR6wUF-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> - <mxGeometry height="560.62" width="20" x="1695.31" y="817.2" as="geometry" /> - </mxCell> - <mxCell id="_rE4CFF2qiUWnB8IBAZF-28" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="_rE4CFF2qiUWnB8IBAZF-23" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.83;entryY=0.003;entryDx=0;entryDy=0;entryPerimeter=0;" target="_rE4CFF2qiUWnB8IBAZF-24" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="1920" y="-20.000000000000227" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="_rE4CFF2qiUWnB8IBAZF-23" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div>$$\text{openingProof}$$</div>" vertex="1"> - <mxGeometry height="40" width="100" x="1870" y="-120" as="geometry" /> - </mxCell> - <mxCell id="_rE4CFF2qiUWnB8IBAZF-30" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" source="_rE4CFF2qiUWnB8IBAZF-24" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" target="_rE4CFF2qiUWnB8IBAZF-29" value=""> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="_rE4CFF2qiUWnB8IBAZF-24" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" value="<div>$$\text{C.Verify}(z, y, C, \text{openingProof})$$</div>" vertex="1"> - <mxGeometry height="40" width="240" x="1720" y="480" as="geometry" /> - </mxCell> - <mxCell id="_rE4CFF2qiUWnB8IBAZF-25" edge="1" parent="YdgG6UzsnOPgAgFR6wUF-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;startArrow=oval;startFill=1;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="1840" y="200" /> - </Array> - <mxPoint x="1760" y="200" as="sourcePoint" /> - <mxPoint x="1840" y="480" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="_rE4CFF2qiUWnB8IBAZF-29" parent="YdgG6UzsnOPgAgFR6wUF-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="true" vertex="1"> - <mxGeometry height="40" width="80" x="1800" y="960" as="geometry" /> - </mxCell> - </root> - </mxGraphModel> - </diagram> - <diagram name="5. results" id="aiuFaC-kqE7RjO91U1DS"> - <mxGraphModel dx="2990" dy="942" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="1" shadow="0"> - <root> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-0" /> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-1" parent="N2jN9Lvx0J_JxxWh13aD-0" /> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-2" parent="N2jN9Lvx0J_JxxWh13aD-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" value="<div><br></div>" vertex="1"> - <mxGeometry height="530" width="1170" x="-140" y="50" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-3" parent="N2jN9Lvx0J_JxxWh13aD-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" value="<div><br></div>" vertex="1"> - <mxGeometry height="260" width="1090" x="-100" y="140" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-4" edge="1" parent="N2jN9Lvx0J_JxxWh13aD-1" source="N2jN9Lvx0J_JxxWh13aD-5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.9;entryY=-0.003;entryDx=0;entryDy=0;entryPerimeter=0;" target="N2jN9Lvx0J_JxxWh13aD-15" value=""> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-5" parent="N2jN9Lvx0J_JxxWh13aD-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{stateRoot}$$" vertex="1"> - <mxGeometry height="40" width="80" x="880" y="80" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-7" parent="N2jN9Lvx0J_JxxWh13aD-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="true" vertex="1"> - <mxGeometry height="40" width="80" x="720" y="520" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-8" parent="N2jN9Lvx0J_JxxWh13aD-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$EPK$$" vertex="1"> - <mxGeometry height="40" width="50" x="-70" y="80" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-9" edge="1" parent="N2jN9Lvx0J_JxxWh13aD-1" source="N2jN9Lvx0J_JxxWh13aD-10" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;" target="N2jN9Lvx0J_JxxWh13aD-25" value=""> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-10" parent="N2jN9Lvx0J_JxxWh13aD-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div>$$\text{resultsAdd}$$</div>" vertex="1"> - <mxGeometry height="40" width="120" x="390" y="80" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-11" edge="1" parent="N2jN9Lvx0J_JxxWh13aD-1" source="N2jN9Lvx0J_JxxWh13aD-12" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" target="N2jN9Lvx0J_JxxWh13aD-25" value=""> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-12" parent="N2jN9Lvx0J_JxxWh13aD-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div>$$\text{resultsSub}$$</div>" vertex="1"> - <mxGeometry height="40" width="120" x="250" y="80" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-14" edge="1" parent="N2jN9Lvx0J_JxxWh13aD-1" source="N2jN9Lvx0J_JxxWh13aD-15" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="N2jN9Lvx0J_JxxWh13aD-7" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="760" y="400" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-15" parent="N2jN9Lvx0J_JxxWh13aD-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=center;" value="<div align="center">Verify the MTProofs that prove that the first leafs of the tree store the public parameters of the voting process:<br><br></div><div align="center">0x3 = <b>EPK</b>, 0x4 = <b>resultsAdd</b>, 0x5 = <b>resultsAdd</b>.</div>" vertex="1"> - <mxGeometry height="80" width="400" x="560" y="200" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-16" edge="1" parent="N2jN9Lvx0J_JxxWh13aD-1" source="N2jN9Lvx0J_JxxWh13aD-17" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.351;entryY=-0.006;entryDx=0;entryDy=0;entryPerimeter=0;" target="N2jN9Lvx0J_JxxWh13aD-15" value=""> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-17" parent="N2jN9Lvx0J_JxxWh13aD-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="<div>$$\text{MTProofs}_i \text{ for } \text{EPK, resultsSub, resultsAdd}$$</div>" vertex="1"> - <mxGeometry height="40" width="280" x="560" y="80" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-18" parent="N2jN9Lvx0J_JxxWh13aD-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" value="DECRYPTION KEY CORRECTNESS" vertex="1"> - <mxGeometry height="40" width="180" x="-80" y="627.1800000000001" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-19" parent="N2jN9Lvx0J_JxxWh13aD-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> - <mxGeometry height="180" width="20" x="-0.3199999999999932" y="517.5" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-20" parent="N2jN9Lvx0J_JxxWh13aD-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=11;" value="RESULTS INTEGRITY" vertex="1"> - <mxGeometry height="40" width="420" x="540" y="627.1800000000001" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-21" parent="N2jN9Lvx0J_JxxWh13aD-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> - <mxGeometry height="422.49" width="20" x="741.24" y="396.27" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-22" edge="1" parent="N2jN9Lvx0J_JxxWh13aD-1" source="N2jN9Lvx0J_JxxWh13aD-23" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.112;entryY=-0.025;entryDx=0;entryDy=0;entryPerimeter=0;" target="N2jN9Lvx0J_JxxWh13aD-26" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="145" y="200" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-23" parent="N2jN9Lvx0J_JxxWh13aD-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;" value="$$ESK$$" vertex="1"> - <mxGeometry height="40" width="50" x="120" y="80" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-24" edge="1" parent="N2jN9Lvx0J_JxxWh13aD-1" source="N2jN9Lvx0J_JxxWh13aD-25" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.907;entryY=0.002;entryDx=0;entryDy=0;entryPerimeter=0;" target="N2jN9Lvx0J_JxxWh13aD-26" value=""> - <mxGeometry relative="1" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-25" parent="N2jN9Lvx0J_JxxWh13aD-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" value="<div>$$\text{encryptedResults} = \text{resultsAdd} - \text{resultsSub}$$</div>" vertex="1"> - <mxGeometry height="40" width="280" x="240" y="200" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-26" parent="N2jN9Lvx0J_JxxWh13aD-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;" value="<div>$$\text{results} = \text{Dec}_{ESK}(\text{encryptedResults})$$</div>" vertex="1"> - <mxGeometry height="40" width="230" x="120" y="320" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-27" edge="1" parent="N2jN9Lvx0J_JxxWh13aD-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;startArrow=oval;startFill=1;" value=""> - <mxGeometry relative="1" as="geometry"> - <Array as="points"> - <mxPoint x="40" y="160" /> - </Array> - <mxPoint x="145" y="160" as="sourcePoint" /> - <mxPoint x="40" y="200" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-28" edge="1" parent="N2jN9Lvx0J_JxxWh13aD-1" source="N2jN9Lvx0J_JxxWh13aD-26" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="270" y="430" as="sourcePoint" /> - <mxPoint x="235" y="520" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-29" parent="N2jN9Lvx0J_JxxWh13aD-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;" value="$$\text{results}$$" vertex="1"> - <mxGeometry height="40" width="80" x="195" y="520" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-30" edge="1" parent="N2jN9Lvx0J_JxxWh13aD-1" source="N2jN9Lvx0J_JxxWh13aD-8" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="-45" y="330" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-31" edge="1" parent="N2jN9Lvx0J_JxxWh13aD-1" source="N2jN9Lvx0J_JxxWh13aD-32" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint x="40" y="330" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-32" parent="N2jN9Lvx0J_JxxWh13aD-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" value="<div>$$scalarMul()$$</div>" vertex="1"> - <mxGeometry height="40" width="80" y="200" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-33" parent="N2jN9Lvx0J_JxxWh13aD-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;" value="<div>$$isEqual()$$</div>" vertex="1"> - <mxGeometry height="40" width="130" x="-70" y="330" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-34" parent="N2jN9Lvx0J_JxxWh13aD-1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fontFamily=Courier New;strokeColor=none;" value="true" vertex="1"> - <mxGeometry height="40" width="80" x="-45" y="520" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-35" edge="1" parent="N2jN9Lvx0J_JxxWh13aD-1" source="N2jN9Lvx0J_JxxWh13aD-33" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" target="N2jN9Lvx0J_JxxWh13aD-34" value=""> - <mxGeometry relative="1" as="geometry"> - <mxPoint y="370" as="sourcePoint" /> - <mxPoint y="400" as="targetPoint" /> - </mxGeometry> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-36" parent="N2jN9Lvx0J_JxxWh13aD-1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Courier New;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=11;" value="RESULTS CALCULATION" vertex="1"> - <mxGeometry height="40" width="390" x="124" y="627.1800000000001" as="geometry" /> - </mxCell> - <mxCell id="N2jN9Lvx0J_JxxWh13aD-37" parent="N2jN9Lvx0J_JxxWh13aD-1" style="strokeWidth=1;html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;pointerEvents=1;rotation=-90;" value="" vertex="1"> - <mxGeometry height="398.75" width="20" x="309.05999999999995" y="408.13" as="geometry" /> - </mxCell> - </root> - </mxGraphModel> - </diagram> -</mxfile>
@@ -0,0 +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="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="1020" height="290" as="geometry"/></mxCell><mxCell id="c4" value="<b>voting period</b>: votes admitted and settled" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="60" y="96" width="360" height="40" as="geometry"/></mxCell><mxCell id="c5" value="<b>grace window</b>: no new votes; queued batches settle" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="420" y="96" width="420" height="40" as="geometry"/></mxCell><mxCell id="c6" value="<b>results</b> can be<br>requested and published" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="840" y="96" width="140" height="40" 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="20" y="150" as="sourcePoint"/><mxPoint x="1005" y="150" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c8" value="time" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="965" y="128" width="50" height="18" as="geometry"/></mxCell><mxCell id="c9" 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="60" y="142" as="sourcePoint"/><mxPoint x="60" y="158" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c10" value="startTime" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="-10" y="160" width="140" height="34" as="geometry"/></mxCell><mxCell id="c11" 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="420" y="142" as="sourcePoint"/><mxPoint x="420" y="158" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c12" value="end =<br>startTime + duration" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="350" y="160" width="140" height="34" as="geometry"/></mxCell><mxCell id="c13" 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="840" y="142" as="sourcePoint"/><mxPoint x="840" y="158" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c14" value="graceEnd" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="770" y="160" width="140" height="34" as="geometry"/></mxCell><mxCell id="c15" value="" style="ellipse;fillColor=#9673a6;strokeColor=#9673a6;html=1;" vertex="1" parent="1"><mxGeometry x="535" y="145" width="10" height="10" as="geometry"/></mxCell><mxCell id="c16" value="" style="ellipse;fillColor=#9673a6;strokeColor=#9673a6;html=1;" vertex="1" parent="1"><mxGeometry x="635" y="145" width="10" height="10" as="geometry"/></mxCell><mxCell id="c17" value="settled<br>transitions" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="490" y="160" width="100" height="34" as="geometry"/></mxCell><mxCell id="c18" value="lastVoteAt" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="595" y="160" width="90" height="34" as="geometry"/></mxCell><mxCell id="c19" 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="960" y="142" as="sourcePoint"/><mxPoint x="960" y="158" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c20" value="end +<br>graceMaxTotal" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="905" y="160" width="110" height="34" as="geometry"/></mxCell><mxCell id="c21" value="grace" style="html=1;rounded=0;endArrow=classic;startArrow=classic;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="640" y="86" as="sourcePoint"/><mxPoint x="840" y="86" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c22" value="flush: seal everything pending" style="html=1;rounded=0;endArrow=classic;startArrow=classic;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="380" y="210" as="sourcePoint"/><mxPoint x="840" y="210" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c23" value="graceMaxTotal (cap)" style="html=1;rounded=0;endArrow=classic;startArrow=classic;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="420" y="246" as="sourcePoint"/><mxPoint x="960" y="246" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c24" 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=10;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="20" y="8" width="960" height="30" as="geometry"/></mxCell><mxCell id="c25" value="OP Mainnet deployment: grace 300 s by default (organizer may choose 240-600 s), graceMaxTotal 1800 s, noticeMin 60 s" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="20" y="258" width="960" height="24" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>
@@ -0,0 +1,1 @@
+<mxfile host="drawio"><diagram name="key-modes" id="key-modes"><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="980" height="386" as="geometry"/></mxCell><mxCell id="c4" value="<b>organizer</b>" 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="400" y="14" width="180" height="40" as="geometry"/></mxCell><mxCell id="c5" value="<b>process registry</b>: newProcess(..., keyMode)" 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="300" y="84" width="380" height="44" as="geometry"/></mxCell><mxCell id="c6" 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="c4" target="c5"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c7" value="<b>DKG automatic</b>" 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="20" y="170" width="220" height="34" as="geometry"/></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=0.125;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c5" target="c7"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c9" value="DavinciDKGAdapter &rarr; DKG network" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="20" y="206" width="220" height="30" as="geometry"/></mxCell><mxCell id="c10" value="<div style='text-align:left;line-height:1.45'>&bull; key: pool key P<sub>j</sub> of a live epoch<br>&bull; holders: t-of-n committee drawn by lottery from permissionless operators<br>&bull; decrypt: committee, after the grace window<br>&bull; publish: any sequencer (requestResultsDecryption, finalizeResultsFromDKG)</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=left;verticalAlign=top;spacingLeft=6;spacingTop=6;spacingRight=6;" vertex="1" parent="1"><mxGeometry x="20" y="238" width="220" height="132" as="geometry"/></mxCell><mxCell id="c11" value="<b>DKG locked</b>" 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="260" y="170" width="220" height="34" 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.375;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c5" target="c11"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c13" value="DavinciDKGAdapter &rarr; DKG network" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="260" y="206" width="220" height="30" as="geometry"/></mxCell><mxCell id="c14" value="<div style='text-align:left;line-height:1.45'>&bull; key: P<sub>j</sub> + pk<sub>org</sub><br>&bull; holders: committee and organizer<br>&bull; decrypt: committee, only after the organizer reveals sk<sub>org</sub><br>&bull; publish: any sequencer, as above</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=left;verticalAlign=top;spacingLeft=6;spacingTop=6;spacingRight=6;" vertex="1" parent="1"><mxGeometry x="260" y="238" width="220" height="132" as="geometry"/></mxCell><mxCell id="c15" value="<b>Council</b>" 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="500" y="170" width="220" height="34" 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.625;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c5" target="c15"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c17" value="CouncilAdapter &rarr; CouncilManager" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="500" y="206" width="220" height="30" as="geometry"/></mxCell><mxCell id="c18" value="<div style='text-align:left;line-height:1.45'>&bull; key: ceremony key, shared by the processes bound to the ceremony<br>&bull; holders: t-of-n invited members<br>&bull; decrypt: members, once the ceremony's decryption gate opens<br>&bull; publish: any sequencer, as above</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=left;verticalAlign=top;spacingLeft=6;spacingTop=6;spacingRight=6;" vertex="1" parent="1"><mxGeometry x="500" y="238" width="220" height="132" as="geometry"/></mxCell><mxCell id="c19" value="<b>Sequencer</b>" 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="740" y="170" width="220" height="34" as="geometry"/></mxCell><mxCell id="c20" 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.875;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c5" target="c19"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c21" value="key requested from a sequencer before creation" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="740" y="206" width="220" height="30" as="geometry"/></mxCell><mxCell id="c22" value="<div style='text-align:left;line-height:1.45'>&bull; key: sk derived from the sequencer's master secret and processID<br>&bull; holder: that sequencer alone<br>&bull; decrypt: the sequencer, after the grace window<br>&bull; publish: the sequencer (results program, setProcessResults)</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=left;verticalAlign=top;spacingLeft=6;spacingTop=6;spacingRight=6;" vertex="1" parent="1"><mxGeometry x="740" y="238" width="220" height="132" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>
@@ -0,0 +1,1 @@
+<mxfile host="drawio"><diagram name="l1-settlement" id="l1-settlement"><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="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="0" y="0" width="980" height="614" as="geometry"/></mxCell><mxCell id="c30" 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="860" y="44" as="sourcePoint"/><mxPoint x="860" y="604" as="targetPoint"/></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=#888888;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="710" y="44" as="sourcePoint"/><mxPoint x="710" y="604" as="targetPoint"/></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=#888888;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="560" y="44" as="sourcePoint"/><mxPoint x="560" y="604" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c27" 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="410" y="44" as="sourcePoint"/><mxPoint x="410" y="604" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c26" 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="260" y="44" as="sourcePoint"/><mxPoint x="260" y="604" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c25" 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="110" y="44" as="sourcePoint"/><mxPoint x="110" y="604" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c15" 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="251" y="144" width="18" height="138" as="geometry"/></mxCell><mxCell id="c3" value="<b>sequencer</b>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="44" y="10" width="132" height="34" as="geometry"/></mxCell><mxCell id="c4" value="<b>prover</b>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="194" y="10" width="132" height="34" as="geometry"/></mxCell><mxCell id="c5" value="<b>Ethereum (L1)</b>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="344" y="10" width="132" height="34" as="geometry"/></mxCell><mxCell id="c6" value="<b>L1Block (OP)</b>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="494" y="10" width="132" height="34" as="geometry"/></mxCell><mxCell id="c7" value="<b>process registry (OP)</b>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="644" y="10" width="132" height="34" as="geometry"/></mxCell><mxCell id="c8" value="<b>L1BlobVerifier (OP)</b>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="794" y="10" width="132" height="34" as="geometry"/></mxCell><mxCell id="c9" value="seal batch, build blobs<br>and KZG commitments" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="20.0" y="68" width="180" height="32" as="geometry"/></mxCell><mxCell id="c10" value="batch inputs" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="110" y="118" as="sourcePoint"/><mxPoint x="260" y="118" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c11" value="blob tx 1: blobs 0-5 (type 3)" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="110" y="148" as="sourcePoint"/><mxPoint x="410" y="148" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c12" value="tx 1 mined in block B<sub>1</sub>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="335.0" y="170" width="150" height="24" as="geometry"/></mxCell><mxCell id="c13" value="blob tx 2: blobs 6-11 (after tx 1)" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="110" y="212" as="sourcePoint"/><mxPoint x="410" y="212" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c14" value="tx 2 mined in block B<sub>2</sub>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="335.0" y="234" width="150" height="24" as="geometry"/></mxCell><mxCell id="c16" value="batch proof (ok = 1, pins checked)" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="260" y="282" as="sourcePoint"/><mxPoint x="110" y="282" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c17" value="wait until the L1 origin reaches B<sub>2</sub> (about 1 min)" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="110" y="316" as="sourcePoint"/><mxPoint x="560" y="316" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c18" value="headers origin..B<sub>1</sub>, tx trie proofs" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="110" y="350" as="sourcePoint"/><mxPoint x="410" y="350" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c19" value="submitStateTransitionL1(publicValues, proof, commitments, ys, kzgProofs, L1 proof)" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="110" y="384" as="sourcePoint"/><mxPoint x="710" y="384" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c20" value="verify(L1 proof)" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="710" y="418" as="sourcePoint"/><mxPoint x="860" y="418" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c21" value="hash(), number()" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="860" y="448" as="sourcePoint"/><mxPoint x="560" y="448" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c22" value="header chain anchored at the<br>origin or a recorded block; MPT<br>proofs; age &le; 7200 blocks" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="760.0" y="470" width="200" height="46" as="geometry"/></mxCell><mxCell id="c23" value="versioned hashes, L1 blocks" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="860" y="534" as="sourcePoint"/><mxPoint x="710" y="534" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c24" value="ZiskVerifier; point evaluation per<br>blob; store new root; emit events" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="605.0" y="556" width="210" height="32" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>
@@ -1,52 +0,0 @@
---- -config: - theme: neutral ---- -flowchart TB - subgraph s1[" "] - NInt[" "] - n1[" "] - EB["encrypted ballots [...]"] - V["bool"] - end - subgraph s2[" "] - SI1[" "] - SIA[" "] - SIB[" "] - P0["processID"] - P1["censusOrigin"] - P2["ballotMode"] - P3["encryptionKey"] - P4["resultsAdd"] - P5["resultsSub"] - end - Root["stateRoot"] --> NInt & n1 & SI1 & SIA & SIB - SI1 -- 0x0 --> P0 - SI1 -- 0x1 --> P1 - SIA -- 0x2 --> P2 - SIA -- 0x3 --> P3 - SIB -- 0x4 --> P4 - SIB -- 0x5 --> P5 - NInt -- encPath --> EB - n1 -- voteID --> V - n2[" "] - n1@{ shape: rect} - n2@{ shape: text} - NInt:::internal - n1:::internal - EB:::leaf - V:::leaf - V:::empty - SI1:::internal - SIA:::internal - SIB:::internal - P0:::leaf - P1:::leaf - P2:::leaf - P3:::leaf - P4:::leaf - P5:::leaf - Root:::internal - classDef internal fill:#f8f,stroke:#333,stroke-width:2px - classDef leaf fill:#bbf,stroke:#333,stroke-width:1px - classDef empty fill:#eee, stroke:#999,# stroke-dasharray:5 5
@@ -0,0 +1,1 @@
+<mxfile host="drawio"><diagram name="process-status" id="process-status"><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="900" height="380" as="geometry"/></mxCell><mxCell id="c4" value="" style="ellipse;fillColor=#000000;strokeColor=#000000;html=1;" vertex="1" parent="1"><mxGeometry x="24" y="160" width="16" height="16" as="geometry"/></mxCell><mxCell id="c5" value="<b>READY</b>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=40;" vertex="1" parent="1"><mxGeometry x="150" y="60" width="130" height="44" as="geometry"/></mxCell><mxCell id="c6" value="<b>PAUSED</b>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=11;fillColor=#fff2cc;strokeColor=#d6b656;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=40;" vertex="1" parent="1"><mxGeometry x="150" y="250" width="130" height="44" as="geometry"/></mxCell><mxCell id="c7" value="<b>ENDED</b>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=40;" vertex="1" parent="1"><mxGeometry x="470" y="156" width="130" height="44" as="geometry"/></mxCell><mxCell id="c8" value="<b>CANCELED</b>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=40;" vertex="1" parent="1"><mxGeometry x="470" y="310" width="130" height="44" as="geometry"/></mxCell><mxCell id="c9" value="<b>RESULTS</b>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=40;" vertex="1" parent="1"><mxGeometry x="740" y="156" width="130" height="44" as="geometry"/></mxCell><mxCell id="c10" value="newProcess" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c4" target="c5"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="32" y="82"/></Array></mxGeometry></mxCell><mxCell id="c11" value="newProcess" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c4" target="c6"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="32" y="272"/></Array></mxGeometry></mxCell><mxCell id="c12" value="pause<br>(before end)" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.3;exitY=1;exitDx=0;exitDy=0;entryX=0.3;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c5" target="c6"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c13" value="resume" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.7;exitY=0;exitDx=0;exitDy=0;entryX=0.7;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c6" target="c5"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c14" value="end" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.75;exitDx=0;exitDy=0;entryX=0;entryY=0.25;entryDx=0;entryDy=0;" edge="1" parent="1" source="c5" target="c7"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="380" y="93"/><mxPoint x="380" y="167"/></Array></mxGeometry></mxCell><mxCell id="c15" value="end" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.25;exitDx=0;exitDy=0;entryX=0;entryY=0.75;entryDx=0;entryDy=0;" edge="1" parent="1" source="c6" target="c7"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="380" y="261"/><mxPoint x="380" y="189"/></Array></mxGeometry></mxCell><mxCell id="c16" value="cancel" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.75;exitDx=0;exitDy=0;entryX=0;entryY=0.75;entryDx=0;entryDy=0;" edge="1" parent="1" source="c6" target="c8"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="400" y="283"/><mxPoint x="400" y="343"/></Array></mxGeometry></mxCell><mxCell id="c17" value="cancel" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=1;exitDx=0;exitDy=0;entryX=0;entryY=0.3;entryDx=0;entryDy=0;jumpStyle=arc;jumpSize=8;" edge="1" parent="1" source="c5" target="c8"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="280" y="120"/><mxPoint x="430" y="120"/><mxPoint x="430" y="323"/></Array></mxGeometry></mxCell><mxCell id="c18" value="setProcessResults or<br>finalizeResultsFromDKG" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;" edge="1" parent="1" source="c7" target="c9"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c19" value="setProcessResults (past end, sequencer mode)" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c5" target="c9"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="215" y="18"/><mxPoint x="805" y="18"/></Array></mxGeometry></mxCell><mxCell id="c20" value="requestResultsDecryption<br>(past end, DKG and council)" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c5" target="c7"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="535" y="82"/></Array></mxGeometry></mxCell><mxCell id="c21" value="solid: organizer (setProcessStatus); dashed: registry" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="24" y="340" width="420" height="30" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>
@@ -0,0 +1,1 @@
+<mxfile host="drawio"><diagram name="protocol-flow" id="protocol-flow"><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="c71" value="alt: DKG and council modes" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=left;verticalAlign=middle;fontStyle=1;spacingLeft=4;" vertex="1" parent="1"><mxGeometry x="14" y="1086" width="170" height="18" 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="20" y="10" width="100" height="70" 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=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="20" y="54" width="100" height="24" as="geometry"/></mxCell><mxCell id="c6" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="148" y="10" width="100" height="70" 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="180" y="16" width="36" height="36" as="geometry"/></mxCell><mxCell id="c8" value="voter" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="148" y="54" width="100" 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="276" y="10" width="100" height="70" 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+PGcgZmlsbD0iI2ZmZmZmZiIgc3Ryb2tlPSIjNTU1NTU1IiBzdHJva2Utd2lkdGg9IjIiPjxjaXJjbGUgY3g9IjIwIiBjeT0iMTMiIHI9IjciLz48cGF0aCBkPSJNNiAzNyBDNiAyNiAxMiAyMiAyMCAyMiBDMjggMjIgMzQgMjYgMzQgMzcgWiIvPjwvZz48L3N2Zz4=;" vertex="1" parent="1"><mxGeometry x="308" y="16" width="36" height="36" as="geometry"/></mxCell><mxCell id="c11" value="sequencer" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="276" y="54" width="100" height="24" as="geometry"/></mxCell><mxCell id="c12" 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="404" y="10" width="100" height="70" 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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MCA0MCI+PGcgZmlsbD0iI2ZmZmZmZiIgc3Ryb2tlPSIjNTU1NTU1IiBzdHJva2Utd2lkdGg9IjIiPjxyZWN0IHg9IjkiIHk9IjkiIHdpZHRoPSIyMiIgaGVpZ2h0PSIyMiIgcng9IjIiLz48cmVjdCB4PSIxNSIgeT0iMTUiIHdpZHRoPSIxMCIgaGVpZ2h0PSIxMCIvPjxwYXRoIGQ9Ik0xNCA5VjRNMjAgOVY0TTI2IDlWNE0xNCAzMXY1TTIwIDMxdjVNMjYgMzF2NU05IDE0SDRNOSAyMEg0TTkgMjZINE0zMSAxNGg1TTMxIDIwaDVNMzEgMjZoNSIvPjwvZz48L3N2Zz4=;" vertex="1" parent="1"><mxGeometry x="436" y="16" width="36" height="36" as="geometry"/></mxCell><mxCell id="c14" value="prover" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="404" y="54" width="100" height="24" as="geometry"/></mxCell><mxCell id="c15" 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="532" y="10" width="100" height="70" 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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1NiA0MCI+PGcgZmlsbD0iI2ZmZmZmZiIgc3Ryb2tlPSIjNTU1NTU1IiBzdHJva2Utd2lkdGg9IjIiPjxjaXJjbGUgY3g9IjEzIiBjeT0iMTEiIHI9IjUuNSIvPjxwYXRoIGQ9Ik0zIDMwIEMzIDIxIDggMTggMTMgMTggQzE4IDE4IDIzIDIxIDIzIDMwIFoiLz48Y2lyY2xlIGN4PSI0MyIgY3k9IjExIiByPSI1LjUiLz48cGF0aCBkPSJNMzMgMzAgQzMzIDIxIDM4IDE4IDQzIDE4IEM0OCAxOCA1MyAyMSA1MyAzMCBaIi8+PGNpcmNsZSBjeD0iMjgiIGN5PSIxNiIgcj0iNi41Ii8+PHBhdGggZD0iTTE2IDM4IEMxNiAyOCAyMSAyNCAyOCAyNCBDMzUgMjQgNDAgMjggNDAgMzggWiIvPjwvZz48L3N2Zz4=;" vertex="1" parent="1"><mxGeometry x="555" y="16" width="54" height="38" as="geometry"/></mxCell><mxCell id="c17" value="key wardens" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="532" y="54" width="100" height="24" as="geometry"/></mxCell><mxCell id="c18" 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="660" y="10" width="100" height="70" as="geometry"/></mxCell><mxCell id="c19" 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="700" y="16" width="20" height="30" as="geometry"/></mxCell><mxCell id="c20" value="process registry" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="660" y="54" width="100" height="24" as="geometry"/></mxCell><mxCell id="c21" 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="788" y="10" width="100" height="70" as="geometry"/></mxCell><mxCell id="c22" 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="828" y="16" width="20" height="30" as="geometry"/></mxCell><mxCell id="c23" value="Ethereum (blobs)" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="788" y="54" width="100" height="24" as="geometry"/></mxCell><mxCell id="c24" 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="80" as="sourcePoint"/><mxPoint x="70" y="1300" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c25" 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="198" y="80" as="sourcePoint"/><mxPoint x="198" y="1300" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c26" 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="326" y="80" as="sourcePoint"/><mxPoint x="326" y="1300" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c27" 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="454" y="80" as="sourcePoint"/><mxPoint x="454" y="1300" as="targetPoint"/></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=#888888;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="582" y="80" as="sourcePoint"/><mxPoint x="582" y="1300" as="targetPoint"/></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=#888888;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="710" y="80" as="sourcePoint"/><mxPoint x="710" y="1300" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c30" 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="838" y="80" as="sourcePoint"/><mxPoint x="838" y="1300" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c31" value="prepare keys<br>(DKG epoch or council)" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="502.0" y="112" width="160" height="32" as="geometry"/></mxCell><mxCell id="c32" value="request key (sequencer mode)" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="70" y="160" as="sourcePoint"/><mxPoint x="326" y="160" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c33" value="encryptionKey" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="326" y="186" as="sourcePoint"/><mxPoint x="70" y="186" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c34" value="newProcess(parameters, census, keyMode, ...)" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="70" y="220" as="sourcePoint"/><mxPoint x="710" y="220" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c35" value="register: assign key (DKG and council modes)" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="710" y="254" as="sourcePoint"/><mxPoint x="582" y="254" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c36" value="encryptionKey" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="582" y="280" as="sourcePoint"/><mxPoint x="710" y="280" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c37" value="compute genesis root" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="635.0" y="306" width="150" height="24" as="geometry"/></mxCell><mxCell id="c38" value="ProcessCreated" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="710" y="348" as="sourcePoint"/><mxPoint x="326" y="348" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c39" value="fetch census, build<br>genesis tree" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="251.0" y="374" width="150" height="32" as="geometry"/></mxCell><mxCell id="c40" 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="92" width="880" height="320" as="geometry"/></mxCell><mxCell id="c41" value="election setup" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=left;verticalAlign=middle;fontStyle=1;spacingLeft=4;" vertex="1" parent="1"><mxGeometry x="14" y="92" width="150" height="18" as="geometry"/></mxCell><mxCell id="c42" value="read ballotMode, encryptionKey, census" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="198" y="456" as="sourcePoint"/><mxPoint x="710" y="456" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c43" value="get weight and census proof" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="198" y="490" as="sourcePoint"/><mxPoint x="326" y="490" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c44" value="weight, census proof" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="326" y="516" as="sourcePoint"/><mxPoint x="198" y="516" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c45" value="encrypt, prove ballot,<br>sign voteID" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="123.0" y="542" width="150" height="32" as="geometry"/></mxCell><mxCell id="c46" value="vote package" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="198" y="590" as="sourcePoint"/><mxPoint x="326" y="590" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c47" value="validate and queue; seal batch:<br>reencrypt, refresh, build blobs" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="221.0" y="616" width="210" height="32" as="geometry"/></mxCell><mxCell id="c48" value="batch inputs (private)" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="326" y="664" as="sourcePoint"/><mxPoint x="454" y="664" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c49" value="blob transactions (L1-blob mode)" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="326" y="690" as="sourcePoint"/><mxPoint x="838" y="690" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c50" value="batch proof" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="454" y="716" as="sourcePoint"/><mxPoint x="326" y="716" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c51" value="submitStateTransitionL1(proof, openings, L1 proof)" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="326" y="750" as="sourcePoint"/><mxPoint x="710" y="750" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c52" value="verify; store new root" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="635.0" y="770" width="150" height="24" as="geometry"/></mxCell><mxCell id="c53" value="ProcessStateTransitioned" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="710" y="812" as="sourcePoint"/><mxPoint x="326" y="812" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c54" value="status, inclusion proof of voteID" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="198" y="838" as="sourcePoint"/><mxPoint x="326" y="838" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c55" value="voting loop (every batch, until the end)" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=left;verticalAlign=middle;fontStyle=1;spacingLeft=4;" vertex="1" parent="1"><mxGeometry x="14" y="422" width="270" height="18" as="geometry"/></mxCell><mxCell id="c56" 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="422" width="880" height="436" as="geometry"/></mxCell><mxCell id="c57" value="end time; grace window<br>closes at graceEnd" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="625.0" y="862" width="170" height="32" as="geometry"/></mxCell><mxCell id="c58" value="decrypt accumulator,<br>Chaum-Pedersen proofs" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="241.0" y="944" width="170" height="32" as="geometry"/></mxCell><mxCell id="c59" value="results inputs" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="326" y="992" as="sourcePoint"/><mxPoint x="454" y="992" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c60" value="results proof" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="454" y="1018" as="sourcePoint"/><mxPoint x="326" y="1018" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c61" value="setProcessResults(publicValues, proof)" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="326" y="1052" as="sourcePoint"/><mxPoint x="710" y="1052" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c62" value="requestResultsDecryption(accumulator, siblings)" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="326" y="1104" as="sourcePoint"/><mxPoint x="710" y="1104" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c63" value="submit active ciphertexts" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="710" y="1130" as="sourcePoint"/><mxPoint x="582" y="1130" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c64" value="partial decryptions<br>with proofs; combine" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="502.0" y="1156" width="160" height="32" as="geometry"/></mxCell><mxCell id="c65" value="finalizeResultsFromDKG" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="326" y="1204" as="sourcePoint"/><mxPoint x="710" y="1204" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c66" value="read plaintexts" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="710" y="1230" as="sourcePoint"/><mxPoint x="582" y="1230" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c67" value="ProcessResultsSet" style="html=1;rounded=0;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="710" y="1264" as="sourcePoint"/><mxPoint x="70" y="1264" as="targetPoint"/><mxPoint x="0" y="-8" as="offset"/></mxGeometry></mxCell><mxCell id="c68" 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="918" width="880" height="370" as="geometry"/></mxCell><mxCell id="c69" value="alt: sequencer mode" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=left;verticalAlign=middle;fontStyle=1;spacingLeft=4;" vertex="1" parent="1"><mxGeometry x="14" y="918" width="170" height="18" as="geometry"/></mxCell><mxCell id="c70" 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="1086" as="sourcePoint"/><mxPoint x="894" y="1086" as="targetPoint"/></mxGeometry></mxCell></root></mxGraphModel></diagram></mxfile>
@@ -0,0 +1,1 @@
+<mxfile host="drawio"><diagram name="protocol-intuition-flow" id="protocol-intuition-flow"><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="940" height="420" as="geometry"/></mxCell><mxCell id="c4" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;verticalAlign=top;align=center;spacingTop=4;spacingLeft=6;fontStyle=1;dashed=1;" vertex="1" parent="1"><mxGeometry x="20" y="16" width="900" height="176" as="geometry"/></mxCell><mxCell id="c5" 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="437" y="24" width="16" height="24" as="geometry"/></mxCell><mxCell id="c6" value="<b>Settlement chain</b> (Ethereum or an OP Stack rollup)" style="text;html=1;whiteSpace=wrap;fontSize=12;align=left;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="458" y="24" width="330" height="24" as="geometry"/></mxCell><mxCell id="c7" value="<b>key managers</b><br><font style='font-size:10px'>DKG and Council<br>smart contracts</font>" 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="40" y="70" width="170" height="96" as="geometry"/></mxCell><mxCell id="c8" value="<b>process registry</b><br><font style='font-size:10px'>smart contract</font><br><br><font style='font-size:10px'>parameters, key, census root,<br>state root, results</font>" 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="300" y="70" width="340" height="96" as="geometry"/></mxCell><mxCell id="c9" value="<b>proof verifiers</b><br><font style='font-size:10px'>ZisK verifier, blob<br>and L1 verifiers</font>" 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="730" y="70" width="170" height="96" as="geometry"/></mxCell><mxCell id="c10" value="election key" 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;" edge="1" parent="1" source="c7" target="c8"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c11" value="verify" 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;" edge="1" parent="1" source="c8" target="c9"><mxGeometry relative="1" as="geometry"></mxGeometry></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="52" y="286" width="86" height="92" 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="68" y="294" width="54" height="40" as="geometry"/></mxCell><mxCell id="c14" value="key wardens" style="text;html=1;whiteSpace=wrap;fontSize=11;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="52" y="342" width="86" height="30" as="geometry"/></mxCell><mxCell id="c15" 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="232" y="286" width="86" height="92" 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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MCA0MCI+PGcgZmlsbD0iI2ZmZmZmZiIgc3Ryb2tlPSIjNTU1NTU1IiBzdHJva2Utd2lkdGg9IjIiPjxwYXRoIGQ9Ik00IDEzIEwyMCA0IEwzNiAxMyBaIi8+PHJlY3QgeD0iNSIgeT0iMTQiIHdpZHRoPSIzMCIgaGVpZ2h0PSIzIi8+PHJlY3QgeD0iOCIgeT0iMTgiIHdpZHRoPSI0IiBoZWlnaHQ9IjEzIi8+PHJlY3QgeD0iMTUiIHk9IjE4IiB3aWR0aD0iNCIgaGVpZ2h0PSIxMyIvPjxyZWN0IHg9IjIyIiB5PSIxOCIgd2lkdGg9IjQiIGhlaWdodD0iMTMiLz48cmVjdCB4PSIyOSIgeT0iMTgiIHdpZHRoPSI0IiBoZWlnaHQ9IjEzIi8+PHJlY3QgeD0iNCIgeT0iMzIiIHdpZHRoPSIzMiIgaGVpZ2h0PSI0Ii8+PC9nPjwvc3ZnPg==;" vertex="1" parent="1"><mxGeometry x="253" y="294" width="44" height="44" as="geometry"/></mxCell><mxCell id="c17" value="organizer" style="text;html=1;whiteSpace=wrap;fontSize=11;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="232" y="342" width="86" height="30" as="geometry"/></mxCell><mxCell id="c18" value="census<br>data" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=10;fillColor=#f5f5f5;strokeColor=#666666;dashed=1;fontSize=10;fontFamily=Courier New;" vertex="1" parent="1"><mxGeometry x="372" y="300" width="76" height="64" as="geometry"/></mxCell><mxCell id="c19" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="502" y="286" width="86" height="92" as="geometry"/></mxCell><mxCell id="c20" 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="523" y="294" width="44" height="44" as="geometry"/></mxCell><mxCell id="c21" value="voter" style="text;html=1;whiteSpace=wrap;fontSize=11;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="502" y="342" width="86" height="30" as="geometry"/></mxCell><mxCell id="c22" 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="682" y="286" width="86" height="92" as="geometry"/></mxCell><mxCell id="c23" 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="703" y="294" width="44" height="44" as="geometry"/></mxCell><mxCell id="c24" value="sequencer" style="text;html=1;whiteSpace=wrap;fontSize=11;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="682" y="342" width="86" height="30" as="geometry"/></mxCell><mxCell id="c25" value="Ethereum<br>blobs" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=10;fillColor=#dae8fc;strokeColor=#6c8ebf;dashed=1;fontSize=10;fontFamily=Courier New;" vertex="1" parent="1"><mxGeometry x="830" y="300" width="76" height="64" as="geometry"/></mxCell><mxCell id="c26" value="2,4" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontStyle=1;fontFamily=Courier New;" vertex="1" parent="1"><mxGeometry x="44" y="276" width="30" height="16" as="geometry"/></mxCell><mxCell id="c27" value="1" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontStyle=1;fontFamily=Courier New;" vertex="1" parent="1"><mxGeometry x="224" y="276" width="18" height="16" as="geometry"/></mxCell><mxCell id="c28" value="3a" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontStyle=1;fontFamily=Courier New;" vertex="1" parent="1"><mxGeometry x="494" y="276" width="18" height="16" as="geometry"/></mxCell><mxCell id="c29" value="3b,5" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontStyle=1;fontFamily=Courier New;" vertex="1" parent="1"><mxGeometry x="674" y="276" width="30" height="16" as="geometry"/></mxCell><mxCell id="c30" value="key shares,<br>partial<br>decryptions" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=classic;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c12" target="c7"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c31" value="parameters,<br>census root" 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=0;exitDx=0;exitDy=0;entryX=0.07;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c15" target="c8"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c32" value="publish" 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="c18"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c33" value="census<br>proof" 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="c18" target="c19"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c34" value="election data,<br>election key" 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.6;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c8" target="c19"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c35" value="vote<br>package" 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="c19" target="c22"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c36" value="batch proofs,<br>results" 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=0;exitDx=0;exitDy=0;entryX=0.93;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c22" target="c8"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c37" value="state<br>data" 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="c22" target="c25"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell></root></mxGraphModel></diagram></mxfile>
@@ -0,0 +1,1 @@
+<mxfile host="drawio"><diagram name="proving-time" id="proving-time"><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="1000" height="330" as="geometry"/></mxCell><mxCell id="c4" value="<b>proving time of a steady batch</b>" style="text;html=1;whiteSpace=wrap;fontSize=11;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="20" y="10" width="420" height="22" as="geometry"/></mxCell><mxCell id="c5" 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="60" y="270" as="sourcePoint"/><mxPoint x="440" y="270" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c6" 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="60" y="270" as="sourcePoint"/><mxPoint x="60" y="40" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c7" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#dddddd;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="56" y="270.0" as="sourcePoint"/><mxPoint x="440" y="270.0" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c8" value="0" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=right;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="20" y="262.0" width="34" height="16" as="geometry"/></mxCell><mxCell id="c9" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#dddddd;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="56" y="215.0" as="sourcePoint"/><mxPoint x="440" y="215.0" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c10" value="100" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=right;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="20" y="207.0" width="34" height="16" as="geometry"/></mxCell><mxCell id="c11" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#dddddd;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="56" y="160.0" as="sourcePoint"/><mxPoint x="440" y="160.0" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c12" value="200" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=right;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="20" y="152.0" width="34" height="16" as="geometry"/></mxCell><mxCell id="c13" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#dddddd;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="56" y="105.0" as="sourcePoint"/><mxPoint x="440" y="105.0" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c14" value="300" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=right;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="20" y="97.0" width="34" height="16" as="geometry"/></mxCell><mxCell id="c15" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#dddddd;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="56" y="50.0" as="sourcePoint"/><mxPoint x="440" y="50.0" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c16" value="400" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=right;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="20" y="42.0" width="34" height="16" as="geometry"/></mxCell><mxCell id="c17" value="seconds" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="16" y="20" width="120" height="16" as="geometry"/></mxCell><mxCell id="c18" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="76.0" y="257.625" width="28" height="12.375" as="geometry"/></mxCell><mxCell id="c19" value="22" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="66.0" y="241.625" width="48" height="14" as="geometry"/></mxCell><mxCell id="c20" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="106.0" y="253.335" width="28" height="16.665" as="geometry"/></mxCell><mxCell id="c21" value="30" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="96.0" y="237.335" width="48" height="14" as="geometry"/></mxCell><mxCell id="c22" value="64" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="70.0" y="274" width="74.0" height="16" as="geometry"/></mxCell><mxCell id="c23" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="150.0" y="253.445" width="28" height="16.555" as="geometry"/></mxCell><mxCell id="c24" value="30" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="140.0" y="237.445" width="48" height="14" as="geometry"/></mxCell><mxCell id="c25" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="180.0" y="244.865" width="28" height="25.135" as="geometry"/></mxCell><mxCell id="c26" value="46" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="170.0" y="228.865" width="48" height="14" as="geometry"/></mxCell><mxCell id="c27" value="128" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="144.0" y="274" width="74.0" height="16" as="geometry"/></mxCell><mxCell id="c28" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="224.0" y="244.59" width="28" height="25.41" as="geometry"/></mxCell><mxCell id="c29" value="46" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="214.0" y="228.59" width="48" height="14" as="geometry"/></mxCell><mxCell id="c30" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="254.0" y="227.815" width="28" height="42.185" as="geometry"/></mxCell><mxCell id="c31" value="77" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="244.0" y="211.815" width="48" height="14" as="geometry"/></mxCell><mxCell id="c32" value="256" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="218.0" y="274" width="74.0" height="16" as="geometry"/></mxCell><mxCell id="c33" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="298.0" y="223.635" width="28" height="46.365" as="geometry"/></mxCell><mxCell id="c34" value="84" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="288.0" y="207.635" width="48" height="14" as="geometry"/></mxCell><mxCell id="c35" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="328.0" y="179.635" width="28" height="90.365" as="geometry"/></mxCell><mxCell id="c36" value="164" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="318.0" y="163.635" width="48" height="14" as="geometry"/></mxCell><mxCell id="c37" value="512" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="292.0" y="274" width="74.0" height="16" as="geometry"/></mxCell><mxCell id="c38" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="372.0" y="175.84" width="28" height="94.16" as="geometry"/></mxCell><mxCell id="c39" value="171" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="362.0" y="159.84" width="48" height="14" as="geometry"/></mxCell><mxCell id="c40" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="402.0" y="69.85499999999999" width="28" height="200.145" as="geometry"/></mxCell><mxCell id="c41" value="364" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="392.0" y="53.85499999999999" width="48" height="14" as="geometry"/></mxCell><mxCell id="c42" value="1024" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="366.0" y="274" width="74.0" height="16" as="geometry"/></mxCell><mxCell id="c43" value="votes per batch" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="60" y="290" width="380" height="16" as="geometry"/></mxCell><mxCell id="c44" value="<b>proving throughput</b>" style="text;html=1;whiteSpace=wrap;fontSize=11;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="540" y="10" width="420" height="22" as="geometry"/></mxCell><mxCell id="c45" 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="580" y="270" as="sourcePoint"/><mxPoint x="960" y="270" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c46" 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="580" y="270" as="sourcePoint"/><mxPoint x="580" y="40" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c47" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#dddddd;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="576" y="270.0" as="sourcePoint"/><mxPoint x="960" y="270.0" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c48" value="0" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=right;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="540" y="262.0" width="34" height="16" as="geometry"/></mxCell><mxCell id="c49" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#dddddd;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="576" y="215.0" as="sourcePoint"/><mxPoint x="960" y="215.0" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c50" value="100" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=right;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="540" y="207.0" width="34" height="16" as="geometry"/></mxCell><mxCell id="c51" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#dddddd;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="576" y="160.0" as="sourcePoint"/><mxPoint x="960" y="160.0" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c52" value="200" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=right;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="540" y="152.0" width="34" height="16" as="geometry"/></mxCell><mxCell id="c53" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#dddddd;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="576" y="105.0" as="sourcePoint"/><mxPoint x="960" y="105.0" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c54" value="300" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=right;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="540" y="97.0" width="34" height="16" as="geometry"/></mxCell><mxCell id="c55" value="" style="html=1;rounded=0;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#dddddd;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="576" y="50.0" as="sourcePoint"/><mxPoint x="960" y="50.0" as="targetPoint"/></mxGeometry></mxCell><mxCell id="c56" value="400" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=right;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="540" y="42.0" width="34" height="16" as="geometry"/></mxCell><mxCell id="c57" value="votes per minute" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="536" y="20" width="120" height="16" as="geometry"/></mxCell><mxCell id="c58" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="596.0" y="175.95" width="28" height="94.05" as="geometry"/></mxCell><mxCell id="c59" value="171" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="586.0" y="159.95" width="48" height="14" as="geometry"/></mxCell><mxCell id="c60" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="626.0" y="200.15" width="28" height="69.85" as="geometry"/></mxCell><mxCell id="c61" value="127" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="616.0" y="184.15" width="48" height="14" as="geometry"/></mxCell><mxCell id="c62" value="64" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="590.0" y="274" width="74.0" height="16" as="geometry"/></mxCell><mxCell id="c63" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="670.0" y="129.75" width="28" height="140.25" as="geometry"/></mxCell><mxCell id="c64" value="255" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="660.0" y="113.75" width="48" height="14" as="geometry"/></mxCell><mxCell id="c65" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="700.0" y="177.6" width="28" height="92.4" as="geometry"/></mxCell><mxCell id="c66" value="168" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="690.0" y="161.6" width="48" height="14" as="geometry"/></mxCell><mxCell id="c67" value="128" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="664.0" y="274" width="74.0" height="16" as="geometry"/></mxCell><mxCell id="c68" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="744.0" y="87.4" width="28" height="182.6" as="geometry"/></mxCell><mxCell id="c69" value="332" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="734.0" y="71.4" width="48" height="14" as="geometry"/></mxCell><mxCell id="c70" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="774.0" y="160.0" width="28" height="110.0" as="geometry"/></mxCell><mxCell id="c71" value="200" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="764.0" y="144.0" width="48" height="14" as="geometry"/></mxCell><mxCell id="c72" value="256" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="738.0" y="274" width="74.0" height="16" as="geometry"/></mxCell><mxCell id="c73" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="818.0" y="69.80000000000001" width="28" height="200.2" as="geometry"/></mxCell><mxCell id="c74" value="364" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="808.0" y="53.80000000000001" width="48" height="14" as="geometry"/></mxCell><mxCell id="c75" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="848.0" y="167.15" width="28" height="102.85" as="geometry"/></mxCell><mxCell id="c76" value="187" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="838.0" y="151.15" width="48" height="14" as="geometry"/></mxCell><mxCell id="c77" value="512" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="812.0" y="274" width="74.0" height="16" as="geometry"/></mxCell><mxCell id="c78" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="892.0" y="72.55000000000001" width="28" height="197.45" as="geometry"/></mxCell><mxCell id="c79" value="359" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="882.0" y="56.55000000000001" width="48" height="14" as="geometry"/></mxCell><mxCell id="c80" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="922.0" y="177.05" width="28" height="92.95" as="geometry"/></mxCell><mxCell id="c81" value="169" style="text;html=1;whiteSpace=wrap;fontSize=8;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="912.0" y="161.05" width="48" height="14" as="geometry"/></mxCell><mxCell id="c82" value="1024" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="886.0" y="274" width="74.0" height="16" as="geometry"/></mxCell><mxCell id="c83" value="votes per batch" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="580" y="290" width="380" height="16" as="geometry"/></mxCell><mxCell id="c84" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="380" y="304" width="16" height="12" as="geometry"/></mxCell><mxCell id="c85" value="n<sub>f</sub> = 2" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="400" y="300" width="60" height="20" as="geometry"/></mxCell><mxCell id="c86" value="" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="480" y="304" width="16" height="12" as="geometry"/></mxCell><mxCell id="c87" value="n<sub>f</sub> = 16" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="500" y="300" width="60" height="20" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>
@@ -0,0 +1,1 @@
+<mxfile host="drawio"><diagram name="reencryption" id="reencryption"><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="1116" height="330" as="geometry"/></mxCell><mxCell id="c4" value="seed" 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="16" y="20" width="84" height="34" as="geometry"/></mxCell><mxCell id="c5" value="stateRoot<sup>old</sup>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="16" y="66" width="84" height="34" as="geometry"/></mxCell><mxCell id="c6" value="r<sub>0</sub> = H(&quot;davinci-reenc-v1&quot; || seed<br>|| stateRoot<sup>old</sup>) mod s" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="130" y="34" width="200" height="52" 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.3;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.7;entryDx=0;entryDy=0;" edge="1" parent="1" source="c5" target="c6"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c9" value="r<sub>t+1</sub> = H(r<sub>t</sub>) mod s" style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="130" y="92" width="200" height="24" as="geometry"/></mxCell><mxCell id="c10" value="f<sub>1</sub>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="360" y="150" width="38" height="30" as="geometry"/></mxCell><mxCell id="c11" value="r<sub>0</sub>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="364" y="70" width="30" height="26" 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=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c6" target="c11"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c14" value="f<sub>2</sub>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="400" y="150" width="38" height="30" as="geometry"/></mxCell><mxCell id="c15" value="r<sub>1</sub>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="404" y="70" width="30" height="26" 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=9;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="440" y="150" width="30" height="30" as="geometry"/></mxCell><mxCell id="c19" value="B<sub>1</sub>" style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="360" y="184" width="110" height="22" as="geometry"/></mxCell><mxCell id="c20" value="f<sub>1</sub>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="484" y="150" width="38" height="30" as="geometry"/></mxCell><mxCell id="c21" value="r<sub>2</sub>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="488" y="70" width="30" height="26" 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<sub>2</sub>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="524" y="150" width="38" height="30" as="geometry"/></mxCell><mxCell id="c25" value="r" style="rounded=1;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="528" y="70" width="30" height="26" 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=9;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="564" y="150" width="30" height="30" as="geometry"/></mxCell><mxCell id="c29" value="B<sub>2</sub>" style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="484" y="184" width="110" height="22" as="geometry"/></mxCell><mxCell id="c30" value="&hellip;" style="text;html=1;whiteSpace=wrap;fontSize=14;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="608" y="150" width="30" height="30" as="geometry"/></mxCell><mxCell id="c31" value="&hellip;" style="text;html=1;whiteSpace=wrap;fontSize=14;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="608" y="66" width="30" height="30" as="geometry"/></mxCell><mxCell id="c32" value="f<sub>1</sub>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="644" y="150" width="38" height="30" as="geometry"/></mxCell><mxCell id="c33" value="r" style="rounded=1;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="648" y="70" width="30" height="26" 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<sub>2</sub>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="684" y="150" width="38" height="30" as="geometry"/></mxCell><mxCell id="c37" value="r" style="rounded=1;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="688" y="70" width="30" height="26" 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=9;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="724" y="150" width="30" height="30" as="geometry"/></mxCell><mxCell id="c41" value="B<sub>n</sub>" style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="644" y="184" width="110" height="22" as="geometry"/></mxCell><mxCell id="c42" value="f<sub>1</sub>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="768" y="150" width="38" height="30" as="geometry"/></mxCell><mxCell id="c43" value="r" style="rounded=1;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="772" y="70" width="30" height="26" 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<sub>2</sub>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="808" y="150" width="38" height="30" as="geometry"/></mxCell><mxCell id="c47" value="r" style="rounded=1;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="812" y="70" width="30" height="26" 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=9;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="848" y="150" width="30" height="30" as="geometry"/></mxCell><mxCell id="c51" value="R<sub>1</sub>" style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="768" y="184" width="110" height="22" as="geometry"/></mxCell><mxCell id="c52" value="&hellip;" style="text;html=1;whiteSpace=wrap;fontSize=14;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="892" y="150" width="30" height="30" as="geometry"/></mxCell><mxCell id="c53" value="&hellip;" style="text;html=1;whiteSpace=wrap;fontSize=14;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="892" y="66" width="30" height="30" as="geometry"/></mxCell><mxCell id="c54" value="f<sub>1</sub>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="928" y="150" width="38" height="30" as="geometry"/></mxCell><mxCell id="c55" value="r" style="rounded=1;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="932" y="70" width="30" height="26" 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<sub>2</sub>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="968" y="150" width="38" height="30" as="geometry"/></mxCell><mxCell id="c59" value="r" style="rounded=1;whiteSpace=wrap;html=1;fontSize=9;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="972" y="70" width="30" height="26" 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=9;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="1008" y="150" width="30" height="30" as="geometry"/></mxCell><mxCell id="c63" value="R<sub>r</sub>" style="text;html=1;whiteSpace=wrap;fontSize=10;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="928" y="184" width="110" height="22" as="geometry"/></mxCell><mxCell id="c64" value="voters' ballots (n), fields in order" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="360" y="206" width="300" height="20" as="geometry"/></mxCell><mxCell id="c65" value="refreshed ballots (r), slots ascending" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="820" y="206" width="250" height="20" as="geometry"/></mxCell><mxCell id="c66" value="each active ciphertext consumes the next scalar r<sub>t</sub>; inactive fields (id) must be the identity and consume none. Example with n<sub>f</sub> = 2." style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="16" y="130" width="330" height="70" as="geometry"/></mxCell><mxCell id="c67" value="<b>reencryption</b> of a ciphertext with r<sub>t</sub>:<br>(C<sub>1</sub>, C<sub>2</sub>) &rarr; (C<sub>1</sub> + r<sub>t</sub>&middot;G, C<sub>2</sub> + r<sub>t</sub>&middot;encryptionKey)<br><font style='font-size:9px'>no scalar repeats within a batch, nor across batches (the old root differs)</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="16" y="236" width="500" height="76" as="geometry"/></mxCell><mxCell id="c68" value="<b>results accumulation</b><br>A<sup>new</sup> = A<sup>old</sup> + &Sigma; B'<sub>i</sub> &minus; &Sigma; B<sup>old</sup><sub>i</sub> + &Sigma; (R'<sub>j</sub> &minus; R<sub>j</sub>)<br><font style='font-size:9px'>new ballots, minus overwritten ballots, plus encryptions of zero from refreshes</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="540" y="236" width="560" height="76" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>
@@ -0,0 +1,1 @@
+<mxfile host="drawio"><diagram name="results-program" id="results-program"><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="1" 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="980" height="300" as="geometry"/></mxCell><mxCell id="c4" value="$$\text{stateRoot}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="20" y="20" width="110" height="36" as="geometry"/></mxCell><mxCell id="c5" value="$$\pi^{\text{0x03}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="150" y="20" width="80" height="36" as="geometry"/></mxCell><mxCell id="c6" value="$$\text{encryptionKey}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="250" y="20" width="140" height="36" as="geometry"/></mxCell><mxCell id="c7" value="$$\text{encryptedResults}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="410" y="20" width="150" height="36" as="geometry"/></mxCell><mxCell id="c8" value="$$\pi^{\text{0x04}}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="580" y="20" width="80" height="36" as="geometry"/></mxCell><mxCell id="c9" value="$$\{\pi^{\text{dec}}_j\}_{j=1}^{16}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="740" y="20" width="100" height="36" as="geometry"/></mxCell><mxCell id="c10" value="$$\text{results}$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="860" y="20" width="100" height="36" as="geometry"/></mxCell><mxCell id="c11" 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="10" y="104" width="960" height="104" as="geometry"/></mxCell><mxCell id="c12" value="$$\text{Verify}(\text{stateRoot}, \text{0x03}, H(\text{encryptionKey}), \pi^{\text{0x03}})$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="20" y="130" width="300" height="52" as="geometry"/></mxCell><mxCell id="c13" value="$$\text{Verify}(\text{stateRoot}, \text{0x04}, H(\text{encryptedResults}), \pi^{\text{0x04}})$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="340" y="130" width="300" height="52" as="geometry"/></mxCell><mxCell id="c14" value="$$\text{CP.Verify}_{\text{encryptionKey}}(\text{encryptedResults}_j, \text{results}_j, \pi^{\text{dec}}_j)$$" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Helvetica;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="660" y="130" width="300" height="52" as="geometry"/></mxCell><mxCell id="c15" 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.18333333333333332;entryY=0;entryDx=0;entryDy=0;jumpStyle=arc;jumpSize=7;" edge="1" parent="1" source="c4" target="c12"><mxGeometry relative="1" as="geometry"></mxGeometry></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.8181818181818182;exitY=1;exitDx=0;exitDy=0;entryX=0.06666666666666667;entryY=0;entryDx=0;entryDy=0;jumpStyle=arc;jumpSize=7;" edge="1" parent="1" source="c4" target="c13"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="110" y="94"/><mxPoint x="360" y="94"/></Array></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=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5666666666666667;entryY=0;entryDx=0;entryDy=0;jumpStyle=arc;jumpSize=7;" edge="1" parent="1" source="c5" target="c12"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c18" 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.25;exitY=1;exitDx=0;exitDy=0;entryX=0.8833333333333333;entryY=0;entryDx=0;entryDy=0;jumpStyle=arc;jumpSize=7;" edge="1" parent="1" source="c6" target="c12"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c19" 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.75;exitY=1;exitDx=0;exitDy=0;entryX=0.06666666666666667;entryY=0;entryDx=0;entryDy=0;jumpStyle=arc;jumpSize=7;" edge="1" parent="1" source="c6" target="c14"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="355" y="70"/><mxPoint x="680" y="70"/></Array></mxGeometry></mxCell><mxCell id="c20" 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.48333333333333334;entryY=0;entryDx=0;entryDy=0;jumpStyle=arc;jumpSize=7;" edge="1" parent="1" source="c7" target="c13"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c21" 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.8466666666666667;exitY=1;exitDx=0;exitDy=0;entryX=0.2;entryY=0;entryDx=0;entryDy=0;jumpStyle=arc;jumpSize=7;" edge="1" parent="1" source="c7" target="c14"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="537" y="82"/><mxPoint x="720" y="82"/></Array></mxGeometry></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.9333333333333333;entryY=0;entryDx=0;entryDy=0;jumpStyle=arc;jumpSize=7;" edge="1" parent="1" source="c8" target="c13"><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=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.43333333333333335;entryY=0;entryDx=0;entryDy=0;jumpStyle=arc;jumpSize=7;" edge="1" parent="1" source="c9" target="c14"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c24" 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.8333333333333334;entryY=0;entryDx=0;entryDy=0;jumpStyle=arc;jumpSize=7;" edge="1" parent="1" source="c10" target="c14"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c25" value="true" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="120" y="236" width="100" height="24" 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="c12" target="c25"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c27" value="true" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="440" y="236" width="100" height="24" as="geometry"/></mxCell><mxCell id="c28" 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="c13" target="c27"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c29" value="true" style="text;html=1;whiteSpace=wrap;fontSize=12;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="760" y="236" width="100" height="24" as="geometry"/></mxCell><mxCell id="c30" 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="c14" target="c29"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c31" value="the encryption key is also checked to be on the curve, in the prime-order subgroup, and not the identity; j ranges over the 16 fields" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="20" y="268" width="940" height="24" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>
@@ -0,0 +1,1 @@
+<mxfile host="drawio"><diagram name="smart-contracts" id="smart-contracts"><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=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;verticalAlign=top;align=center;spacingTop=4;spacingLeft=6;fontStyle=1;dashed=1;" vertex="1" parent="1"><mxGeometry x="0" y="0" width="1010" height="470" 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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNiA0MCI+PGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMzMzMzMzIiBzdHJva2Utd2lkdGg9IjEuOCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTEzIDIgTDI0IDIwIEwxMyAyNiBMMiAyMCBaIi8+PHBhdGggZD0iTTEzIDIgTDEzIDI2Ii8+PHBhdGggZD0iTTIgMjAgTDEzIDE1IEwyNCAyMCIvPjxwYXRoIGQ9Ik0yIDIzIEwxMyAzOCBMMjQgMjMgTDEzIDI5IFoiLz48L2c+PC9zdmc+;" vertex="1" parent="1"><mxGeometry x="14" y="8" width="14" height="22" as="geometry"/></mxCell><mxCell id="c5" value="<b>Settlement chain</b> (Ethereum, or an OP Stack rollup in L1-blob mode)" style="text;html=1;whiteSpace=wrap;fontSize=12;align=left;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="32" y="8" width="500" height="22" as="geometry"/></mxCell><mxCell id="c6" value="key wardens' contracts" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;verticalAlign=top;align=center;spacingTop=4;spacingLeft=6;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="16" y="44" width="236" height="300" as="geometry"/></mxCell><mxCell id="c7" value="<b>davinci-dkg</b><br>DKGManager<br>DKGAppManager<br>DKGRegistry<br><font style='font-size:9px'>epochs, pool keys,<br>partial decryptions</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="32" y="76" width="204" height="116" as="geometry"/></mxCell><mxCell id="c8" value="<b>Council</b><br>CouncilManager<br><font style='font-size:9px'>invite-only ceremonies,<br>decryption gate,<br>partial decryptions</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="32" y="222" width="204" height="100" as="geometry"/></mxCell><mxCell id="c9" value="DavinciDKGAdapter" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="292" y="104" width="140" height="60" as="geometry"/></mxCell><mxCell id="c10" value="CouncilAdapter" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="292" y="242" width="140" height="60" as="geometry"/></mxCell><mxCell id="c11" value="<b>ProcessRegistry</b><br><br><div style='text-align:left;font-size:9px;line-height:1.35'>processes[pid]:<br>&nbsp;status, times, grace,<br>&nbsp;ballotMode, census,<br>&nbsp;encryptionKey, keyMode,<br>&nbsp;latestStateRoot, counters,<br>&nbsp;results<br><br>newProcess<br>setProcess{Status, Census,<br>&nbsp;Duration, MaxVoters, Grace,<br>&nbsp;Metadata}<br>submitStateTransition[L1]<br>setProcessResults<br>requestResultsDecryption<br>finalizeResultsFromDKG<br>revealProcessKey</div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=top;spacingTop=6;" vertex="1" parent="1"><mxGeometry x="520" y="52" width="210" height="300" as="geometry"/></mxCell><mxCell id="c12" value="<b>ZiskVerifier</b><br><font style='font-size:9px'>PlonK over BN254</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="800" y="52" width="192" height="56" as="geometry"/></mxCell><mxCell id="c13" value="<b>point evaluation</b><br><font style='font-size:9px'>precompile 0x0A (EIP-4844)</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="800" y="140" width="192" height="56" as="geometry"/></mxCell><mxCell id="c14" value="<b>L1BlobVerifier</b><br><font style='font-size:9px'>headers + MPT proofs</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;dashed=1;" vertex="1" parent="1"><mxGeometry x="800" y="228" width="192" height="56" as="geometry"/></mxCell><mxCell id="c15" value="<b>L1Block</b> (OP predeploy)<br><font style='font-size:9px'>L1 origin number, hash</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;dashed=1;" vertex="1" parent="1"><mxGeometry x="800" y="316" width="192" height="56" as="geometry"/></mxCell><mxCell id="c16" value="<b>census contract</b><br><font style='font-size:9px'>ICensusValidator (origin 3)</font>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;dashed=1;" vertex="1" parent="1"><mxGeometry x="520" y="392" width="210" height="56" as="geometry"/></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=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c9" target="c7"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c18" 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;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c10" target="c8"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c19" value="register,<br>submit,<br>plaintexts" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0;exitY=0.2;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c11" target="c9"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c20" value="register,<br>submit,<br>plaintexts" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0;exitY=0.66;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c11" target="c10"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c21" value="proofs" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.0933;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c11" target="c12"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c22" value="openings" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.387;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c11" target="c13"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c23" value="verify" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0.68;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c11" target="c14"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c24" value="origin" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=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="c14" target="c15"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c25" value="root valid?" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=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="c16"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c26" value="dashed: used only in L1-blob mode (L1BlobVerifier, L1Block) or by on-chain censuses (census contract)" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="16" y="392" width="430" height="60" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>
@@ -0,0 +1,1 @@
+<mxfile host="drawio"><diagram name="smt-chain" id="smt-chain"><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="1064" height="250" as="geometry"/></mxCell><mxCell id="c4" value="stateRoot<sup>old</sup>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="16" y="96" width="92" height="44" as="geometry"/></mxCell><mxCell id="c5" value="<b>vote identifiers</b><br>n &times; INSERT<br>(voteID<sub>i</sub>, 0)" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="124" y="82" width="156" height="72" as="geometry"/></mxCell><mxCell id="c6" 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="c4" target="c5"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c7" value="insert-only: a used<br>identifier fails" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="124" y="160" width="156" height="34" as="geometry"/></mxCell><mxCell id="c8" value="" style="rounded=1;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="300" y="104" width="30" height="28" as="geometry"/></mxCell><mxCell id="c9" 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="c5" target="c8"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c10" value="<b>ballots</b><br>n &times; INSERT or UPDATE<br>(slot<sub>i</sub>, H(B'<sub>i</sub>))" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="350" y="82" width="156" height="72" as="geometry"/></mxCell><mxCell id="c11" 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="c8" target="c10"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c12" value="exactly w updates;<br>slots distinct" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="350" y="160" width="156" height="34" as="geometry"/></mxCell><mxCell id="c13" value="" style="rounded=1;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="526" y="104" width="30" height="28" as="geometry"/></mxCell><mxCell id="c14" 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="c10" target="c13"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c15" value="<b>silent refresh</b><br>r &times; UPDATE<br>(slot<sub>j</sub>, H(B'<sub>j</sub>))" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="576" y="82" width="156" height="72" 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=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c13" target="c15"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c17" value="occupied, not written,<br>strictly increasing" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="576" y="160" width="156" height="34" as="geometry"/></mxCell><mxCell id="c18" value="" style="rounded=1;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=50;" vertex="1" parent="1"><mxGeometry x="752" y="104" width="30" height="28" as="geometry"/></mxCell><mxCell id="c19" 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="c18"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c20" value="<b>results</b><br>1 &times; UPDATE<br>(0x04, H(A<sup>new</sup>))" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="802" y="82" width="156" height="72" as="geometry"/></mxCell><mxCell id="c21" 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="c18" target="c20"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c22" value="present iff some<br>ballot changed" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="802" y="160" width="156" height="34" as="geometry"/></mxCell><mxCell id="c23" value="stateRoot<sup>new</sup>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=10;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="978" y="96" width="92" height="44" as="geometry"/></mxCell><mxCell id="c24" 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="c20" target="c23"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c25" value="read under stateRoot<sup>old</sup>: processID (0x00), ballotMode (0x02),<br>encryptionKey (0x03), censusOrigin (0x06), ballotVKHash (0x07)" style="rounded=0;whiteSpace=wrap;html=1;fontSize=9;fillColor=#f5f5f5;strokeColor=#666666;fontFamily=Courier New;align=center;verticalAlign=middle;dashed=1;" vertex="1" parent="1"><mxGeometry x="16" y="14" width="380" height="40" as="geometry"/></mxCell><mxCell id="c26" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;exitX=0.12;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c25" target="c4"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c27" value="Each transition is proven against the root left by the previous one (intermediate roots shown as circles). H = SHA-256 of the 64 coordinates of a ballot; B' = reencrypted ballot; A = results accumulator." style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="16" y="206" width="1030" height="34" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>
@@ -0,0 +1,1 @@
+<mxfile host="drawio"><diagram name="state-tree" id="state-tree"><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="940" height="360" as="geometry"/></mxCell><mxCell id="c4" value="<b>state tree</b>: sparse Merkle tree, depth 64, SHA-256, 64-bit keys; its root is the on-chain <b>stateRoot</b>" style="text;html=1;whiteSpace=wrap;fontSize=11;fontFamily=Courier New;align=center;verticalAlign=middle;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="20" y="10" width="900" height="22" as="geometry"/></mxCell><mxCell id="c5" value="<b>configuration</b>" 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="20" y="56" width="190" height="40" as="geometry"/></mxCell><mxCell id="c6" value="<b>encrypted ballots</b> (one slot per voter)" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#ffe6cc;strokeColor=#d79b00;fontFamily=Courier New;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="210" y="56" width="360" height="40" as="geometry"/></mxCell><mxCell id="c7" value="<b>vote identifiers</b> (one per ballot cast)" 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="570" y="56" width="350" height="40" as="geometry"/></mxCell><mxCell id="c8" value="0x00" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="20" y="96" width="100" height="18" as="geometry"/></mxCell><mxCell id="c9" value="0x0F" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=right;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="108" y="96" width="100" height="18" as="geometry"/></mxCell><mxCell id="c10" value="0x10" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="212" y="96" width="100" height="18" as="geometry"/></mxCell><mxCell id="c11" value="2<sup>63</sup>&minus;1" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=right;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="470" y="96" width="100" height="18" as="geometry"/></mxCell><mxCell id="c12" value="2<sup>63</sup>" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="572" y="96" width="100" height="18" as="geometry"/></mxCell><mxCell id="c13" value="2<sup>64</sup>&minus;1" style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=right;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="820" y="96" width="100" height="18" as="geometry"/></mxCell><mxCell id="c14" value="<div style='text-align:left;font-size:10px;line-height:1.5'>0x00 &nbsp;processID<br>0x02 &nbsp;ballotMode (packed)<br>0x03 &nbsp;H(encryptionKey)<br>0x04 &nbsp;H(encryptedResults)<br>0x06 &nbsp;censusOrigin<br>0x07 &nbsp;ballotVKHash<br><font color='#666666'>0x01, 0x05, 0x08&ndash;0x0F<br>reserved</font></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=left;verticalAlign=middle;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="20" y="130" width="190" height="150" as="geometry"/></mxCell><mxCell id="c15" value="<div style='text-align:left;font-size:10px;line-height:1.5'><b>key</b> = slot<br>&bull; Merkle census:<br>&nbsp;&nbsp;0x10 + (H(&quot;davinci-slot-v1&quot; || address)<sub>[0..8]</sub><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mod (2<sup>63</sup> &minus; 16))<br>&bull; CSP census: 0x10 + idx<br><b>value</b> = H(reEncryptedBallot)<br><font color='#666666'>written by new votes and overwrites,<br>refreshed by silent re-encryptions</font></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=left;verticalAlign=middle;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="232" y="130" width="316" height="150" as="geometry"/></mxCell><mxCell id="c16" value="<div style='text-align:left;font-size:10px;line-height:1.5'><b>key</b> = voteID =<br>&nbsp;&nbsp;2<sup>63</sup> + (Poseidon(processID, address, k)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mod 2<sup>63</sup>)<br><b>value</b> = 0<br><font color='#666666'>insert-only: a vote identifier<br>can never be reused, which lets a<br>voter check that the ballot was<br>recorded without revealing its slot</font></div>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=10;fillColor=#ffffff;strokeColor=#000000;fontFamily=Courier New;align=left;verticalAlign=middle;spacingLeft=8;" vertex="1" parent="1"><mxGeometry x="592" y="130" width="306" height="150" as="geometry"/></mxCell><mxCell id="c17" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=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="c5" target="c14"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c18" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=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="c15"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c19" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=none;startArrow=none;endSize=6;startSize=6;fontSize=10;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=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="c7" target="c16"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c20" value="H = SHA-256 (leaf value read as a big-endian integer). Leaf hash: H(key<sub>LE8</sub> || value<sub>LE32</sub> || 0x01); internal node: H(left || right). Genesis: the registry computes the root of the six configuration leaves at creation, with the accumulator set to the encryption of zero (all identity points)." style="text;html=1;whiteSpace=wrap;fontSize=9;fontFamily=Courier New;align=left;verticalAlign=middle;fontColor=#333333;" vertex="1" parent="1"><mxGeometry x="20" y="296" width="900" height="54" as="geometry"/></mxCell></root></mxGraphModel></diagram></mxfile>
@@ -0,0 +1,1 @@
+<mxfile host="drawio"><diagram name="vote-lifecycle" id="vote-lifecycle"><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="1040" height="250" as="geometry"/></mxCell><mxCell id="c4" value="" style="ellipse;fillColor=#000000;strokeColor=#000000;html=1;" vertex="1" parent="1"><mxGeometry x="14" y="66" width="16" height="16" as="geometry"/></mxCell><mxCell id="c5" value="<b>pending</b>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=40;" vertex="1" parent="1"><mxGeometry x="80" y="54" width="130" height="40" as="geometry"/></mxCell><mxCell id="c6" value="<b>aggregated</b>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=40;" vertex="1" parent="1"><mxGeometry x="350" y="54" width="130" height="40" as="geometry"/></mxCell><mxCell id="c7" value="<b>processed</b>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=11;fillColor=#e1d5e7;strokeColor=#9673a6;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=40;" vertex="1" parent="1"><mxGeometry x="620" y="54" width="130" height="40" as="geometry"/></mxCell><mxCell id="c8" value="<b>settled</b>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=11;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=40;" vertex="1" parent="1"><mxGeometry x="890" y="54" width="130" height="40" as="geometry"/></mxCell><mxCell id="c9" value="<b>error</b>" style="rounded=1;whiteSpace=wrap;html=1;fontSize=11;fillColor=#f8cecc;strokeColor=#b85450;fontFamily=Courier New;align=center;verticalAlign=middle;arcSize=40;" vertex="1" parent="1"><mxGeometry x="470" y="182" width="130" height="40" as="geometry"/></mxCell><mxCell id="c10" value="admitted" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1" source="c4" target="c5"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c11" value="sealed in a batch" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1" source="c5" target="c6"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c12" value="proof checked" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1" source="c6" target="c7"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c13" value="transition landed" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;" edge="1" parent="1" source="c7" target="c8"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="c14" value="prover retry" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c6" target="c5"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="415" y="22"/><mxPoint x="145" y="22"/></Array></mxGeometry></mxCell><mxCell id="c15" value="lost race, rollback, paused" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.3;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="c7" target="c5"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="659" y="130"/><mxPoint x="145" y="130"/></Array></mxGeometry></mxCell><mxCell id="c16" value="settled by another sequencer (sync)" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;dashed=1;labelBackgroundColor=#ffffff;exitX=1;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c5" target="c8"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="210" y="8"/><mxPoint x="955" y="8"/></Array></mxGeometry></mxCell><mxCell id="c17" value="window closed, canceled,<br>census changed" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="c5" target="c9"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="145" y="202"/></Array></mxGeometry></mxCell><mxCell id="c18" value="program rejected" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=classic;startArrow=none;endSize=6;startSize=6;fontSize=9;fontFamily=Courier New;strokeColor=#000000;strokeWidth=1;labelBackgroundColor=#ffffff;exitX=0.7;exitY=1;exitDx=0;exitDy=0;entryX=0.3;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c6" target="c9"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="441" y="160"/><mxPoint x="509" y="160"/></Array></mxGeometry></mxCell></root></mxGraphModel></diagram></mxfile>
@@ -3,56 +3,121 @@
\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, end-to-end verifiability, and robustness against quantum threats. +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. -\paragraph{Integrity and soundness.} The integrity of the election rests on the knowledge soundness of the \ac{ZK-SNARK} proofs rather than on trust in any operator. No party (including a malicious sequencer) can advance the state from $S_i$ to $S_{i+1}$ without supplying a valid state transition proof, since the settlement contract rejects any update not accompanied by such a proof. 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. +\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{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. \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. + \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 sequencer 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}: to prevent observers from distinguishing overwrites from routine re-randomizations, sequencers periodically re-encrypt a random subset of stored ballots. This obfuscation ensures that overwrites remain indistinguishable from normal re-randomizations, - strengthening receipt-freeness. + \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. \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 SHA-256 outputs reduced modulo the BN254 scalar field and then used in the BabyJubjub subgroup, whose order is about an eighth of that field; their distribution modulo the subgroup order is therefore at statistical distance about $2^{-7.6}$ from uniform. Removing this gap requires a wider reduction and a new program key. -\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. Because the encryption key is generated through a \ac{DKG} 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 $t-1$ key wardens are compromised, the shared secret key cannot be reconstructed and no individual ballot ciphertext can be decrypted. 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. +\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 $t-1$ \keywardens are compromised, the shared secret key cannot be reconstructed and no individual ballot ciphertext can be decrypted. A coalition of $t$ \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{Quantum resistance.} Quantum computers threaten discrete-logarithm-based cryptography such as ECDSA and ElGamal. 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 ZK-STARKs for transparent, post-quantum ZK proofs. +\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 stored in Ethereum blobs. Since these blobs may eventually be pruned from the blockchain, ensuring long-term data availability is an open problem. Possible solutions include decentralized storage networks or dedicated data-availability layers. This remains an active area of research. +\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, 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 $n - t$ 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{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 verify their ballot from casting to result computation (individual verifiability). Additionally, any third party can audit the election data to confirm results (universal verifiability) and verify that each vote comes from a uniquely registered voter (eligibility verifiability). Transparent cryptographic mechanisms make this possible. +\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{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. + +\begin{table}[h] + \centering + \caption{Trust assumptions of the main properties.} + \label{tab:trust} + \small + \begin{tabular}{p{0.25\textwidth} p{0.68\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 $t$ \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. \\ + 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 $t$ \keywardens are available for decryption (or the key-holding sequencer, in sequencer mode). \\ + \bottomrule + \end{tabular} +\end{table} \subsection{Implementation} \label{sec:analysis:implementation} -\Davinci is implemented as a modular, fully open-source system: the smart contracts, the sequencer node, and the circuits are all publicly available at \url{https://github.com/vocdoni} (in particular \texttt{davinci-contracts}, \texttt{davinci-node}, and \texttt{davinci-circom}). 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. +\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. + +\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{Technological stack and circuit compilation.} -The \davinci circuits are implemented with Circom~\cite{belles2023circom} and gnark~\cite{gnark}, and all use -the Groth16 proof system~\cite{groth2016size} for its minimal proof size and constant-time verification. Each circuit is compiled over the elliptic curve best suited to its role (see Appendix~\ref{sec:cryptographic-primitives:elliptic-curves}). The ballot circuit is compiled with Circom over BN254 for compatibility with Ethereum's precompiles; its threshold-ElGamal operations run over BabyJubjub, whose base field matches the BN254 scalar field. Ballot authentication and census membership are verified in the verifier circuit over BLS12-377, where the voter's ECDSA -signature is checked through emulated SECP256K1 arithmetic, so the protocol can reuse standard Ethereum wallet keys. The resulting proofs are recursively combined in the aggregation circuit over BW6-761 before being verified back inside the BN254 state transition circuit. The final tally proof is likewise produced over BN254, since it is verified on-chain by the \resultsverifier\ contract. +\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. -\paragraph{Circuit sizes.} Concrete circuit sizes range from approximately $65$K constraints for the ballot circuit to around $16$M constraints for the state transition circuit, with the aggregation circuit dimensioned for batches of $60$ ballots per transition. +\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. -\paragraph{Trusted setup.} Because Groth16 relies on a circuit-specific common reference string (\ac{CRS}, see Appendix~\ref{sec:cryptographic-primitives:zkp}), the parameters for each circuit are generated through an \ac{MPC} ceremony: a universal powers-of-tau phase, followed by a per-circuit phase that binds the parameters to each constraint system. As long as at least one participant in each ceremony discards their secret contribution, the resulting \ac{CRS} is secure. +\begin{table}[h] + \centering + \caption{Release pins of the protocol version described in this paper (davinci-zkvm v0.3.0, ZisK 1.3.2).} + \label{tab:pins} + \small + \begin{tabular}{p{0.27\textwidth} p{0.66\textwidth}} + \toprule + \textbf{Value} & \textbf{Hash} \\ + \midrule + Batch program key & {\scriptsize\texttt{0xe39e460085ecddecf365649a61183a71c0fe778aa9c06fd2aa1a6c43cddb988b}} \\ + Results program key & {\scriptsize\texttt{0x394694558f39d0b2da0bbb09322333a0f567ee8d16bea2f354543a086587d167}} \\ + \rootc & {\scriptsize\texttt{0x6b2490fba336fb00f0c8719a961de309a8db6f43a9bfb7575ca5f014d609b265}} \\ + \ballotvkhash & {\scriptsize\texttt{0xbf1e6590bb1ba883d601c4d7d1c6fa2722a78590716874019db6d68fc776bb0e}} \\ + \ziskverifier code hash & {\scriptsize\texttt{0xadab570d3e3a4c172d0c75e5aef5d06098b94d70a9c8ff76af239a90fdcadcc1}} \\ + \bottomrule + \end{tabular} +\end{table} -\paragraph{Implementation status.} The current implementation includes all five circuits, the Ethereum smart contracts, and the complete state-transition pipeline. The \ac{DKG} component is implemented but not yet integrated into the live protocol. The codebase has not yet undergone an independent security audit. -% and the design is under peer review for publication. +\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. \subsection{Performance evaluation} \label{sec:analysis:performance-evaluation} -We evaluate \davinci along three axes: voter-side proving, sequencer proving, and on-chain verification, together with the data-availability savings from EIP-4844. All benchmarks use the protocol batch size of $60$ ballots per state transition. +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.} On consumer hardware (a modern laptop or smartphone), generating a ballot proof takes roughly $10$ seconds in a browser, well within the latency a voter tolerates at casting time and without any specialized hardware. +\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{Sequencer proving.} The recursive aggregation and state transition circuits were benchmarked on batches of $60$ ballots. A single sequencer running on a server with a consumer-grade GPU and at least $16$GiB of RAM produces the final settlement proof in under $3$ minutes; the same proof can be generated on a standard CPU with at least $32$GiB of RAM in roughly $2.5\times$ the time, keeping the sequencer entry barrier low. Proving parallelizes in two ways: about $85\%$ of the per-batch work can be split across worker processes within a single sequencer, and multiple sequencers can advance independent batches concurrently. With $10$ workers behind one GPU sequencer, the settlement proof is generated in under $32$ seconds; two sequencers with $10$ workers each fsustain a throughput of $200$ settled votes per minute. +\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. The fixed cost per batch is about $15.5$~s, and each additional refresh costs about 13~ms at $n_f = 2$ and 40~ms at $n_f = 16$. 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{On-chain verification.} Thanks to Groth16's succinctness, verifying the final settlement proof on Ethereum costs an essentially constant ${\approx}\,480$K gas, independent of the number of ballots in the batch. +\begin{table}[h] + \centering + \caption{Proving time of the batch program on one RTX 5090 (seconds), and blobs needed by a steady batch.} + \label{tab:proving} + \small + \begin{tabular}{r rrr rrr} + \toprule + & \multicolumn{3}{c}{$n_f = 2$} & \multicolumn{3}{c}{$n_f = 16$} \\ + \cmidrule(lr){2-4} \cmidrule(lr){5-7} + Votes & First & Steady & Blobs & First & Steady & Blobs \\ + \midrule + 64 & 22.0 & 22.5 & 1 & 27.4 & 30.3 & 2 \\ + 128 & 28.5 & 30.1 & 1 & 40.7 & 45.7 & 3 \\ + 256 & 42.6 & 46.2 & 1 & 66.3 & 76.7 & 5 \\ + 512 & 76.6 & 84.3 & 2 & 139.4 & 164.3 & 9 \\ + 1024 & 154.5 & 171.2 & 3 & 311.0 & 363.9 & 17 \\ + \bottomrule + \end{tabular} +\end{table} -\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. In our -implementation, the data behind a batch of $60$ votes fits into a single $128$KiB blob, the payload unit defined by EIP-4844.\\ +\begin{figure}[h] + \centerline{\includegraphics[width=0.9\textwidth,draft=false]{\figs/proving-time.pdf}} + \setlength{\abovecaptionskip}{5pt} + \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} -Together, these results indicate that \davinci scales to large elections at predictable settlement costs and practical proving times. Deploying on an Ethereum L2 or an EVM-compatible sidechain would further reduce per-election cost and raise throughput, since the dominant bottleneck on sequencer parallelization is the block time at which successive state transitions can be settled. +\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{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, which supports blobs, 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.\\ + +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.
@@ -1,55 +1,45 @@
% !TeX root = ../build/main.tex % % ============================================================================ -% PAPER VERSION of Appendix A (Cryptographic primitives). +% Appendix A (Cryptographic primitives). % Standard schemes are cited rather than derived; only DAVINCI-specific detail % is spelled out. Every \hlset anchor that the body \hlget's is preserved, so -% no hyperlink dangles. Drop in via \include in place of the spec-version file. +% no hyperlink dangles. % ============================================================================ -%hash-based commitments: trees -%authentication: signatures -%confidentiality: encryption -%decentralized trust: DKG -%verifiability: ZKPs - -In this section, we present the cryptographic primitives used in the protocol described in Section~\ref{sec:vocdoni-protocol}. We first introduce elliptic curves as the underlying algebraic setting, and then describe the following building blocks, each tied to a specific role in the system: hash functions and Merkle trees for commitments to structured data; digital signatures for voter authentication; encryption schemes for ballot confidentiality; \ac{DKG} for decentralizing trust in the election keys; and zero-knowledge proofs (\acp{ZK-SNARK}) for verifiability of computations. Standard primitives are cited rather than re-derived; we spell out only the operations and instantiations specific to \davinci. +In this section, we present the cryptographic primitives used in the protocol described in Section~\ref{sec:vocdoni-protocol}. We first introduce elliptic curves as the underlying algebraic setting, and then describe the following building blocks, each tied to a specific role in the system: hash functions and Merkle trees for commitments to structured data; polynomial commitments for data availability; digital signatures for voter authentication; encryption schemes for ballot confidentiality; \ac{DKG} for decentralizing trust in the election keys; and zero-knowledge proofs (\acp{ZK-SNARK} and \acp{zkVM}) for verifiability of computations. Standard primitives are cited rather than re-derived; we spell out only the operations and instantiations specific to \davinci. \subsection{Elliptic curves} \label{sec:cryptographic-primitives:elliptic-curves} -\Davinci relies on multiple elliptic curves to ensure interoperability with Ethereum, compatibility with available cryptographic primitives, and efficient in-circuit operations. On the one hand, SECP256K1~\cite{brown2010sec} is used because Ethereum public keys are elements of this curve. As \Davinci assumes each voter holds a standard Ethereum address, cryptographic operations such as digital signatures and identity verification rely on SECP256K1 to match the Ethereum ecosystem. On the other hand, BN254~\cite{wood2014ethereum} is chosen because it is the curve supported by Ethereum's precompiled contracts for ZK proof verification, which makes it the optimal choice for verifying SNARK proofs on-chain with minimal gas cost. Then, BabyJubjub~\cite{belles2021twisted} is used as an inner curve for elliptic curve operations within arithmetic circuits. Finally, BLS12-377~\cite{bowe2020zexe} and BW6-761~\cite{elhousni2020optimized} are used to enable recursive proof composition. More specifically, BLS12-377 acts as the inner curve for constructing proofs, while BW6-761 serves as the outer curve that verifies those proofs within larger ZK-SNARK circuits. This pairing enables succinct verification and composability of ZK-SNARKs within other ZK-SNARKs, which we use for \davinci's aggregation and state transition logic. Below, we give the details of these curves. +\Davinci relies on multiple elliptic curves to ensure interoperability with Ethereum, compatibility with available cryptographic primitives, and efficient operations inside proofs. On the one hand, SECP256K1~\cite{brown2010sec} is used because Ethereum public keys are elements of this curve. As \Davinci assumes each voter holds a standard Ethereum address, cryptographic operations such as digital signatures and identity verification rely on SECP256K1 to match the Ethereum ecosystem. On the other hand, BN254~\cite{wood2014ethereum} is chosen because it is the curve supported by Ethereum's precompiled contracts for pairing-based proof verification, which makes it the optimal choice for verifying SNARK proofs on-chain with minimal gas cost; both the ballot proofs and the PlonK wrapper of the \ac{zkVM} proofs live on it. Then, BabyJubjub~\cite{belles2021twisted} is used as an inner curve for the encryption of ballots, since its base field is the scalar field of BN254 and its arithmetic is therefore native to the ballot circuit. Finally, BLS12-381 is the curve of the \ac{KZG} commitments that Ethereum uses for data blobs~\cite{eip4844}; \davinci only uses its scalar field, in which blob cells and evaluation points live. Below, we give the details of these curves. \paragraph{Parameters.} \begin{itemize} % \item[$\bullet$] $p = \tt{\hspace{0.04cm}0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f}$ (256-bit prime). - \item[$\bullet$] $q = \tt{\hspace{0.01cm}0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141}$ (256-bit prime). + \item[$\bullet$] $q = \tt{\hspace{0.01cm}0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141}$ (256-bit prime). % \item[$\bullet$] $r = \tt{0x30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47}$ (254-bit prime). \item[$\bullet$] $s = \tt{\hspace{0.03cm}0x30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001}$ (254-bit prime). \item[$\bullet$] $t = \tt{\hspace{0.07cm}0x60c89ce5c263405370a08b6d0302b0bab3eedb83920ee0a677297dc392126f1}$ (251-bit prime). % - \item[$\bullet$] $u = \tt{0x122e824fb83ce0ad187c94004faff3eb926186a81d14688528275ef8087be41707ba638e584e9190}$ - \item[] \hspace{0.53cm} $\tt{3cebaff25b423048689c8ed12f9fd9071dcd3dc73ebff2e98a116c25667a8f8160cf8aeeaf0a437e69}$ - \item[] \hspace{0.53cm} $\tt{13e6870000082f49d00000000008b}$ (761-bit prime). - \item[$\bullet$] $v = \tt{0x01ae3a4617c510eac63b05c06ca1493b1a22d9f300f5138f1ef3622fba094800170b5d4430000000}$ - \item[] \hspace{0.52cm} $\tt{8508c00000000001}$ (377-bit prime). - \item[$\bullet$] $w = \tt{0x12ab655e9a2ca55660b44d1e5c37b00159aa76fed00000010a11800000000001}$ (253-bit prime). + \item[$\bullet$] $u = \tt{0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f624}$ + \item[] \hspace{0.53cm} $\tt{1eabfffeb153ffffb9feffffffffaaab}$ (381-bit prime). + \item[$\bullet$] $v = \tt{0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001}$ (255-bit prime). % \end{itemize} \paragraph{Elliptic curve groups.} \begin{itemize} % - \item SECP256K1 curve: $\SEC{E}/\F_p$ defined by equation $\SEC{E}: y^2 = x^3 + 7$, with group $\SEC{\G}$ of prime order $q$. + \item SECP256K1 curve: $\SEC{E}/\F_p$ defined by equation $\SEC{E}: y^2 = x^3 + 7$, with group $\SEC{\G}$ of prime order $q$. % - \item BN254 curve: $\BN{E}/\F_r$ defined by equation \( \BN{E}: y^2 = x^3 + 3\), with subgroups $\BN{\G}_1, \BN{\G}_2$ of prime order $s$, and an efficiently computable pairing \(e:\BN{\G}_1\times\BN{\G}_2 \rightarrow \BN{\G}_T,\) where $\BN{\G}_T \subset \F_{s^{12}}$ and has order $s$. - \item BabyJubjub curve: $\BJ{E}/\F_s$ defined by equation $\BJ{E}: 168700 x^2 + y^2 = 1 + 168696 x^2y^2$, with subgroup $\BJ{\G}$ of prime order $t$. + \item BN254 curve: $\BN{E}/\F_r$ defined by equation \( \BN{E}: y^2 = x^3 + 3\), with subgroups $\BN{\G}_1, \BN{\G}_2$ of prime order $s$, and an efficiently computable pairing \(e:\BN{\G}_1\times\BN{\G}_2 \rightarrow \BN{\G}_T,\) where $\BN{\G}_T \subset \F_{r^{12}}$ and has order $s$. + \item BabyJubjub curve: $\BJ{E}/\F_s$ defined by the twisted Edwards equation $\BJ{E}: 168700 x^2 + y^2 = 1 + 168696 x^2y^2$, of order $8t$, with subgroup $\BJ{\G}$ of prime order $t$. Its identity is the point $(0, 1)$, and the inverse of $(x, y)$ is $(-x, y)$. % - \item BW6-761 curve: $\BW{E}/\F_u$ defined by equation $\BW{E}: y^2 = x^3 - 1$, with subgroups $\BW{\G}_1, \BW{\G}_2$ of prime order $v$, and an efficiently computable pairing \({e}:\BW{\G}_1\times\BW{\G}_2 \rightarrow \BW{\G}_T,\) where $\BW{\G}_T \subset \F_{v^{6}}$ and has order $v$ as well. - \item BLS12-377 curve: $\BLS{E}/\F_v$ defined by equation \(\BLS{E}: y^2 = x^3 + 1,\) with subgroups $\BLS{\G}_1, \BLS{\G}_2$ of prime order $w$, and an efficiently computable pairing \({e}:\BLS{\G}_1\times\BLS{\G}_2 \rightarrow \BLS{\G}_T,\) where $\BLS{\G}_T \subset \F_{w^{12}}$ and has order~$w$. + \item BLS12-381 curve: $\BLS{E}/\F_u$ defined by equation \(\BLS{E}: y^2 = x^3 + 4,\) with subgroups $\BLS{\G}_1, \BLS{\G}_2$ of prime order $v$, and an efficiently computable pairing \({e}:\BLS{\G}_1\times\BLS{\G}_2 \rightarrow \BLS{\G}_T,\) where $\BLS{\G}_T \subset \F_{u^{12}}$ and has order~$v$. In the body of the paper, we write $q_{\mathsf{BLS}} = v$. % \end{itemize}@@ -59,82 +49,73 @@ %
\item $\F_p$: base field of the SECP256K1 curve. \item $\F_q$: scalar field of $\SEC{\G}$. % - \item $\F_r$: base field of the BN254 curve. - \item $\F_s$: scalar field of $\BN{\G}_1, \BN{\G}_2, \BN{\G}_T$ and base field of the BabyJubjub curve. - \item $\F_t$: scalar field of $\BJ{\G}$. + \item $\F_r$: base field of the BN254 curve. + \item $\F_s$: scalar field of $\BN{\G}_1, \BN{\G}_2, \BN{\G}_T$ and base field of the BabyJubjub curve. Ballot coordinates, Poseidon inputs and outputs, and census leaves are elements of $\F_s$. + \item $\F_t$: scalar field of $\BJ{\G}$, to which election secret keys and encryption randomness belong. % - \item $\F_u$: base field of the BW6-761 curve. - \item $\F_v$: scalar field of $\BW{\G}_1, \BW{\G}_2, \BW{\G}_T$ and base field of the BLS12-377 curve. - \item $\F_w$: scalar field of $\BLS{\G}_1, \BLS{\G}_2, \BLS{\G}_T$. + \item $\F_u$: base field of the BLS12-381 curve. + \item $\F_v$: scalar field of $\BLS{\G}_1, \BLS{\G}_2, \BLS{\G}_T$, to which blob cells and evaluation points belong. % \end{itemize} \paragraph{Generators.}\mbox{}\\ -\noi We denote by $\hlget{\SEC{G}}$ the generator of $\SEC{\G}$ as defined in~\cite{brown2010sec}, $\hlget{\BN{G}}$ the generator of $\BN{\G}_1$ as defined in~\cite{wood2014ethereum}, $\hlget{\BJ{G}}$ the generator of $\BJ{\G}$ as defined in~\cite{erc2494}, $\hlget{\BW{G}}$ the generator of $\BW{\G}_1$ as defined in~\cite{eip3026}, and $\hlget{\BLS{G}}$ the generator of $\BLS{\G}_1$ as defined in~\cite{eip2539}. +\noi We denote by $\hlget{\SEC{G}}$ the generator of $\SEC{\G}$ as defined in~\cite{brown2010sec}, $\hlget{\BN{G}}$ the generator of $\BN{\G}_1$ as defined in~\cite{wood2014ethereum}, $\hlget{\BJ{G}}$ the generator of $\BJ{\G}$ as defined in~\cite{erc2494} (the point usually called \emph{Base8}), and $\hlget{\BLS{G}}$ the standard generator of $\BLS{\G}_1$~\cite{eip4844}. \begin{itemize} \item $ - \hlset{\SEC{G}} = + \hlset{\SEC{G}} = (\tt{0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798,0x483ada7726} \allowbreak \rule{1.37cm}{0pt} \tt{a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8}). $ - \item + \item $ \hlset{\BN{G}}\hspace{0.14cm} = \: (\tt{0x01}, \tt{0x02}). $ - + \item $ - \hlset{\BJ{G}}\hspace{0.18cm} = - \hspace{0.09cm} (\tt{0x0b9feffffffffaaabfffffffffffffffeffffffffffffffffffffffffffffff}, - \tt{0x17fffffffff} \\ - \rule{1.37cm}{0pt} - \tt{ffffffffffffffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141}). - $ - \item - $ - \hlset{\BW{G}}\hspace{0.085cm} = - \hspace{0.09cm} (\tt{0x1075b020ea190c8b277ce98a477beaee6a0cfb7551b27f0ee05c54b85f56fc779017ffac15520}\\ + \hlset{\BJ{G}}\hspace{0.18cm} = + \hspace{0.09cm} (\tt{0x0bb77a6ad63e739b4eacb2e09d6277c12ab8d8010534e0b62893f3f6bb957051}, + \tt{0x25797} \\ \rule{1.37cm}{0pt} - \tt{ac11dbfcd294c2e746a17a54ce47729b905bd71fa0c9ea097103758f9a280ca27f6750dd0356133}\\ - \rule{1.37cm}{0pt} - \tt{e82055928aca6af603f4088f3af66e5b43d, 0x58b84e0a6fc574e6fd637b45cc2a420f952589884} \\ - \rule{1.37cm}{0pt} - \tt{c9ec61a7348d2a2e573a3265909f1af7e0dbac5b8fa1771b5b806cc685d31717a4c55be3fb90b6f} \\ - \rule{1.37cm}{0pt} - \tt{c2cdd49f9df141b3053253b2b08119cad0fb93ad1cb2be0b20d2a1bafc8f2db4e95363)}. + \tt{203f7a0b24925572e1cd16bf9edfce0051fb9e133774b3c257a872d7d8b}). $ - \item + \item $ - \hlset{\BLS{G}}\hspace{0.07cm} = - \hspace{0.06cm}(\tt{0x008848defe740a67c8fc6225bf87ff5485951e2caa9d41bb188282c8bd37cb5cd5481512ffcd3} \\ + \hlset{\BLS{G}}\hspace{0.07cm} = + \hspace{0.06cm}(\tt{0x17f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac} \\ \rule{1.37cm}{0pt} - \tt{94eeab9b16eb21be9ef,0x01914a69c5102eff1f674f5d30afeec4bd7fb348ca3e52d96d182ad44} \\ + \tt{586c55e83ff97a1aeffb3af00adb22c6bb, 0x08b3f481e3aaa0f1a09e30ed741d8ae4fcf5} \\ \rule{1.37cm}{0pt} - \tt{fb82305c2fe3d3634a9591afd82de55559c8ea6}). + \tt{e095d5d00af600db18cb2c04b3edd03cc744a2888ae40caa232946c5e7e1}). $ \end{itemize} \subsection{Hash functions} \label{sec:cryptographic-primitives:hash} -\Davinci uses two hash functions: Keccak256~\cite{bertoni2011keccak} for Ethereum address derivation and message hashing under ECDSA, and Poseidon~\cite{grassi2021poseidon} for every in-circuit computation. +\Davinci uses three hash functions: Keccak256~\cite{bertoni2011keccak} for Ethereum compatibility, SHA-256~\cite{fips180-4} for the state tree and every hash computed by the \ac{zkVM} programs and verified by smart contracts, and Poseidon~\cite{grassi2021poseidon} for every hash computed by the ballot circuit. -\paragraph{Keccak256.} Keccak256 is the standard hash function used by Ethereum and is employed in \davinci to compress messages for signing and to derive Ethereum addresses from public keys over $\SEC{\G}$. It maps arbitrary-length bitstrings to 256-bit digests, $\hlset{\Keccak} : \{0,1\}^* \rightarrow \{0,1\}^{256}$. As it is not SNARK-friendly, it is used only in the authentication circuit, where verifying Ethereum-compatible signatures requires reproducing the message hash computed by Ethereum clients (see Section~\ref{sec:vocdoni-protocol:circuits:verifier}). +\paragraph{Keccak256.} Keccak256 is the standard hash function used by Ethereum and is employed in \davinci to compress messages for signing, to derive Ethereum addresses from public keys over $\SEC{\G}$, and to hash Ethereum block headers when the registry verifies blob transactions in L1-blob mode. It maps arbitrary-length bitstrings to 256-bit digests, $\hlset{\Keccak} : \{0,1\}^* \rightarrow \{0,1\}^{256}$. Inside the \ac{zkVM}, it is used only by the authentication and \ac{CSP} checks of the batch program (see Section~\ref{sec:vocdoni-protocol:circuits:batch}), where verifying Ethereum-compatible signatures requires reproducing the message hash computed by Ethereum clients. + +\paragraph{SHA-256.} SHA-256 maps arbitrary-length bitstrings to 256-bit digests, $\hlset{\Sha} : \{0,1\}^* \rightarrow \{0,1\}^{256}$. It is a precompile of the \ac{EVM} and an accelerated operation of the ZisK \ac{zkVM}, which makes it the natural choice for every value that is computed in a \ac{zkVM} program and checked by a contract: the nodes and leaves of the state tree, the digests of ballots, accumulators, and verification keys stored in it, the derivation of ballot slots, the chain of re-encryption scalars, the evaluation points of the blobs and the digest of their openings, the transcript of the batched ballot proof verification, and the digest of the public values of a \ac{zkVM} proof. When a digest must be interpreted as a field element, it is read as a big-endian integer and reduced modulo the field order, unless stated otherwise. -\paragraph{Poseidon.} Poseidon is a SNARK-optimized hash function designed for efficient evaluation inside arithmetic circuits. It is used in \davinci for computing commitments, vote identifiers, and Merkle tree roots, and for refreshing the re-encryption randomness during state transitions. We write $\hlset{\Poseidon} : \mathfrak{F}_s \rightarrow \F_s$, where $\mathfrak{F}_s$ denotes tuples of $\F_s$-elements of any length and $\F_s$ is the field described in Section~\ref{sec:cryptographic-primitives:elliptic-curves}. +\paragraph{Poseidon.} Poseidon is a SNARK-optimized hash function designed for efficient evaluation inside arithmetic circuits. It is used in \davinci for computing vote identifiers, the commitment to the ballot circuit's inputs, the per-field encryption randomness of a ballot, the nodes of the census tree, and the challenges of decryption proofs. We write $\hlset{\Poseidon} : \mathfrak{F}_s \rightarrow \F_s$, where $\mathfrak{F}_s$ denotes tuples of $\F_s$-elements of any length and $\F_s$ is the field described in Section~\ref{sec:cryptographic-primitives:elliptic-curves}. A single Poseidon permutation accepts at most 16 inputs, so longer tuples are hashed in two levels: the tuple is split into consecutive chunks of at most 16 elements, each chunk is hashed, and the chunk digests are hashed together. For a ballot of 16 fields, the commitment \ballotinputshash covers $71$ elements (the process identifier, the packed ballot mode, the two coordinates of the key, the address, the vote identifier, the $64$ coordinates of the ciphertexts, and the weight), so it is computed as +\begin{align*} +\ballotinputshash = \hlget{\Poseidon}\bigl(&\Poseidon(x_{1..16}), \Poseidon(x_{17..32}), \Poseidon(x_{33..48}),\\ &\Poseidon(x_{49..64}), \Poseidon(x_{65..71})\bigr). +\end{align*} \subsection{Merkle trees} \label{sec:cryptographic-primitives:merkle-trees} -\davinci uses two Merkle-tree variants as hash-based accumulators: a \emph{sparse Merkle tree} (SMT) for the election state, and an \emph{incremental Merkle tree} (IMT) for the census. Both are instantiated with the Poseidon hash function over the BN254 scalar field, and only the root of each tree is published on-chain, so that large datasets can be committed and verified with minimal on-chain storage. +\davinci uses two Merkle-tree variants as hash-based accumulators: a \emph{sparse Merkle tree} (SMT) for the election state, and a \emph{lean incremental Merkle tree} (IMT) for the census. Only the root of each tree is published on-chain, so that large datasets can be committed and verified with minimal on-chain storage. -\paragraph{Sparse Merkle tree (state tree).} Following~\cite{baylina2019sparse}, the state tree is a fixed-depth binary tree in which each leaf encodes a key--value pair and empty leaves are represented explicitly, supporting both inclusion and non-inclusion proofs. The key determines a unique root-to-leaf path independent of insertion order, which makes membership and emptiness checks cheap to verify inside a \ac{ZK-SNARK}. \davinci uses an SMT of depth $64$ for the state tree, whose key space is partitioned into disjoint regions for configuration parameters, encrypted ballots, and vote identifiers (see Section~\ref{sec:vocdoni-protocol:state-tree}). +\paragraph{Sparse Merkle tree (state tree).} Following~\cite{baylina2019sparse}, the state tree is a binary tree of maximum depth $64$ in which each leaf encodes a key--value pair and empty subtrees are represented by a constant, supporting both inclusion and non-inclusion proofs. The key determines a unique root-to-leaf path independent of insertion order, which makes membership and emptiness checks cheap to verify inside a proof. As in the circomlib construction, a leaf is placed at the shallowest level at which its path is unique, and a transition is proven by the processor of~\cite{baylina2019sparse}, which checks the old root and computes the new one from the same list of siblings, for insertions, updates, and deletions. \davinci instantiates the tree with SHA-256, with leaf hash $\Sha(\kappa_{\text{LE8}} \conc v_{\text{LE32}} \conc \texttt{0x01})$ and node hash $\Sha(L \conc R)$, as implemented by the arbo library~\cite{arbo}. Its key space is partitioned into disjoint regions for configuration parameters, encrypted ballots, and vote identifiers (see Section~\ref{sec:vocdoni-protocol:state-tree}). -\paragraph{Incremental Merkle tree (census tree).} The census is maintained as an IMT, a binary tree optimized for sequential insertion: voters are appended at consecutive leaf positions rather than at key-derived paths, so the tree grows only as needed and appending a voter recomputes hashes along a single path. Each leaf stores a voter's identifier and weight. Concretely, the Ethereum address and weight packed into a single field element (see Section~\ref{sec:vocdoni-protocol:census}) and only the root $\censusroot$ is published on-chain. +\paragraph{Lean incremental Merkle tree (census tree).} The census is maintained as a lean \ac{IMT}~\cite{leanimt}, a binary tree optimized for sequential insertion: voters are appended at consecutive leaf positions rather than at key-derived paths, so the tree grows only as needed and appending a voter recomputes hashes along a single path. A node without a right sibling is promoted to the next level without hashing, so a proof contains only the non-empty siblings of the path. Each leaf stores a voter's identifier and weight; concretely, the Ethereum address and weight packed into a single field element (see Section~\ref{sec:vocdoni-protocol:census}). Nodes are hashed with two-input Poseidon over $\F_s$, and only the root $\censusroot$ is published on-chain. The batch program accepts proofs of at most 61 siblings. \paragraph{Tree operations.} To support state transitions and in-circuit verification, each tree $\tree{}$ exposes the following operations: \begin{itemize}@@ -145,32 +126,37 @@ \item $\tree.\hlset{\MTMembershipProof}(\leaf)$: returns a Merkle proof of inclusion for the given leaf.
\item $\tree.\hlset{\MTNonMembershipProof}(\leaf)$: returns a proof that the given leaf is not included in the tree. \item $\tree.\hlset{\MTVerify}(\leaf, path, \MTProof, \root{})$: returns $\true$ if and only if $\MTProof$ shows that $\leaf$ is stored at $path$ under the claimed root. \end{itemize} -These operations let sequencers evolve the state off-chain while keeping every update independently verifiable on-chain and within ZK circuits. Additional details on the tree structures and their leaf encodings are given in Sections~\ref{sec:vocdoni-protocol:census} and~\ref{sec:vocdoni-protocol:state-tree}. +These operations let sequencers evolve the state off-chain while keeping every update independently verifiable on-chain and within \ac{ZK} proofs. Additional details on the tree structures and their leaf encodings are given in Sections~\ref{sec:vocdoni-protocol:census} and~\ref{sec:vocdoni-protocol:state-tree}. \subsection{Commitment scheme} \label{sec:cryptographic-primitives:commitments} -\davinci commits to the data published in each Ethereum blob using the KZG polynomial commitment scheme~\cite{kate2010constant}, the same scheme that underlies EIP-4844; it therefore reuses Ethereum's BLS12-381 structured reference string rather than requiring a dedicated ceremony. The blob payload is encoded as a polynomial $P$; the sequencer commits to $P$ and later proves a single evaluation, which lets the state transition circuit check consistency between the blob data and the on-chain state (see Section~\ref{sec:vocdoni-protocol:circuits:state-transition}). We use two operations: +\davinci commits to the data published in each Ethereum blob using the KZG polynomial commitment scheme~\cite{kate2010constant} over BLS12-381, the same scheme that underlies EIP-4844; it therefore reuses Ethereum's structured reference string rather than requiring a dedicated ceremony. A blob of $N = 4096$ cells $d_0, \dots, d_{N-1} \in \F_v$ defines the unique polynomial $P$ of degree less than $N$ with $P(\omega_i) = d_i$, where $\omega_i$ are the $N$-th roots of unity of $\F_v$ in bit-reversed order. Its value at a point $z$ outside the domain is given by the barycentric formula +\[ +P(z) = \frac{z^N - 1}{N} \sum_{i=0}^{N-1} \frac{d_i\, \omega_i}{z - \omega_i}, +\] +which the batch program evaluates with $N$ multiplications and one batched inversion, without any pairing. The sequencer commits to $P$ and proves a single evaluation at a point derived from the commitment itself, which lets the registry check, with one call to the point-evaluation precompile, that the blob published on-chain is the one whose contents the batch program derived (see Section~\ref{sec:vocdoni-protocol:circuits:batch}). We use two operations: \begin{itemize} - \item $\hlset{\CCommit}(P)$: outputs a succinct commitment $C$ to the polynomial $P$. + \item $\hlset{\CCommit}(P)$: outputs a succinct commitment $C \in \BLS{\G}_1$ to the polynomial $P$, encoded in 48 bytes. Its \emph{versioned hash}, $\texttt{0x01} \conc \Sha(C)_{[1..32]}$, is what a blob-carrying transaction exposes. \item $\hlset{\CVerify}(C, z, y, \pi)$: returns $\true$ if and only if $\pi$ is a valid proof that $P(z) = y$ for the polynomial committed in $C$. \end{itemize} +Because the evaluation point is a hash of the commitment, the process identifier, and the old state root, a sequencer cannot choose the commitment after the point, and a commitment prepared for another election or another state does not open to the value the batch program computed. By the Schwartz--Zippel lemma, two distinct blobs agree at a random point with probability at most $N / v \approx 2^{-243}$. \subsection{Digital signature scheme} \label{sec:cryptographic-primitives:signatures} \Davinci uses the elliptic curve digital signature algorithm (ECDSA)~\cite{johnson2001ecdsa} over the SECP256K1 curve, so that voters authenticate with standard Ethereum wallets without managing additional keys. We use ECDSA in its standard form and refer to~\cite{johnson2001ecdsa} for the full algorithms; here we only fix the notation used throughout the protocol: \begin{itemize} - \item $\hlset{\SSign}_{\sk}(\msg)$: produces a signature $\sigma$ on message $\msg$ under the secret key $\sk$. + \item $\hlset{\SSign}_{\sk}(\msg)$: produces a signature $\sigma = (r, s, \mathit{recid})$ on message $\msg$ under the secret key $\sk$. \item $\hlset{\SVer}_{\pk}(\msg, \sigma)$: returns $\true$ if $\sigma$ is a valid signature on $\msg$ under the public key $\pk$. \item $\hlset{\SPubKey}(\msg, \sigma)$: recovers the signer's public key $\pk$ from a message and its signature; this is the operation Ethereum exposes as \texttt{ecrecover}. \end{itemize} -An Ethereum address is derived from a public key as the low-order 20 bytes of its Keccak digest, $\address = \mathsf{low\text{-}20}\bigl(\hlget{\Keccak}(\pk)\bigr)$. Because SECP256K1 is defined over a 256-bit field that differs from the native field of our \ac{ZK-SNARK} circuits, signature verification is performed in-circuit through a specialized gadget that emulates SECP256K1 arithmetic (see Section~\ref{sec:vocdoni-protocol:circuits:verifier}). +An Ethereum address is derived from a public key as the low-order 20 bytes of its Keccak digest, $\address = \mathsf{low\text{-}20}\bigl(\hlget{\Keccak}(\pk)\bigr)$. Messages are signed in the Ethereum personal-message format: the signed digest of a message $\msg$ of $\ell$ bytes is $\Keccak(\texttt{"\textbackslash x19Ethereum Signed Message:\textbackslash n"} \conc \ell \conc \msg)$, with $\ell$ written in decimal. A voter signs the 32-byte message formed by 24 zero bytes followed by the 8-byte big-endian vote identifier, and a \ac{CSP} signs the 92-byte message of Eq.~\eqref{eq:csp-message}. Inside the \ac{zkVM}, signatures are verified by recovering the public key with a secp256k1 precompile and comparing its address. \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. +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. \paragraph{Encryption and decryption.} Given a message $m$, the ElGamal encryption algorithm maps it into a group element $M$ of $\BJ{\G}$ and outputs a ciphertext as follows:@@ -199,12 +185,12 @@ \end{itemize}
\end{minipage} \end{mdframed} -Since the plaintext message space is small, recovering $m$ from $M$ is efficient: although the mapping $m \mapsto M$ is not generally invertible, it can be reversed by brute-force search or optimized techniques such as baby-step giant-step~\cite{blake1995elliptic}. +Since the plaintext message space is small, recovering $m$ from $M$ is efficient: although the mapping $m \mapsto M$ is not generally invertible, it can be reversed by brute-force search or optimized techniques such as baby-step giant-step~\cite{blake1995elliptic}, in time proportional to the square root of the bound on $m$. The registry bounds every tally by $10^{12} < 2^{40}$, so each field is recovered with about $2^{20}$ group operations. -\paragraph{Homomorphic addition and re-encryption.} ElGamal encryption is additively homomorphic. Given two ciphertexts $(C_1, C_2)$ and $(C_1', C_2')$, their component-wise sum $(C_1 + C_1',\, C_2 + C_2')$ is a valid ciphertext that decrypts to the sum of the two underlying messages, which allows sequencers to aggregate encrypted ballots directly. Re-encryption exploits the same property by adding an encryption of zero to a ciphertext, yielding a fresh ciphertext of the same message under new randomness and making it computationally infeasible to link the re-encrypted ballot with the original submission. +\paragraph{Homomorphic addition and re-encryption.} ElGamal encryption is additively homomorphic. Given two ciphertexts $(C_1, C_2)$ and $(C_1', C_2')$, their component-wise sum $(C_1 + C_1',\, C_2 + C_2')$ is a valid ciphertext that decrypts to the sum of the two underlying messages, which allows sequencers to aggregate encrypted ballots directly; adding the inverse of a ciphertext subtracts its message, which the batch program uses to remove overwritten ballots from the accumulator. Re-encryption exploits the same property by adding an encryption of zero to a ciphertext, yielding a fresh ciphertext of the same message under new randomness and making it computationally infeasible to link the re-encrypted ballot with the original submission. \begin{mdframed} - \begin{minipage}[t]{0.53\textwidth} + \begin{minipage}[t]{0.50\textwidth} \begin{itemize} \item[$\bullet$] $\hlset{\EncAdd}_{\pk}(\enc \in {(\BJ{\G})}^2, \enc' \in {(\BJ{\G})}^2)$: \begin{enumerate}@@ -214,7 +200,7 @@ \item Output $(C_1 + C_1', C_2 + C_2') \in {(\BJ{\G})}^2$.
\end{enumerate} \end{itemize} \end{minipage} - \begin{minipage}[t]{0.45\textwidth} + \begin{minipage}[t]{0.48\textwidth} \begin{itemize} \item[$\bullet$] $\hlset{\ReEnc}_{\pk}(\enc \in {(\BJ{\G})}^2; k\in\F_t)$: \vspace{0.1cm} \begin{enumerate}@@ -226,20 +212,54 @@ \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 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$, which the curve arithmetic implicitly reduces modulo $t$. + +\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} + \begin{minipage}[t]{0.52\textwidth} + \begin{itemize} + \item[$\bullet$] $\hlset{\CPProve}_{\sk}(\enc, m)$: + \begin{enumerate} + \item Sample $w \sample \F_t$. + \item Compute $A_1 = w \cdot \BJ{G}$, $A_2 = w \cdot C_1$. + \item Compute the challenge $e$ as a Poseidon hash of $\pk$, $C_1$, $D$, $A_1$, and $A_2$. + \item Output $\pi = (A_1, A_2, z = w + e \cdot \sk \bmod t)$. + \end{enumerate} + \end{itemize} + \end{minipage} + \begin{minipage}[t]{0.46\textwidth} + \begin{itemize} + \item[$\bullet$] $\hlset{\CPVerify}_{\pk}(\enc, m, \pi)$: + \begin{enumerate} + \item Recompute $D$ and $e$. + \item Check $z \cdot \BJ{G} = A_1 + e \cdot \pk$. + \item Check $z \cdot C_1 = A_2 + e \cdot D$. + \end{enumerate} + \end{itemize} + \end{minipage} +\end{mdframed} +The results program additionally requires all points to be on the curve and all coordinates and scalars to be canonical, so that each statement has a single encoding. \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 $t$ out of $n$ 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 \hlget{\dkgmanagement}\ smart contract can verify each contribution without learning any of the underlying secrets and slash misbehaving participants. We use the non-interactive distributed key generation protocol of~\cite{kampa2026dkg} and refer the reader to that work for the full construction and its security analysis. +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 $t$ out of $n$ 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 $t$ partial decryptions $D_i = s_i \cdot C_1$, each with a proof of consistency with the committed share $s_i$, and combining them by Lagrange interpolation in the exponent. \subsection{Zero-knowledge proof systems} \label{sec:cryptographic-primitives:zkp} -Zero-knowledge succinct non-interactive arguments of knowledge (\acp{ZK-SNARK}) are the backbone of \davinci's integrity guarantees: voters prove that their encrypted ballots are well-formed and rule-compliant without revealing their choices, and sequencers prove that vote aggregation and state transitions were carried out correctly. For a circuit $\mathcal{C}$ with public inputs $\publicinputs$ and witness $\witness$, we write: +Zero-knowledge proofs are the backbone of \davinci's integrity guarantees: voters prove that their encrypted ballots are well-formed and rule-compliant without revealing their choices, and sequencers prove that ballot verification, vote aggregation, and state transitions were carried out correctly. + +\paragraph{\acp{ZK-SNARK}.} For a circuit $\mathcal{C}$ with public inputs $\publicinputs$ and witness $\witness$, we write: \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}$. -All \davinci circuits use the Groth16 proof system~\cite{groth2016size}, chosen for its constant-size proofs and cheap on-chain verification. Although they share the proving system, the circuits are instantiated over different curves according to their role: the ballot circuit over BN254, the authentication (verifier) circuit over BLS12-377, the aggregation circuit over BW6-761, and the state transition and results circuits over BN254 (the latter because their proofs are verified on-chain through Ethereum's native precompiles). Further details on the circuits are provided in Section~\ref{sec:vocdoni-protocol:circuits} and a summary of the instantiations can be found in Fig.~\ref{fig:circuits-flow}.+\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}.
@@ -1,68 +1,56 @@
% !TeX root = ../build/main.tex -The \davinci protocol builds on several decentralized technologies and advanced cryptographic tools. In this section, we give a high-level overview of these components and their role in the system. We first introduce the \ac{IPFS}, which serves as a decentralized storage layer for distributing large datasets off-chain. We then describe Ethereum, the settlement layer where commitments are published, rules are enforced through smart contracts, and state data is managed using recent mechanisms such as data blobs. Finally, we present the \ac{ZK} proof systems that underpin the protocol’s integrity and security, focusing on \acp{ZK-SNARK} and arithmetic circuits, which allow participants to prove compliance with protocol rules without revealing sensitive information. +The \davinci protocol builds on several decentralized technologies and advanced cryptographic tools. In this section, we give a high-level overview of these components and their role in the system. We first introduce content-addressed off-chain storage, which serves to distribute large datasets such as censuses and election metadata. We then describe Ethereum, the settlement layer where commitments are published, rules are enforced through smart contracts, and state data is published using data blobs, together with the OP Stack rollups on which \davinci can also settle. We continue with the Merkle trees that commit to the census and to the election state. Finally, we present the \ac{ZK} proof systems that underpin the protocol's integrity and security: \acp{ZK-SNARK} and arithmetic circuits, which voters use to prove that their ballots comply with the election rules, and \acp{zkVM}, which sequencers use to prove that they processed the ballots correctly. -\subsection{Interplanetary file system} +\subsection{Off-chain storage} \label{sec:background:ipfs} -The \acf{IPFS} is a peer-to-peer distributed storage network designed to make the web more resilient, permanent, and decentralized. Unlike traditional client-server architectures that retrieve data from a specific location (e.g., a URL pointing to a server), \ac{IPFS} retrieves data based on its content. Every file stored in \ac{IPFS} is split into blocks, each block is hashed, and the resulting cryptographic hash is used as its unique identifier. This property, known as content addressing, ensures that data is tamper-evident: if the file changes, so does its hash. -\ac{IPFS} also provides deduplication (the same content is only stored once across the network), versioning (content identifiers can point to immutable snapshots of data), and distributed availability (data can be fetched from any node that stores it). Together, these features allow IPFS to function as a decentralized content delivery network. +Large datasets, such as the full census (eligible voters and their weights) and the election metadata (which may include questions, options, images, etc.), do not need to be stored directly on a blockchain. Instead, \davinci stores them off-chain and publishes on-chain a short commitment to their content: the root of the census Merkle tree (see Section~\ref{sec:background:mt}) for the census, and the SHA-256 digest of the exact bytes of the metadata document. Anyone who fetches a dataset can recompute the commitment and confirm its integrity, so the transport does not need to be trusted and can be chosen freely, from a conventional web server to a peer-to-peer network. -In the context of the \davinci voting protocol, \ac{IPFS} is particularly useful for off-chain data distribution. Large datasets such as the full census (eligible voters and their weights) and election metadata (which may include questions, options, images, etc.) do not need to be stored directly on Ethereum. Instead, they are stored in \ac{IPFS}, and only their content hashes are published on-chain. This approach ensures transparency and verifiability, as anyone can fetch the dataset from \ac{IPFS} and recompute the hash to confirm its integrity, while keeping on-chain storage costs low. That is, election participants can therefore rely on \ac{IPFS} to access the data without burdening the blockchain with large amounts of data. +The \acf{IPFS} is a natural choice for such a transport. \ac{IPFS} is a peer-to-peer distributed storage network that retrieves data based on its content rather than on its location. Every file stored in \ac{IPFS} is split into blocks, each block is hashed, and the resulting cryptographic hash is used as its unique identifier. This property, known as content addressing, ensures that data is tamper-evident: if the file changes, so does its hash. \ac{IPFS} also provides deduplication, versioning, and distributed availability (data can be fetched from any node that stores it), which allows it to function as a decentralized content delivery network. In the context of \davinci, the census and metadata \acp{URI} registered on-chain may point to \ac{IPFS} content (typically through a gateway) or to any other location; in all cases, the on-chain commitment, not the location, is authoritative. \subsection{Ethereum} \label{sec:background:ethereum} -Ethereum is a decentralized blockchain platform that supports programmable transactions through its built-in execution environment, the \acf{EVM}. All interactions with the Ethereum network take the form of transactions, which must be broadcast to the network, validated by consensus, and permanently recorded on-chain. Every transaction requires the payment of a fee (measured in units of gas), denominated in ETH, to compensate validators for computation and storage. This fee model ensures that resources are used efficiently and prevents denial-of-service attacks by making large or complex operations costly. In the context of \davinci, Ethereum serves as the settlement layer where critical commitments are published, ensuring transparency and immutability. +Ethereum is a decentralized blockchain platform that supports programmable transactions through its built-in execution environment, the \acf{EVM}. All interactions with the Ethereum network take the form of transactions, which must be broadcast to the network, validated by consensus, and permanently recorded on-chain. Every transaction requires the payment of a fee (measured in units of gas), denominated in ETH, to compensate validators for computation and storage. This fee model ensures that resources are used efficiently and prevents denial-of-service attacks by making large or complex operations costly. Each block header commits to the block's transactions through the root of a \ac{MPT}~\cite{wood2014ethereum}, and to its parent block through the parent's hash, so a chain of headers anchored at a trusted block hash proves that a given transaction belongs to the canonical chain. In the context of \davinci, Ethereum serves as the settlement layer where critical commitments are published, ensuring transparency and immutability. \paragraph{Smart contracts.} Smart contracts are programs deployed on the Ethereum blockchain that execute deterministically in response to transactions. Once deployed, they cannot be altered, and their execution is guaranteed by the consensus of the network. In \davinci, smart contracts orchestrate the election by managing state transitions and storing critical data such as the current state root and the encryption public key. They enforce the protocol rules in a trustless environment, ensuring that no single participant can manipulate the election. By anchoring these rules in Ethereum smart contracts, \davinci guarantees that the election logic is applied consistently and verifiably across all participants. -\paragraph{Data blobs.} Data availability is a key requirement for decentralized protocols. Ethereum’s recent EIP-4844~\cite{eip4844} introduces data blobs as a mechanism for publishing large volumes of off-chain data alongside transactions at a lower cost than traditional storage. These blobs are kept on-chain for 4096 epochs, approximately 18 days, after which they are pruned. For longer election periods, third-party solutions based on EIP-4844 can be used to extend data availability. In \davinci, sequencers use data blobs to share state transition data efficiently. By publishing state updates in blobs, sequencers allow other participants to reconstruct and verify the evolution of the election without overloading Ethereum’s permanent storage. This ensures scalable, decentralized data availability while retaining verifiability. +\paragraph{Data blobs.} Data availability is a key requirement for decentralized protocols. EIP-4844~\cite{eip4844} introduces data blobs as a mechanism for publishing large volumes of data alongside transactions at a lower cost than calldata or contract storage. A blob is a vector of $4096$ elements of the scalar field of the BLS12-381 curve (128~KiB), interpreted as the evaluations of a polynomial over a multiplicative subgroup of that field. A blob-carrying transaction does not expose the blob contents to the \ac{EVM}; it exposes only a \emph{versioned hash} of a \ac{KZG} commitment to the blob polynomial (see Appendix~\ref{sec:cryptographic-primitives:commitments}). A contract can nevertheless check a claim about the blob contents with the point-evaluation precompile, which verifies that the committed polynomial evaluates to a given value at a given point. Blobs are kept by the consensus layer for 4096 epochs, approximately 18 days, after which they are pruned; for longer election periods, nodes or third-party archivers must retain them. Since the activation of EIP-7594~\cite{eip7594}, a transaction carries at most six blobs. In \davinci, sequencers use data blobs to publish the data of each state transition, so that any participant can reconstruct and verify the evolution of the election without overloading Ethereum's permanent storage. +\paragraph{Rollups and the OP Stack.} A rollup is a blockchain that executes transactions off the Ethereum mainnet (the \emph{layer 1}) and posts its own transaction data to it, inheriting its data availability and, through fraud or validity proofs, its security. The OP Stack~\cite{opstack} is a widely deployed framework for optimistic rollups (\emph{layer 2} chains), among which is OP Mainnet. Execution on such chains is substantially cheaper than on Ethereum, which makes them attractive for settling frequent state transitions. Two properties of the OP Stack matter for \davinci. First, each layer-2 block is derived from a recent layer-1 block, its \emph{L1 origin}, and a system contract (\lblock) exposes the number and the hash of that block to the layer-2 \ac{EVM}. Second, layer-2 contracts have no access to the versioned hashes of layer-1 blob transactions. \Davinci therefore supports an \emph{L1-blob mode}, in which the election data is published in Ethereum blobs and the registry contract on the rollup verifies, from a chain of Ethereum block headers anchored at the L1 origin, that the corresponding blob transactions are part of the Ethereum chain (see Section~\ref{sec:vocdoni-protocol:flow:settlement}). \subsection{Merkle trees} \label{sec:background:mt} -Merkle trees~\cite{merkle1987digital} are cryptographic hash trees that enable compact proofs of data inclusion. Formally, a Merkle tree is a binary tree structure where each leaf node represents the cryptographic hash of a set of data and every non-leaf node is derived from the hash of its children. The apex of the tree, the \textit{Merkle root}, acts as a succinct cryptographic commitment to the entire dataset. -%This structure allows for efficient membership verification. -To prove that a specific element $x$ exists within the set, a prover provides a Merkle path consisting of the sibling nodes along the path from the leaf to the root. A verifier can reconstruct the root in logarithmic time $O(\log n)$ and check it against the committed state, without requiring access to the full dataset. In \davinci, we use two specialized variants of this structure to commit critical data: a sparse Merkle tree for the voting state and an incremental Merkle tree for the voter registry (census). +Merkle trees~\cite{merkle1987digital} are cryptographic hash trees that enable compact proofs of data inclusion. Formally, a Merkle tree is a binary tree structure where each leaf node represents the cryptographic hash of a set of data and every non-leaf node is derived from the hash of its children. The apex of the tree, the \textit{Merkle root}, acts as a succinct cryptographic commitment to the entire dataset. +To prove that a specific element $x$ exists within the set, a prover provides a Merkle path consisting of the sibling nodes along the path from the leaf to the root. A verifier can reconstruct the root in logarithmic time $O(\log n)$ and check it against the committed state, without requiring access to the full dataset. In \davinci, we use two specialized variants of this structure to commit critical data: a sparse Merkle tree for the voting state and an incremental Merkle tree for the voter registry (census). \paragraph{Sparse Merkle trees.} -A \ac{SMT} represents a key-value map where each leaf is the hash of a (key, value) pair and each parent node is the hash of its two children. In an \ac{SMT}, every possible key maps to a unique leaf position (with empty slots defaulting to a zero value), yielding a fixed-height binary tree. This property is circuit-friendly, since the proof of a leaf’s membership or non-membership has a consistent length and can be efficiently verified inside a \ac{ZK-SNARK} circuit using a SNARK-optimized hash. In \davinci, the state tree is implemented as an \ac{SMT} of fixed depth. In particular, configuration parameters occupy reserved leaf addresses, each voter’s encrypted ballot is stored at a leaf indexed by their unique identifier, and each one-time vote identifier is recorded at a dedicated leaf path. Because the \ac{SMT} covers a vast key space, a user or sequencer can prove that a given key is present in the state (or conversely, that it remains empty) by providing a short Merkle proof against the tree’s root, rather than revealing the entire state. This enables compact proofs of state correctness. For instance, showing in ZK that a vote identifier has not appeared before or that a new ballot’s ciphertext is correctly inserted into the state. The \ac{SMT} used in \davinci follows the circomlib Merkle tree specification (Poseidon-based), ensuring that state updates can be verified succinctly on-chain via the Merkle root and proof. +A \ac{SMT} represents a key-value map where each leaf is the hash of a (key, value) pair and each parent node is the hash of its two children. In an \ac{SMT}, every possible key maps to a unique leaf position determined by the bits of the key, independently of the insertion order, and empty subtrees are represented by a constant. The proof of a leaf's membership or non-membership therefore has a bounded length and can be verified by a fixed procedure, which makes the structure well suited to \ac{ZK} proofs. In \davinci, the state tree is an \ac{SMT} of depth 64 indexed by 64-bit keys. Configuration parameters occupy reserved keys, each voter's encrypted ballot is stored at a key derived from the voter's identity, and each one-time vote identifier is recorded at its own key. Because the \ac{SMT} covers a vast key space, a user or sequencer can prove that a given key is present in the state (or conversely, that it remains empty) by providing a short Merkle proof against the tree's root, rather than revealing the entire state. This enables compact proofs of state correctness, for instance showing in \ac{ZK} that a vote identifier has not appeared before or that a new ballot's ciphertext is correctly inserted into the state. The \ac{SMT} used in \davinci is arbo~\cite{arbo}, whose structure and proof format follow the circomlib sparse Merkle tree specification~\cite{baylina2019sparse}, instantiated with the SHA-256 hash function. SHA-256 is cheap both on the \ac{EVM}, where it is a precompile, and in the \ac{zkVM}, where it is an accelerated operation, so the same tree can be updated inside a proof and checked by a smart contract. \paragraph{Incremental Merkle trees.} -The census (voter registry) is maintained with an \ac{IMT}, a binary Merkle tree designed for efficient sequential updates. Unlike a sparse tree, the \ac{IMT} grows in height only as needed with the number of leaves and eliminates the overhead of hashing dummy ``zero'' siblings. In this scheme, voters are assigned sequential leaf indices in a continuously evolving tree, rather than being placed at cryptographic key-derived positions. In \davinci, the census Merkle tree is built as an \ac{IMT}: each eligible voter’s identifier (or a commitment to it) and voting weight are stored in the next available leaf, and only the Merkle root of this tree (the \censusroot) is published on-chain. This design makes membership updates and proof generation extremely low-cost for the census. Appending a new voter requires recomputing hashes only along the single path from the new leaf to the root, and the tree’s depth adjusts optimally (e.g. a tree of $N$ voters has height $\approx \log_2{N}$, instead of a fixed large height). Consequently, proving one’s inclusion in the voter list is more efficient than it would be with an SMT: the Merkle proof is shorter and involves no unnecessary default nodes. A voter can thus obtain a small proof of their membership in the census (their leaf’s existence under the known root) without revealing their index or identity, and include this in a \ac{ZK-SNARK} to demonstrate eligibility. In summary, the \ac{IMT}’s focus on sequential insertion and minimal hashing overhead makes it well-suited for the frequently-updated census tree, offering better update performance and smaller circuits for verification than a traditional \ac{SMT} structure in this context. +The census (voter registry) is maintained with an \ac{IMT}, a binary Merkle tree designed for efficient sequential updates. Unlike a sparse tree, the \ac{IMT} grows in height only as needed with the number of leaves and eliminates the overhead of hashing dummy ``zero'' siblings. In this scheme, voters are assigned sequential leaf indices in a continuously evolving tree, rather than being placed at cryptographic key-derived positions. In \davinci, the census Merkle tree is a lean \ac{IMT}~\cite{leanimt} hashed with Poseidon: each eligible voter's address and voting weight are stored in the next available leaf, and only the Merkle root of this tree (the \censusroot) is published on-chain. This design makes membership updates and proof generation extremely low-cost for the census. Appending a new voter requires recomputing hashes only along the single path from the new leaf to the root, and the tree's depth adjusts optimally (e.g., a tree of $N$ voters has height $\lceil \log_2{N} \rceil$, instead of a fixed large height). Consequently, proving one's inclusion in the voter list is more efficient than it would be with an \ac{SMT}: the Merkle proof is shorter and involves no unnecessary default nodes. A lean \ac{IMT} root does not commit to the number of leaves, and a node with a single child is promoted to the next level instead of being hashed with an empty sibling, so a membership proof does not pin the position of its leaf. For this reason, the slot where a voter's ballot is stored is derived from the voter's address, never from the voter's position in the census (see Section~\ref{sec:vocdoni-protocol:state-tree}). \subsection{Zero-knowledge proofs} \label{sec:background:zkp} Zero-knowledge (ZK) proofs are cryptographic protocols that allow one party (the prover) to convince another (the verifier) that a certain statement is true, without revealing any information beyond the validity of the statement itself. In the context of voting, this enables participants to prove that their encrypted ballot is well-formed and complies with the election rules, without disclosing their actual choice. -\paragraph{\Acp{ZK-SNARK}.} -We focus on a specific type of proof system called zero-knowledge succinct non-interactive arguments of knowledge (\acsp{ZK-SNARK}). -%, which are particularly suited for blockchain settings. -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, %to achieve short proofs and fast verification [Gro16, GWC19]. -are only about 200 bytes long and can be verified in a few milliseconds. These properties make \acsp{ZK-SNARK} particularly well-suited for blockchain applications, where verification cost and data size are critical. In \davinci, \acsp{ZK-SNARK} are used at multiple stages of the protocol: voters generate proofs to show that their encrypted ballots are correct and sequencers use recursive \acsp{ZK-SNARK} to allow multiple proofs to be aggregated efficiently and generate proofs to attest to valid state transitions. 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{\Acp{ZK-SNARK}.} +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. +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}). -\marta{For \davinci, we run an \ac{MPC} for each of the circuits, see Section~\ref{sec:analysis:implementation} and Section~\ref{sec:cryptographic-primitives:zkp}.} -% By anchoring these proofs on Ethereum, the protocol ensures that every step of the voting process is publicly verifiable, while preserving voter privacy. +\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}. +In practice, proving with \acsp{ZK-SNARK} means showing knowledge of a secret witness (e.g., a plaintext ballot or encryption randomness) that satisfies all the equations encoded in the circuit. For example, the ballot circuit in \davinci encodes the constraints that a ciphertext is well-formed, that the vote identifier is correctly derived, and that the ballot complies with the rules of the voting mode. The prover generates a proof of satisfiability, while the verifier only checks the proof against the public inputs, without learning the secret witness. Circuits are compact for algebraic statements over their native field, such as elliptic curve operations on an embedded curve, but they become large and difficult to audit for statements with heavy control flow, variable-length data, or arithmetic over foreign fields, which is precisely the nature of the work of a sequencer. -%In general, zk-SNARKs for circuit satisfiability (CSAT) require arithmetic circuits to be expressed in a more algebraic form. A common representation is the rank-1 constraint system (R1CS) [GGPR13], which encodes computations as a set of quadratic constraints. A zk-SNARK proof then demonstrates, without revealing any private values, that the prover knows an assignment to all wires of the circuit that satisfies the R1CS. Tooling such as circom provides a high-level language to write arithmetic circuits while still exposing full control over the signals and constraints of the resulting R1CS. +\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. -\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}. -%The most widely studied language in the context of ZK-SNARK proofs is the NP-complete language of circuit satisfiability [BCC+ 16, PHGR13, BSCTV14b]. -%zk-SNARKs prove statements about the satisfiability of arithmetic circuits. An arithmetic circuit is a directed acyclic graph consisting of addition and multiplication gates defined over a finite field. Such circuits are a convenient model for computation: any program or verification logic can be compiled into an arithmetic circuit, with its inputs, outputs, and intermediate constraints expressed as field operations. -In practice, proving with \acsp{ZK-SNARK} means showing knowledge of a secret witness (e.g., a plaintext ballot or encryption randomness) that satisfies all the equations encoded in the circuit. For example, the ballot circuit in \davinci encodes the constraints that a ciphertext is well-formed, that the vote identifier is correctly derived, and that the ballot complies with the rules of the voting mode. The prover generates a proof of satisfiability, while the verifier only checks the proof against the public inputs, without learning the secret witness. -By building complex protocol logic from arithmetic circuits and using \acsp{ZK-SNARK} to prove their satisfiability, \davinci ensures that every step of the election process, from ballot submission to state transitions, is enforced cryptographically and publicly verifiable. % is verifiable in zero-knowledge. - -%In \davinci, arithmetic circuits form the backbone of all zk-SNARK proofs: voters use them to generate ballot proofs, sequencers use them to prove state transitions, and aggregation circuits recursively combine multiple proofs. Together, these circuits ensure that every step of the protocol is enforced cryptographically and can be verified succinctly on-chain. - -%The gates of an arithmetic circuit consist on additions and multiplications modulo p, where p is typically a large prime number of approximately 254 bits [WBB20]. The wires of an arithmetic circuit, often called signals, can carry any value from the prime finite field Fp. As with electronic circuits, depending on how signals are connected to the gates, we can distinguish between input, intermediate, and output signals. Usually, there is a set of public signals known both to prover and verifier, and the prover proves that, with that public information, he knows a valid assignment to the rest of signals that makes the circuit satisfiable. From now on, we extend the meaning of the word witness to an assignment to all signals of a the circuit, both public and private. - -%High-level languages such as Circom compile developer-written code into R1CS constraints, giving developers both expressiveness and fine-grained control. In \davinci, arithmetic circuits form the backbone of all zk-SNARK proofs: voters use them to generate ballot proofs, sequencers use them to prove state transitions, and aggregation circuits recursively combine multiple proofs. Together, these circuits ensure that every step of the protocol is enforced cryptographically and can be verified succinctly on-chain. +\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.
@@ -1,27 +1,20 @@
% !TeX root = ../build/main.tex -The ballot protocol provides a unified and parametric way to represent a wide range of voting systems within \davinci. Instead of designing a separate circuit for each voting rule, the protocol defines ballots as fixed-length arrays of integers, subject to a small set of configurable parameters. These parameters constrain the values that can appear in each field of the ballot and the aggregate properties of the ballot as a whole. By adjusting these parameters, the same circuit can implement approval voting, ranking, quadratic voting, multiple choice, and many other schemes. In the protocol we refer to the different configurations as the \emph{ballot mode} ($\ballotmode$). This abstraction has two key advantages. First, it allows a broad variety of voting systems to be supported with a minimal circuit design, avoiding conditional logic that would otherwise increase constraint counts. Second, it provides a common interface for tallying, since all ballots are aggregated into a single results array regardless of the voting mode. +The ballot protocol provides a unified and parametric way to represent a wide range of voting systems within \davinci. Instead of designing a separate circuit for each voting rule, the protocol defines ballots as fixed-length arrays of integers, subject to a small set of configurable parameters. These parameters constrain the values that can appear in each field of the ballot and the aggregate properties of the ballot as a whole. By adjusting these parameters, the same circuit can implement approval voting, ranking, quadratic voting, multiple choice, and many other schemes. In the protocol we refer to the different configurations as the \emph{ballot mode} ($\ballotmode$). This abstraction has two key advantages. First, it allows a broad variety of voting systems to be supported with a minimal circuit design, avoiding conditional logic that would otherwise increase constraint counts. Second, it provides a common interface for tallying, since all ballots are aggregated into a single results array regardless of the voting mode. -\paragraph{Definition of parameters.} -%Each ballot is defined as an array of integer values subject to the following configurable parameters: +\paragraph{Definition of parameters.} Each ballot is defined as an array of integer values subject to a set of configurable parameters, illustrated in Fig.~\ref{fig:ballot-variables}. These parameters are defined as follows: \begin{itemize} - \item \numfields: the maximum number of fields (i.e., options) in the ballot (by default, $\numfields = 16$). - \item \minvalue: the minimum value that each field in the ballot can take. - \item \maxvalue: the maximum value that each field in the ballot can take. - \item \uniquevalues: a Boolean flag indicating whether all field values must be different (as in ranking systems). - \item \costexponent: the exponent applied when computing the cost of casting votes in a field. This parameter enables quadratic or higher-order voting rules. - \item \minvaluesum: the minimum allowed total sum of a ballot, computed as $\sum_{i=1}^{\numfields} v_i^{\costexponent}$, - where $v_i$ are the field values. - \item \maxvaluesum: the maximum allowed total sum of a ballot, computed as $\sum_{i=1}^{\numfields} v_i^{\costexponent}$, where $v_i$ are the field values (e.g., to enforce a budget of credits). + \item \numfields: the number of fields (i.e., options) in the ballot, between $1$ and $16$. The ballot circuit and the batch program always handle $16$ fields; the fields beyond \numfields are inactive. + \item \groupsize: the size of the groups into which an application may split the fields to present several questions in one ballot. It must not exceed \numfields, and it does not change the constraints below. + \item \minvalue: the minimum value that each field in the ballot can take. + \item \maxvalue: the maximum value that each field in the ballot can take. + \item \uniquevalues: a Boolean flag indicating whether all field values must be different (as in ranking systems). + \item \costexponent: the exponent applied when computing the cost of casting votes in a field. This parameter enables quadratic or higher-order voting rules. + \item \minvaluesum: the minimum allowed total sum of a ballot, computed as $\sum_{i=1}^{\numfields} v_i^{\costexponent}$, + where $v_i$ are the field values. + \item \maxvaluesum: the maximum allowed total sum of a ballot, computed as $\sum_{i=1}^{\numfields} v_i^{\costexponent}$, where $v_i$ are the field values (e.g., to enforce a budget of credits). The value zero means that the bound is the voter's weight. \end{itemize} -%\begin{itemize} -% \item \numfields: the maximum number of fields (i.e., options) in the ballot. -% \item \minvalue, \maxvalue: the allowable range for each field value. -% \item \uniquevalues: a Boolean flag specifying whether all field values must be distinct (as in ranking systems). -% \item \costexponent: the exponent applied when computing the cost of casting votes in a field; this parameter enables quadratic or higher-order voting rules. -% \item \minvaluesum, \maxvaluesum: bounds on the total sum of all field values in a ballot (e.g., to enforce a budget of credits). -%\end{itemize} \vspace{-0.5cm} \begin{figure}[H]@@ -30,27 +23,35 @@ \includegraphics[scale = 0.8, draft = false]{\figs/ballot-variables.pdf}
\caption{Schematic representation of the parameters that define a ballot in \davinci.} \label{fig:ballot-variables} \end{figure} -\vspace{-1cm} +\vspace{-0.6cm} -\paragraph{Definition of constraints.} Given a ballot with $n$ fields and each field filled with a value $v_i$ for $i = 1, \dots, n$, we enforce the following constraints (captured in Fig.~\ref{fig:ballot-variables}): +\noi The ballot mode is stored in the state tree, and given to the ballot circuit, packed into a single integer below $2^{247}$, as shown in Fig.~\ref{fig:ballot-mode-packing}. The packing fixes the range of every parameter: \maxvalue and \minvalue are below $2^{48}$, \minvaluesum and \maxvaluesum below $2^{63}$, and \costexponent, \numfields, and \groupsize below $2^{8}$. When a process is created, the registry rejects a ballot mode that does not fit this packing or that violates $1 \le \numfields \le 16$, $\groupsize \le \numfields$, $\minvalue \le \maxvalue$, or $\minvaluesum \le \maxvaluesum$, and it rejects a process whose worst-case tally could not be decrypted, i.e., one with $\maxvalue \cdot \maxvoters > 10^{12}$. + +\begin{figure}[h] + \centerline{\includegraphics[width=\textwidth,draft=false]{\figs/ballot-mode-packing.pdf}} + \setlength{\abovecaptionskip}{5pt} + \caption{Packing of the ballot mode into one integer. Numbers below the fields are the position of their least significant bit.} + \label{fig:ballot-mode-packing} +\end{figure} + +\paragraph{Definition of constraints.} Given a ballot with $n = \numfields$ active fields, each filled with a value $v_i$ for $i = 1, \dots, n$, and cast by a voter with weight $\weight$, we enforce the following constraints (captured in Fig.~\ref{fig:ballot-variables}): \begin{itemize} - \item $\numfields = n$, + \item $\groupsize \le \numfields = n$, \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\}$. - \item $\minvaluesum \leq \sum_{i=1}^n v_i^{\costexponent} \leq \maxvaluesum$. + \item $\minvaluesum \leq \sum_{i=1}^n v_i^{\costexponent} \leq M$, where $M = \maxvaluesum$ if $\maxvaluesum > 0$, and $M = \weight$ otherwise. \end{itemize} +The inactive fields $n < 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. \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 tree (see Section~\ref{sec:vocdoni-protocol:census}), are taken into account when computing these sums. By default, all voters have the same weight, but the protocol also supports weighted voting, where different participants may contribute proportionally to their assigned voting power. In this case, \maxvaluesum\ reflects the maximum weight assigned to each voter, and the ballot and verifier circuits enforce that the correct weight is being used (see Sections~\ref{sec:vocdoni-protocol:circuits:ballot} and~\ref{sec:vocdoni-protocol:circuits:verifier} 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. 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 Fig.~\ref{fig:ballot-modes}, which illustrate 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 $N$, 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. The figure also illustrates examples of voters' ballots, with the last column indicating whether each ballot is valid or invalid under the rules of the selected mode. +\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 Fig.~\ref{fig:ballot-modes}, which illustrate 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 $N$, 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. The figure also illustrates examples of voters' ballots, with the last column indicating whether each ballot is valid or invalid under the rules of the selected mode. In all the examples, \groupsize is zero. -%\begin{landscape} \begin{figure}[h] \centerline{\includegraphics[width=\textwidth,draft=false]{\figs/ballot-protocol-table.png}} \caption{Table showing various voting models using different ballot configurations. Each row corresponds to a voting system specified by a fixed configuration of the ballot parameters (\numfields, \minvalue, \maxvalue, \uniquevalues, \costexponent, \minvaluesum, \maxvaluesum). The table also includes example ballots for each mode, illustrating how the constraints are enforced in practice. The last column indicates whether a ballot is valid (1) or invalid (0) under the rules of the selected mode.} \label{fig:ballot-modes} \end{figure} -%\end{landscape}
@@ -1,83 +1,63 @@
% !TeX root = ../build/main.tex -The census defines the set of eligible voters and their associated voting weights. At its core, a census is simply a dataset that, for each voter, contains a unique identifier (typically an Ethereum address), a sequential index, a voting weight, and a means to produce a membership proof that can be verified inside a \ac{ZK} circuit. \Davinci supports two mechanisms for generating such proofs: +The census defines the set of eligible voters and their associated voting weights. At its core, a census is simply a dataset that, for each voter, contains a unique identifier (an Ethereum address), a voting weight, and a means to produce a membership proof that can be verified inside a \ac{ZK} proof. \Davinci supports two mechanisms for generating such proofs: \begin{itemize} - \item \textit{Credential-based membership proofs}. Eligibility is certified by a digital signature issued by a \ac{CSP}. The \ac{CSP} assigns a unique index ($\idx$) to each voter and includes it in the signed credential alongside the voter's identifier (\address), their weight (\weight), and the process identifier (\processid). - \item \textit{Merkle-tree-based membership proofs}. The census is organized as an \ac{IMT} (see Appendix~\ref{sec:cryptographic-primitives:merkle-trees}) and denoted by $\hlset{\censusTree}$. - Each voter is assigned a unique sequential index ($\idx$) at the time of registration, and their identifier ($\address$) and weight ($\weight$) are stored as a leaf at position $\idx$ in the tree. A membership proof ($\censuspf$) for voter $i$ is a Merkle path attesting that the tuple $(\address_i,\weight_i)$ is stored at position $\idx_i$ under the committed census tree root. - Sequencers supply these Merkle proofs to attest voters' membership to the census and the index $\idx$ is used to derive the voter's reserved storage slot in the state tree (see Section~\ref{sec:vocdoni-protocol:state-tree}). - - + \item \textit{Merkle-tree-based membership proofs}. The census is organized as a lean \ac{IMT} hashed with Poseidon (see Appendix~\ref{sec:cryptographic-primitives:merkle-trees}) and denoted by $\hlset{\censusTree}$. Each voter is stored as one leaf that packs the voter's address and weight into a single field element, + \begin{equation} + \leaf = \address \cdot 2^{88} + \weight, \qquad 0 \le \weight < 2^{88}, + \label{eq:census-leaf} + \end{equation} + and a membership proof (\censuspf) is a Merkle path from that leaf to the committed census root. Sequencers keep a copy of the census, derive the membership proofs themselves, and serve them to voters who need their weight to build a ballot. + \item \textit{Credential-based membership proofs}. Eligibility is certified by a digital signature issued by a \ac{CSP}. The \ac{CSP} assigns a unique index ($\idx$) to each voter and signs it alongside the process identifier (\processid), the voter's identifier (\address), and their weight (\weight). The voter attaches the credential to the ballot. \end{itemize} % -To support the different census models, the \hlget{\electionregistry} smart contract stores the following parameters: +In both mechanisms, the census only certifies eligibility and weight; where the voter's ballot is stored is determined by the voter's address (Merkle censuses) or by the index assigned by the \ac{CSP} (credential-based censuses), as described in Section~\ref{sec:vocdoni-protocol:state-tree}. +To support the different census models, the \hlget{\processregistry} smart contract stores the following parameters: \begin{itemize} - \item \censusorigin: the deployment model (off-chain static, off-chain dynamic, on-chain dynamic, or \ac{CSP}). - \item \censusuri: a \ac{URI} pointing to an external reference (URL, GraphQL endpoint, CDN path, IPFS/IPNS, etc.) from which sequencers can download or query the census data. - \item \censusroot: the on-chain commitment used for membership verification. Its interpretation depends on the \censusorigin. In the \ac{CSP} model, this parameter corresponds to the hash of the \ac{CSP}’s public key, and in the case of Merkle trees, it corresponds to a Merkle root (off-chain static/dynamic) or a census contract address (on-chain dynamic). + \item \censusorigin: the census model, one of the four values of Table~\ref{tab:census-models}. + \item \censusuri: a \ac{URI} pointing to an external reference (URL, CDN path, IPFS gateway, etc.) from which sequencers can download the census data or, for a \ac{CSP} census, where voters obtain their credentials. + \item \censusroot: the on-chain commitment used for membership verification. Its interpretation depends on the \censusorigin. For Merkle censuses, it is the root of the census tree; in the \ac{CSP} model, it is the Ethereum address of the \ac{CSP}'s signing key, read as a 160-bit integer. + \item \texttt{contractAddress}: for the on-chain model only, the address of the census contract. \end{itemize} % -Organizers are free to construct the census from various data sources, such as private membership registries, self-sovereign identity credentials, or Ethereum-based tokens (e.g. ERC-20 or NFTs) whose balances define eligibility. -%Token-based censuses may be built from an optimistic snapshot at a chosen block or via a ZK proof that validates balances using Ethereum storage proofs. -%This is correct, but it is not the way DAVINCI is designed to support token-based censuses. In the case of token-based, there must be a smart-contract that builds a Merkle-Tree onchain. Then we declare a census Root the address of that contract. -This flexibility supports a broad range of use cases and governance scenarios. +Organizers are free to construct the census from various data sources, such as private membership registries, self-sovereign identity credentials, or Ethereum-based tokens (e.g., ERC-20 or NFTs) whose balances define eligibility. A token-based census is naturally built as an on-chain census, by a contract that adds members to its tree according to their holdings. +This flexibility supports a broad range of use cases and governance scenarios. % -The supported census models are summarized in Table~\ref{tab:census-models} and described in detail below. +The supported census models are summarized in Table~\ref{tab:census-models} and described in detail below. Whichever model is used, the batch program checks every voter's eligibility inside the proof, and the registry checks that the census root used by the proof is one the election accepts. -\paragraph{Credential service provider.} Voter eligibility is certified by a digital signature issued by a \ac{CSP}. A voter obtains a signed credential from the \ac{CSP}, and sequencers verify the signature inside the \ac{ZK} circuits. The credential is issued over the tuple $(\processid,\idx,\address,\weight)$ where $\idx$ is a unique index assigned by the CSP to each voter. This index will be used by the state transition circuit to derive the voter's reserved storage slot in the state tree (see Section~\ref{sec:vocdoni-protocol:state-tree}). In this case, \censusroot stores the hash of the \ac{CSP}’s public key, and \censusuri specifies the endpoint where voters obtain their credential. This model is suitable when eligibility is managed externally through attested identities rather than by maintaining a Merkle-tree dataset. +\paragraph{Off-chain static census (origin 1).} The organizer constructs a fixed census prior to the election. The Merkle tree is built locally and the resulting root is stored in \censusroot, and \censusuri specifies the endpoint from which sequencers can retrieve the full list of members, from which they rebuild the tree and check its root. Since the census is static, no updates occur during the voting period, and every state transition must prove membership against the fixed root. -\paragraph{Off-chain static census.} The organizer constructs a fixed census prior to the election. The Merkle tree is built locally and the resulting root is stored in \censusroot, and \censusuri specifies the endpoint from which sequencers can retrieve the full tree. Since the census is static, no updates occur during the voting period. +\paragraph{Off-chain dynamic census (origin 2).} The Merkle tree remains off-chain, but the organizer may publish a new version of it during the voting period, by replacing \censusroot and \censusuri in the \hlget{\processregistry}. The registry accepts replacements only from the organizer, only while the process is ready or paused, and only before its end time. From then on, a state transition must prove membership against the latest root; batches proven against an older root are rejected and must be rebuilt. Ballots that were already settled remain in the state and count, even if their voters are absent from the new census, so organizers are expected to use this model to append voters, not to remove them. -\paragraph{Off-chain dynamic census.} The Merkle tree remains off-chain, but the organizer may append new voters during the voting period (never deleting voters or modifying weights, as this would enable double voting). Each new insertion produces a new Merkle root, which the organizer must publish to the \hlget{\electionregistry} contract by updating the \censusroot parameter. As in the static model, \censusuri provides the endpoint from which sequencers can download the current version of the tree. Sequencers verify membership proofs against the most recently published root. +\paragraph{On-chain census (origin 3).} In this configuration, the census is managed by a dedicated census contract (\hlget{\censusvalidator}) that supports adding new members during the voting period, for instance as tokens are acquired. The address of this contract is stored in the process; the registry stores the contract's root at creation for reference only. The census contract keeps a history of the roots it has held, never evicts them, and never changes the weight of an existing member. A state transition may therefore prove membership against any root that the contract held at some block between the election's creation block and the current block, and the \hlget{\processregistry} queries the contract during each transition to verify this condition. Sequencers rebuild the tree by replaying the contract's member additions. -\paragraph{On-chain dynamic census.} In this configuration, the census is managed by a dedicated on-chain contract (\hlget{\censusmanagement}) that supports adding new members during the voting period. The address of this contract is stored in \censusroot, while \censusuri points to an external representation of the tree. The \hlget{\censusmanagement} contract maintains a history of valid Merkle roots. Sequencers may therefore generate membership proofs using older roots, and during state transitions the \hlget{\electionregistry} contract queries the \hlget{\censusmanagement} contract to verify that the root used in the proof is still valid. As in all dynamic models, only additions to the census are permitted during the voting period. +\paragraph{Credential service provider (origin 4).} Voter eligibility is certified by a digital signature issued by a \ac{CSP}. A voter obtains a signed credential from the \ac{CSP} and attaches it to the ballot, and the batch program verifies the signature inside the proof. The credential is an ECDSA signature over SECP256K1 (see Appendix~\ref{sec:cryptographic-primitives:signatures}), in the Ethereum personal-message format, over the 92-byte message +\begin{equation} + \processid_{\text{32}} \conc \address_{\text{20}} \conc \weight_{\text{32}} \conc \idx_{\text{8}}, + \label{eq:csp-message} +\end{equation} +where subscripts denote big-endian byte lengths and $\idx$ is a unique index assigned by the \ac{CSP} to each voter. In this model, \censusroot stores the Ethereum address of the \ac{CSP}'s signing key, and \censusuri specifies the endpoint where voters obtain their credential. The batch program recovers the signer's key from each credential and requires all the credentials of a batch to recover the same key, whose address it publishes in place of a census root. This model is suitable when eligibility is managed externally through attested identities rather than by maintaining a Merkle-tree dataset; its main limitation is that a credential, once issued, cannot be revoked. \begin{table}[H] \centering \renewcommand{\arraystretch}{1.25} - \begin{tabular}{|P{1.6cm}|P{2.1cm}|P{3.3cm}|P{4.1cm}|P{4.8cm}|} - + \small + \begin{tabular}{|P{1.3cm}|P{2.2cm}|P{3.1cm}|P{3.3cm}|P{3.9cm}|} \hline - \multicolumn{2}{|c|}{\censusorigin} & - \censusroot & - \censusuri & - Membership proof \\ + Origin & Model & \censusroot & \censusuri & Root a state transition may use \\ + \hline + 1 & Off-chain static & Fixed Merkle root & Endpoint to obtain the census & The root fixed at creation \\ \hline - - \multicolumn{2}{|P{3.5cm}|}{Credential service provider (\ac{CSP})} - & Hash of the {\ac{CSP}'s public key} - & Endpoint to obtain an eligibility credential - & \multirow{2}{*}{Digital signature verification}\\ + 2 & Off-chain dynamic & Latest Merkle root, replaced by the organizer & Endpoint to obtain the latest census & The latest root only \\ \hline - - \multirow{4}{*}{Off-chain} - & \multirow{2}{*}{\centering Static} - & \multirow{2}{*}{Fixed Merkle root} - & Endpoint to obtain the census tree - & Merkle proof verified against the fixed Merkle root \\ - \cline{2-5} - - & \centering Dynamic (add-only) - & \multirow{2}{*}{Latest Merkle root} - & Endpoint to obtain the latest version of the tree - & Merkle proof verified against the latest Merkle root\\ + 3 & On-chain & Census contract (\censusvalidator) & Endpoint to obtain the census, or none & Any root the contract held since the creation block \\ \hline - - \multirow{2}{*}{On-chain} - & \centering Dynamic (add-only) - & \censusmanagement contract address - & Endpoint to obtain the latest version of the tree - & Merkle proof verified against most recent Merkle roots \\ + 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) \\ \hline - \end{tabular} \vspace{0.5cm} \caption{Summary of census configurations supported by the \davinci protocol.} \label{tab:census-models} \end{table} -%CENSUS ORIGIN -%MerkleTreeOffchainStaticV1 -%MerkleTreeOffchainDynamicV1 -%MerkleTreeOnchainDynamicV1 -%CSPEdDSABabyJubJubV1 +\paragraph{Uniqueness of ballot slots.} Since a voter's ballot slot is derived from the voter's address by a hash truncated to 63 bits (Section~\ref{sec:vocdoni-protocol:state-tree}), two distinct members of a Merkle census could, in principle, be assigned the same slot, and the ballot of one would then overwrite the ballot of the other. Finding an address whose slot collides with one of $N$ existing members requires about $2^{63}/N$ key generations, which is feasible for a determined attacker with large $N$. Slot uniqueness is therefore part of the census model: on-chain census contracts reject a registration whose slot is already taken, sequencers refuse any off-chain census that contains two members with the same slot, and the batch program rejects a batch that writes the same slot twice. For a \ac{CSP} census, the slot is derived from the index, and the \ac{CSP} must assign a distinct index to each voter.
@@ -1,347 +1,276 @@
% !TeX root = ../build/main.tex -At the core of \davinci lie a set of arithmetic circuits that enforce the correctness of every step of the election. Each circuit corresponds to a distinct task and, taken together, they guarantee that all protocol rules are satisfied without revealing any private information. Specifically, the \emph{ballot circuit} (Section~\ref{sec:vocdoni-protocol:circuits:ballot}) ensures that encrypted votes are valid and well-formed, the \emph{verifier circuit} (Section~\ref{sec:vocdoni-protocol:circuits:verifier}) verifies the voter's proof; the \emph{aggregation circuit} (Section~\ref{sec:vocdoni-protocol:circuits:aggregation}) combines multiple authenticated votes into a single proof; the \emph{state transition circuit} (Section~\ref{sec:vocdoni-protocol:circuits:state-transition}) updates the global state root and produces the \ac{ZK-SNARK} proof that is verified on-chain; and the \textit{results circuit} (Section~\ref{sec:vocdoni-protocol:circuits:results}) proves that the election results were computed correctly. The flow of these circuits and their interactions is shown in Fig.~\ref{fig:circuits-flow}. +At the core of \davinci lie three proof statements that enforce the correctness of every step of the election. Each statement corresponds to a distinct task and, taken together, they guarantee that all protocol rules are satisfied without revealing any private information. Specifically, the \emph{ballot circuit} (Section~\ref{sec:vocdoni-protocol:circuits:ballot}), proven by the voter, ensures that an encrypted vote is valid and well-formed; the \emph{batch program} (Section~\ref{sec:vocdoni-protocol:circuits:batch}), proven by a sequencer in a \ac{zkVM}, verifies a batch of votes, applies it to the state tree, and lays out the published data, producing the single proof that is verified on-chain for each state transition; and the \emph{results program} (Section~\ref{sec:vocdoni-protocol:circuits:results}) proves that the election results were correctly decrypted from the final state. The ballot circuit is an arithmetic circuit proven with Groth16, small enough to be proven on a voter's device. The two programs are Rust programs compiled to RISC-V and proven with the ZisK \ac{zkVM}, whose proofs are verified on-chain by the \hlget{\ziskverifier} contract (see Section~\ref{sec:background:zkp}). The flow of these proofs and their interactions is shown in Fig.~\ref{fig:circuits-flow}. + \begin{figure}[h] \centerline{\includegraphics[width=\linewidth,draft=false]{\figs/circuits-flow.pdf}} - \caption{ - Flow of the voter and sequencers circuits.} + \caption{Flow of the voter's circuit and the sequencer's \ac{zkVM} programs.} \label{fig:circuits-flow} \end{figure} + +The batch program replaces the pipeline of a verifier circuit, an aggregation circuit, and a state transition circuit used by an earlier design of \davinci. The statement is the same in spirit, but writing it as one program removes the need for recursion over several curves and makes it possible to prove properties that are impractical in circuits, such as the reconstruction of the published blob data from the verified state. A \ac{zkVM} program differs from a circuit in one respect that the protocol must account for: the program always runs to completion and commits its public values, including a flag that reports whether every check passed. A proof of the batch program is therefore only meaningful together with the flag, and the registry rejects any proof whose flag is not set (see Section~\ref{sec:vocdoni-protocol:circuits:batch}). \begin{remark} -For clarity, the circuits are described in this section with their full set of public inputs explicitly listed. In the actual implementation, however, we apply an optimization: rather than exposing all public inputs $\publicinputs$ individually, we compute a single commitment $h = \hlget{\Poseidon}(\publicinputs)$ and use $h$ as the only public input. The proof verifier then checks that $\hlget{\Poseidon}(\publicinputs) = h$, ensuring that the original public inputs are consistent while reducing both proof size and verification cost. Note that this optimization does not alter the semantics of the circuits but significantly reduces verifier complexity and on-chain verification costs. Other implementation aspects such as the exact number of constraints and the proving frameworks used are deferred to Section~\ref{sec:analysis:implementation}. +For clarity, the statements are described in this section with their full set of inputs and outputs explicitly listed. In the actual implementation, the ballot circuit applies an optimization: rather than exposing all of its public inputs $\publicinputs$ individually, it exposes the voter's address, the vote identifier, and a single commitment $\ballotinputshash = \hlget{\Poseidon}(\publicinputs)$ to all the inputs that the batch program must bind (see the multi-input Poseidon construction in Appendix~\ref{sec:cryptographic-primitives:hash}). The batch program recomputes the commitment from the values it uses and checks that it matches the one proven by the voter. This optimization does not alter the semantics of the circuit but significantly reduces the cost of verifying ballot proofs. Similarly, the public values of the \ac{zkVM} programs reach the ZisK verifier as a single SHA-256 digest. Other implementation aspects such as the exact number of constraints and the proving frameworks used are deferred to Section~\ref{sec:analysis:implementation}. \end{remark} -% Old text: By structuring the process this way, we ensure that voting can be performed from any device-including smartphones and web browsers-while keeping the sequencer's computational requirements within the capabilities of accessible, CPU-based machines with 64 GiB of memory. - -\subsubsection{Ballot circuit} +\subsubsection{Ballot circuit} \label{sec:vocdoni-protocol:circuits:ballot} -The ballot circuit (\hlset{\ballotcircuit}), illustrated in Fig.~\ref{fig:circuit-ballot}, is generated locally by the voter at the time of casting a ballot. Its purpose is twofold: first, to prove that the encrypted ballot is valid and complies with the protocol rules defined by the organizer; and second, to prove that the vote identifier (\voteid) has been correctly derived. The correctness of this circuit is attested by a \ac{ZK} proof generated using the \ac{ZK-SNARK} protocol described in Appendix~\ref{sec:cryptographic-primitives:zkp}, instantiated over the BN254 curve. We call the resulting proof \textit{ballot proof} and denote it as $\hlset{\ballotproof}$. We detail below the inputs and constraints of the ballot circuit. +The ballot circuit (\hlset{\ballotcircuit}), illustrated in Fig.~\ref{fig:circuit-ballot}, is proven locally by the voter at the time of casting a ballot. Its purpose is twofold: first, to prove that the encrypted ballot is valid and complies with the protocol rules defined by the organizer; and second, to prove that the vote identifier (\voteid) has been correctly derived. The correctness of this circuit is attested by a \ac{ZK} proof generated using the Groth16 protocol described in Appendix~\ref{sec:cryptographic-primitives:zkp}, instantiated over the BN254 curve. We call the resulting proof \textit{ballot proof} and denote it as $\hlset{\ballotproof}$. The circuit is compiled for the maximum number of ballot fields, $16$; ballots with fewer fields leave the remaining ones unconstrained here, and the batch program requires their ciphertexts to be the identity. We detail below the inputs and constraints of the ballot circuit. -%\begin{spacing}{1.25} \vspace{0.3cm} \noi \textbf{Public inputs} \begin{itemize} - \item $\public$ $\processid$: election identifier. - \item $\public$ $\ballotmode$: ballot protocol configuration. - \item $\public$ $\epk$: encryption public key. \item $\public$ $\address$: voter's address. - \item $\public$ $\weight$: voter's weight. - \item $\public$ $\encryptedballot$: encrypted ballot. - \item $\public$ $\voteid$: vote's unique identifier. + \item $\public$ $\voteid$: vote's unique identifier. + \item $\public$ $\ballotinputshash$: commitment to the inputs that the batch program binds, namely $\processid$, $\ballotmode$, $\epk$, $\address$, $\voteid$, $\encryptedballot$, and $\weight$. \end{itemize} \textbf{Private inputs} - \begin{itemize} - \item \private $\ballot$: voter's voting choice. + \begin{itemize} + \item \private $\processid$: election identifier. + \item \private $\ballotmode$: ballot protocol configuration, packed as in the state tree. + \item \private $\epk$: encryption public key. + \item \private $\weight$: voter's weight. + \item \private $\encryptedballot$: encrypted ballot, i.e., one ElGamal ciphertext per ballot field. + \item \private $\ballot$: voter's voting choice, i.e., one value per ballot field. \item \private $k$: random scalar. \end{itemize} \textbf{Constraints} - \begin{itemize} - \item \emph{Vote encryption}. Correct encryption of the ballot: \[\encryptedballot = \hlget{\Enc}_{\epk}(\ballot; k).\] - \item \emph{Protocol rules compliance}. The voter's ballot meets the protocol rules (see Section~\ref{sec:ballot-protocol}): + \begin{itemize} + \item \emph{Inputs commitment}. The commitment is computed over the inputs in a fixed order: + \begin{align*}\ballotinputshash = \hlget{\Poseidon}(&\processid, \ballotmode, \epk, \address,\\ &\voteid, \encryptedballot, \weight).\end{align*} + \item \emph{Vote encryption}. Correct encryption of the ballot. Every field $j \in \{1,\dots,\numfields\}$ is encrypted with its own randomness, derived from $k$ by iterated hashing: + \[k_0 = k, \qquad k_j = \hlget{\Poseidon}(k_{j-1}), \qquad \encryptedballot_j = \hlget{\Enc}_{\epk}(\ballot_j; k_j).\] + \item \emph{Encryption key}. The key $\epk$ lies in the prime-order subgroup of BabyJubjub and is not the identity. + \item \emph{Protocol rules compliance}. The voter's ballot meets the protocol rules (see Section~\ref{sec:ballot-protocol}): \[\text{protocolRulesCompliance}(\ballotmode, \weight, \ballot) = \true.\] - \item \emph{Vote identifier}. The vote's identifier is correctly computed (by default, $N= 2^{63}$, see Section~\ref{sec:vocdoni-protocol:state-tree}): -% \[\voteid = \text{Hash} (\processid \conc \address \conc k).\] + \item \emph{Vote identifier}. The vote's identifier is correctly computed ($N = 2^{63}$, see Section~\ref{sec:vocdoni-protocol:state-tree}): \[\voteid = N + \bigl(\hlget{\Poseidon}(\processid,\address,k) \bmod N\bigr).\] \end{itemize} \vspace{-0.3cm} -%\end{spacing} \begin{figure}[H] - \centerline{\includegraphics[width=380pt,draft=false]{\figs/circuit1.pdf}} - \caption{Ballot circuit. All public values are framed in green.} + \centerline{\includegraphics[width=\linewidth,draft=false]{\figs/circuit1.pdf}} + \caption{Ballot circuit. Public values are framed in green and private values in red.} \label{fig:circuit-ballot} \end{figure} -\subsubsection{Verifier circuit} -\label{sec:vocdoni-protocol:circuits:verifier} +\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. -The verifier circuit (\hlset{\verifiercircuit}), illustrated in Fig.~\ref{fig:circuit-verifier}, is generated by the sequencer when processing a vote. This circuit verifies the ballot's proof generated by the voter and the correctness of their digital signature. The correctness of this circuit is attested by a ZK proof generated using the ZK-SNARK protocol described in Section~\ref{sec:cryptographic-primitives:zkp}, instantiated over the BLS12-377 curve. We call the resulting proof the \textit{authentication proof} and denote it as $\hlset{\authenticationproof}$. We detail below the inputs and constraints of this circuit. +\subsubsection{Batch program} +\label{sec:vocdoni-protocol:circuits:batch} -%\begin{spacing}{1.25} - \vspace{0.3cm} - \noi \textbf{Public inputs} - \begin{itemize} - \item \public $\processid$: election identifier. - \item \public $\ballotmode$: ballot protocol configuration. - \item \public $\epk$: encryption public key. - \item \public $\encryptedballot$: encrypted ballot. - \item \public $\voteid$: vote's unique identifier. - \item \public $\address$: voter's address. - \item \public $\weight$: voter's weight. - \end{itemize} -% \pagebreak - \textbf{Private inputs} - \begin{itemize} - \item \private $\pk$: voter's public key. - \item \private $\signature$: voter's signature. - \item \private $\ballotproof$: voter's ballot proof. - \end{itemize} - \textbf{Constraints} - \begin{itemize} - \item \emph{Authentication + non-malleability.} The voter submitted and signed their vote. - \begin{itemize} - \renewcommand{\labelitemii}{$\circ$} - \item The signature of the vote's identifier is valid for the given public key: - $$ \hlget{\SVer}_{\pk}(\voteid, \signature) = \true. $$ - \item The address is correctly derived from the user's public key: - $$\address = \hlget{\Keccak}(\pk).$$ - \end{itemize} - \item \emph{Voter's proof verification.} The voter's submitted proof is valid for the inputs provided. - \begin{itemize} - \renewcommand{\labelitemii}{$\circ$} - \item Set public inputs: - \begin{align*} - \publicinputs = (\processid, \ballotmode, \epk, \encryptedballot, - \voteid, \weight, \address). - \end{align*} - \item Verify proof: - $$\hlget{\PVerify}(\ballotproof, \publicinputs) = \true.$$ - \end{itemize} - \end{itemize} - \vspace{-0.3cm} -%\end{spacing} +The batch program (\hlset{\batchprogram}), illustrated in Fig.~\ref{fig:batch-program}, is executed by the sequencer to update the global state of the election with a batch of votes. Its purpose is to verify that every vote in the batch is valid, authenticated, and cast by an eligible voter; that the batch has been correctly incorporated into the state Merkle tree, with overwrites and vote identifiers handled consistently; that every stored ballot is a correct reencryption of the ballot the voter proved; that a sample of other stored ballots has been silently reencrypted; that the encrypted results accumulator is updated accordingly; and that the data published in Ethereum blobs is exactly the data needed to rebuild the new state. The correctness of an execution is attested by a ZisK proof wrapped in PlonK over BN254, which we call the \textit{batch proof} and denote as $\hlset{\batchproof}$. It is submitted on-chain and verified by the \hlget{\processregistry} smart contract, ensuring that every accepted state transition complies with the protocol rules. -\begin{figure}[H] - \centerline{\includegraphics[width=450pt,draft=false]{\figs/circuit2.pdf}} - \caption{Authentication circuit. All public values are framed in green.} - \label{fig:circuit-verifier} -\end{figure} +To formalize the setting, let the sequencer collect a batch of $n$ votes, $1 \le n \le 1024$, of which $w$ overwrite a ballot already stored in the state and $n - w$ are the first ballot of their voter. In addition, the sequencer selects a set $\mathcal{R}$ of $r \le 2048$ occupied slots, not written by the batch, whose ballots it reencrypts. Each ballot consists of $16$ ElGamal ciphertexts over BabyJubjub, of which the first $n_f = \numfields$ are active and the rest are the identity. We write $B_i$ for the encrypted ballot proven by voter $i$, $B'_i$ for its reencryption, and $B^\old_i$ for the stored ballot that it overwrites, if any; $R_j$ and $R'_j$ for the stored ballot of the $j$-th refreshed slot and its reencryption; and $A$ for the results accumulator \encresults. A ballot is a vector of 16 ciphertexts, and $B_{i,f}$ denotes its $f$-th ciphertext. In the following, we describe the public outputs, the private inputs, and the constraints of the batch program. The private inputs are organized as the program reads them, in five blocks: ballot proofs, state transition, eligibility, reencryption, and blobs. -\subsubsection{Aggregation circuit} -\label{sec:vocdoni-protocol:circuits:aggregation} - -The aggregation circuit (\hlset{\aggregationcircuit}), illustrated in Fig.~\ref{fig:circuit-aggregate}, is generated by the sequencer to combine multiple authenticated votes into a single proof. Its purpose is to reduce verification overhead by recursively aggregating individual authentication proofs, while ensuring that all aggregated votes belong to the same election. The batch size ($\batchsize$), i.e., the maximum number of proofs aggregated in a single execution, is a fixed parameter (currently set to 60). If fewer proofs are available, the sequencer pads the batch with dummy proofs so that the circuit always operates on a fixed-size input. The correctness of this circuit is attested by a ZK proof generated using the \ac{ZK-SNARK} protocol described in Appendix~\ref{sec:cryptographic-primitives:zkp}, instantiated over the BW6-761 curve. We call the resulting proof the \textit{aggregation proof} and denote it as $\hlset{\aggregationproof}$. We detail below the inputs and constraints of the aggregation circuit. - -%\begin{spacing}{1.25} \vspace{0.3cm} - \noi \textbf{Public inputs} + \noi \textbf{Public outputs} \begin{itemize} - \item \public $\{\encryptedballot_i\}_{i=1}^{\batchsize}$: set of voters' encrypted ballots. - \item \public $\{\voteid_i\}_{i=1}^{\batchsize}$: set of vote identifiers. - \item \public $\{\address_i\}_{i=1}^{\batchsize}$: set of voters' addresses. - \item \public $\processid$: election identifier. - \item \public $\ballotmode$: ballot protocol configuration. - \item \public $\epk$: encryption public key. - \end{itemize} - \textbf{Private inputs} - \begin{itemize} - \item \private $\{\authenticationproof_i\}_{i=1}^{\batchsize}$: set of authentication proofs. - \end{itemize} - \textbf{Constraints} \\ \vspace{-0.4cm} - \begin{itemize} - \item \emph{Votes aggregation.} The accumulated authentication proofs are valid. For every $i\in\{1,\dots,\batchsize\}$: - \begin{itemize} - \renewcommand{\labelitemii}{$\circ$} - \item Set public inputs: - \begin{align*} - \publicinputs = (\encryptedballot_i, \voteid_i, \address_i, \weight_i, \processid, \ballotmode, \epk). - \end{align*} - \item Verify proof: - $$\hlget{\PVerify}(\authenticationproof_i, \publicinputs) = \true.$$ - \end{itemize} - \item \emph{Shared public inputs.} All authentication proofs are verified using the same public inputs \processid, \ballotmode, and \epk. - \end{itemize} - \vspace{-0.3cm} -%\end{spacing} - -\begin{figure}[h] - \centerline{\includegraphics[width=400pt,draft=false]{\figs/circuit3.pdf}} - \caption{Aggregation circuit. All public values are framed in green.} - \label{fig:circuit-aggregate} -\end{figure} - -\vspace{-0.5cm} -\subsubsection{State transition circuit} -\label{sec:vocdoni-protocol:circuits:state-transition} - -The state transition circuit (\hlset{\statetransitioncircuit}), illustrated in Fig.~\ref{fig:circuit-state-transition-v2}, is generated by the sequencer to update the global state of the election. Its purpose is to verify that a batch of aggregated votes has been correctly incorporated into the state Merkle tree, that overwrites and vote identifiers are handled consistently, that the accumulators of encrypted results are updated accordingly, that each included vote corresponds to an eligible voter included in the census, and that the state transition data used by the sequencer matches the data made available through Ethereum data blobs. The correctness of this circuit is attested by a \ac{ZK} proof generated using the \ac{ZK-SNARK} protocol described in Appendix~\ref{sec:cryptographic-primitives:zkp}, instantiated over the BN254 curve, which is supported by Ethereum’s native precompiles for proof verification. We call the resulting proof the \textit{state proof} and denote it as $\hlset{\stateproof}$. It is submitted on-chain and verified by the process management smart contract, ensuring that every accepted state transition complies with the protocol rules. - -To formalize the setting, let the sequencer collect a batch of $N$ votes ($N\leq60$), of which $n$ are new vote submissions and $m = N-n$ are overwrites of previously cast ballots. Without loss of generality, we assume that the batch is ordered such that the first $n$ votes correspond to new submissions, and the remaining $m$ votes correspond to overwrites. In the following, we describe the inputs and constraints of the state transition circuit in detail. - -%\begin{spacing}{1.25} - \vspace{0.3cm} - \noi \textbf{Public inputs} - \begin{itemize} - \item \public $\censusroot$: Merkle root of the census tree. + \item \public $\okflag$, $\failmask$: whether every constraint below holds, and a bit mask of the groups of constraints that failed. \item \public $\stateroot^\old$: current Merkle root of the state tree. \item \public $\stateroot^\new$: new tree root after all state transitions are applied. - \item \public $\numoverwrites^\old$: current number of overwrites. - \item \public $\numoverwrites^\new$: number of overwrites after all state transitions are applied. - \item \public $\numvotes^\old$: current number of votes. - \item \public $\numvotes^\new$: total number of votes after all state transitions are applied. - \item \public $C$: commitment to the data blob. + \item \public $\numvotes$: number of votes in the batch, $n$. + \item \public $\numoverwrites$: number of votes in the batch that overwrite a stored ballot, $w$. + \item \public $\censusroot$: root of the census tree used by the membership proofs or, for a \ac{CSP} census, the address of the \ac{CSP}. + \item \public $\occupiedbefore$: number of occupied ballot slots before the batch. + \item \public $\blobsdigest$, $\nblobs$: digest of the blob commitments and evaluations, and number of blobs. \end{itemize} \textbf{Private inputs} - \begin{itemize} - \item \private $\processid$: election identifier. - \item \private $\censusorigin$: census origin parameter. - \item \private $\ballotmode$: ballot protocol configuration. - \item \private $\epk$: encryption public key. - \item \private $\encresults^\old$: current accumulator of votes (before transitions are applied). \\ -% \item \private $\substractaccumulator^\old$: current accumulator of votes that have been overwritten (before transitions). \\ + \begin{itemize} + \item \private $\mathsf{vk}$: verification key of the ballot circuit. + \item \private $\{\ballotproof_i, \address_i, \voteid_i, \ballotinputshash_i, \signature_i\}_{i=1}^{n}$: ballot proofs with their public inputs, and the voters' signatures.\\ % - \item \private $\{\aggregationproof_i\}_{i = 1}^{N}$: set of aggregation proofs. - \item \private $\{\censuspf_i\}_{i = 1}^N$: census membership proofs. - % - \item \private $\{\voteid_i\}_{i = 1}^{N}$: set of vote's identifiers. - \item \private $\{\encryptedballot_i\}_{i = 1}^{N}$: set of voters' encrypted ballots. - \item \private $\{\encryptedballot_i^\old\}_{i = n+1}^{N}$: set of all old encrypted ballots that will be overwritten. - \item \private $\{\address_i\}_{i = 1}^{N}$: list of voters' addresses. - \item \private $\{\weight_i\}_{i = 1}^{N}$: list of voters' weights. \\ + \item \private $\processid$: election identifier. + \item \private $\{\merkleInclusionPf^{\kappa}\}_{\kappa \in \{\texttt{0x0}, \texttt{0x2}, \texttt{0x3}, \texttt{0x6}, \texttt{0x7}\}}$: inclusion proofs of the configuration leaves \processid, \ballotmode, \epk, \censusorigin, and \ballotvkhash under $\stateroot^\old$. + \item \private $\{\tau^{\voteid}_i\}_{i=1}^{n}$, $\{\tau^{\encryptedballot}_i\}_{i=1}^{n}$, $\{\tau^{\mathcal{R}}_j\}_{j=1}^{r}$, $\tau^{\encresults}$: chains of tree transitions that insert the vote identifiers, write the ballots, refresh the sample, and update the results accumulator (see below). + \item \private $\{\reencryptedballot_i\}_{i=1}^{n}$: the reencrypted ballots written to the voters' slots. + \item \private $\{\encryptedballot_i^\old\}$: the $w$ stored ballots that the batch overwrites. + \item \private $\{\encryptedballot^{\mathcal{R}}_j\}_{j=1}^{r}$: the stored ballots of the refreshed slots. + \item \private $\encresults^\old$: current accumulator of votes. \\ % - \item \private $\merkleInclusionPf^{\processid}$: proof that $\processid$ is stored in leaf $\texttt{0x0}$ of the state tree. - \item \private $\merkleInclusionPf^{\ballotmode}$: proof that $\ballotmode$ is stored in leaf $\texttt{0x2}$ of the state tree. - \item \private $\merkleInclusionPf^{\epk}$: proof that $\epk$ is stored in leaf $\texttt{0x3}$ of the state tree. - \item \private $\merkleInclusionPf^{\encresults}$: proof that $\encresults^\old$ is in leaf $\texttt{0x4}$ of the state tree. - \item \private $\merkleInclusionPf^{\censusorigin}$: proof that $\censusorigin$ is stored in leaf $\texttt{0x6}$ of the tree.\\ + \item \private $\{\censuspf_i\}_{i=1}^{n}$: census membership proofs (Merkle paths, or \ac{CSP} signatures with their indexes and weights).\\ % - \item \private $\{\merkleNInclusionPf^{\encryptedballot}_i\}_{i = 1}^{n}$: proof that the leaf corresponding to a voter's $\address_i$ that submits a new vote is empty. - \item \private $\{\merkleInclusionPf^{\encryptedballot}_i\}_{i = n+1}^{N}$: proof that the vote $\encryptedballot_i^\old$ is stored in the leaf corresponding to a voter's $\address$ that submits the vote overwrite $\encryptedballot_i$. - \item \private $\{\merkleNInclusionPf^{\voteid}_i\}_{i= 1}^{N}$: non-membership proofs of vote identifiers.\\ + \item \private $\epk$: encryption public key. + \item \private $\seed$: secret seed of the batch, from which all reencryption randomness is derived. + \item \private $\{\encryptedballot_i\}_{i=1}^{n}$: the voters' encrypted ballots, as proven.\\ % - \item \private $k$: random scalar. - \item \private $\openproof$: KZG opening proof. + \item \private $\{\blobcom_b\}_{b=1}^{\nblobs}$: \ac{KZG} commitments to the blobs. \end{itemize} - \textbf{Constraints} \\ \vspace{-0.4cm} + \textbf{Constraints} \\ \vspace{-0.4cm} \begin{itemize} - \item \emph{Aggregation verification.} The accumulated authentication proofs are valid. For every $i\in\{1,\dots,N\}$: + \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$, and that all proof points are on their curves. 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 a transcript $T$ of all proofs and public inputs, 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 + $$\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: + $$\pk_i = \hlget{\SPubKey}(\voteid_i, \signature_i), \qquad \address_i = \mathsf{low\text{-}20}\bigl(\hlget{\Keccak}(\pk_i)\bigr).$$ + % + \item \emph{Census membership.} Each processed vote must correspond to an eligible voter, according to the census configuration specified by the parameter \censusorigin. \begin{itemize} - \renewcommand{\labelitemii}{$\circ$} - \item Set public inputs: - \begin{align*} - \publicinputs = (\weight_i, \address_i, \encryptedballot_i, \voteid_i, \ballotmode, \epk, \processid). - \end{align*} - \item Verify proof: - $$\hlget{\PVerify}(\aggregationproof_i, \publicinputs) = \true.$$ - \end{itemize} - \item \emph{Census membership.} Each processed vote must correspond to an eligible voter, according to the census configuration specified by the parameter \texttt{censusOrigin}. - \begin{itemize} - \item If \texttt{censusOrigin} = CSP, then verify a signature issued by the CSP. Concretely, for all $i \in \{1,\dots,N\}$: + \item If the census is a Merkle tree ($\censusorigin \in \{1,2,3\}$), then for every $i$ the program verifies a Merkle membership proof of the leaf $\address_i \cdot 2^{88} + \weight_i$ (Eq.~\eqref{eq:census-leaf}), \[ - \hlget{\SVer}_{\censusroot}\big((\processid, \idx_i, \address_i, \weight_i), \censuspf_i\big) = \true, + \hlget{\censusTree}.\hlget{\MTVerify}\big(\address_i \cdot 2^{88} + \weight_i, \censuspf_i, \censusroot\big) = \true, \] - where \(\censusroot\) contains the CSP public key and \(\censuspf_i\) is the eligibility signature attesting that voter \(i\) belongs to the census with the given weight. - - \item Otherwise, if the census is represented by an \ac{IMT}, the circuit verifies a Merkle membership proof showing that the pair \((\address_i, \weight_i)\) is included in the committed census. For all $i \in \{1,\dots,N\}$: - \[ - \hlget{\censusTree}.\hlget{\MTVerify}\big((\address_i, \weight_i), \idx_i, \censuspf_i, \censusroot\big) = \true. - \] + all proofs share the same root, which is published as \censusroot, no leaf appears twice, and every path has a canonical shape (at most 61 siblings, and no index bit beyond the path length). + \item If $\censusorigin = 4$ (\ac{CSP}), then for every $i$ the program recovers a public key from the credential over the message of Eq.~\eqref{eq:csp-message} and requires all credentials of the batch to recover the same key, whose address is published as \censusroot: + \begin{gather*} + \pk^{\mathsf{CSP}} = \hlget{\SPubKey}\big((\processid, \address_i, \weight_i, \idx_i), \censuspf_i\big),\\ \censusroot = \mathsf{low\text{-}20}\bigl(\hlget{\Keccak}(\pk^{\mathsf{CSP}})\bigr). + \end{gather*} + Addresses must be canonical 160-bit integers, and no address and no index may appear twice in the batch. \end{itemize} + \item \emph{Binding.} The values used by the different checks are the same. For every $i$, the address of the census leaf (or credential) equals $\address_i$; the commitment recomputed from the values used below equals the one proven by the voter, + \[\ballotinputshash_i = \hlget{\Poseidon}(\processid, \ballotmode, \epk, \address_i, \voteid_i, B_i, \weight_i);\] + and the ballot written to the voter's slot is the reencryption computed below. The election key is the one committed in the state: $\Sha(\epk_{x,\text{BE32}} \conc \epk_{y,\text{BE32}})$ equals the value of leaf \texttt{0x3}. Finally, the blob block refers to the same \processid and $\stateroot^\old$ as the state block. % - \item \emph{Transition verification.} Verify that the initial state and the state transition updates are applied correctly. - \begin{itemize} - \renewcommand{\labelitemii}{$\circ$} - \item Verify that the inputs $\processid$, $\ballotmode$, $\epk$, $\encresults^\old$, and $\censusorigin$ correspond to the content of the first state tree leaves. - \begin{align*} - &\hlget{\stateTree}.\hlget{\MTVerify}(\processid, \texttt{0x0}, \merkleInclusionPf^{\processid}, \stateroot^\old). \\ - &\hlget{\stateTree}.\hlget{\MTVerify}(\ballotmode, \texttt{0x2}, \merkleInclusionPf^{\ballotmode}, \stateroot^\old). \\ - &\hlget{\stateTree}.\hlget{\MTVerify}(\epk, \texttt{0x3}, \merkleInclusionPf^{\epk}, \stateroot^\old). \\ - &\hlget{\stateTree}.\hlget{\MTVerify}(\encresults^\old, \texttt{0x4}, \merkleInclusionPf^{\encresults}, \stateroot^\old). \\ - &\hlget{\stateTree}.\hlget{\MTVerify}(\censusorigin, \texttt{0x6}, \merkleInclusionPf^{\censusorigin}, \stateroot^\old). - \end{align*} - \item Verify that none of the $\voteid_i$ for all $i\in\{1,\dots,N\}$ are initially part of the tree: - \[\hlget{\stateTree}.\hlget{\MTVerify}(\voteid_i, \merkleNInclusionPf^{\voteid}_i, \stateroot^\old).\] - \item Ensure that new votes are not part of the tree yet. For $i = 1, \dots, n$: - \[\hlget{\stateTree}.\hlget{\MTVerify}(\address_i, \merkleNInclusionPf^{\encryptedballot}_i, \stateroot^\old).\] - \item Ensure that overwrites do correspond to votes that were already on the tree. For $i = 1, \dots, m$: - \[\hlget{\stateTree}.\hlget{\MTVerify}(\encryptedballot_i^\old, \address_i, \merkleInclusionPf^{\encryptedballot}_i, \stateroot^\old).\] - \item State transitions. - \begin{itemize} - \item For every new vote $i = 1, \dots, n$: - \begin{enumerate} - \item After every use, refresh reencryption randomness: $k = \hlget{\Poseidon}(k).$ - \item Reencrypt the ballot: - $\encryptedballot_i = \hlget{\ReEnc}_{\epk}(\encryptedballot_i, k).$ - \item Add reencrypted ballot to the tree: $\hlget{\stateTree}.\hlget{\MTInsert}(\encryptedballot_i, \address_i)$. - \item Add vote identifier to the tree: $\hlget{\stateTree}.\hlget{\MTInsert}(\voteid_i)$. - \item Increase votes counter: $\numvotes = \numvotes + 1$. - \item Aggregate the vote to the results accumulator: $\encresults = \encresults + \encryptedballot_i$. - \end{enumerate} - \item For every overwritten vote $i = n+1, \dots, N$: - \begin{enumerate} - \item After every use, refresh reencryption randomness: $k = \hlget{\Poseidon}(k).$ - \item Reencrypt the ballot: - $\encryptedballot_i = \hlget{\ReEnc}_{\epk}(\encryptedballot_i, k).$ - \item Overwrite the encrypted ballot: $\hlget{\stateTree}.\hlget{\MTUpdate}(\encryptedballot_i, \address_i)$. - \item Add vote identifier: $\hlget{\stateTree}.\hlget{\MTInsert}(\voteid_i)$. - \item Increase votes counter: $\numvotes = \numvotes + 1$. - \item Increase overwrites counter: $\numoverwrites = \numoverwrites + 1$. -% \item Aggregate the vote to the results accumulator: $\encresults = \encresults + \encryptedballot_i$. - \item Substract the old ballot from the results accumulator and aggregate the new one:\\ $\encresults = \encresults - \encryptedballot^\old_i + \encryptedballot_i$. - \end{enumerate} - \end{itemize} - \item After all previous state transitions are done, recompute new tree root: - \[\stateroot^\new = \hlget{\stateTree}.\hlget{\MTRoot}().\] - \item Reencrypt a set of old leafs from the tree: first, very their Merkle tree inclusion proofs, then reencrypt them, and finally update each leaf's content. - \end{itemize} - \item \emph{Data blob}. + \item \emph{Configuration.} The configuration of the election is read from the current state. The program verifies the inclusion proofs of the five configuration leaves under $\stateroot^\old$, in the order \texttt{0x0}, \texttt{0x2}, \texttt{0x3}, \texttt{0x6}, \texttt{0x7}, and requires the value of leaf \texttt{0x0} to be the \processid of the state block: + \[\hlget{\stateTree}.\hlget{\MTVerify}(v_\kappa, \kappa, \merkleInclusionPf^{\kappa}, \stateroot^\old) = \true, \qquad \kappa \in \{\texttt{0x0}, \texttt{0x2}, \texttt{0x3}, \texttt{0x6}, \texttt{0x7}\}.\] + The number of active fields $n_f$ is read from the packed \ballotmode and must lie in $[1, 16]$. + % + \item \emph{Key namespaces.} Every vote identifier lies in the vote identifier namespace, $N \le \voteid_i < 2^{64}$, and every ballot is written to its voter's slot, which lies in the ballot namespace: $\slot_i = \slot(\address_i)$ (Eq.~\eqref{eq:slot}) for a Merkle census, or $\slot_i = 16 + \idx_i$ for a \ac{CSP} census. The slots of a batch are pairwise distinct. + % + \item \emph{Transition verification.} The state evolves from $\stateroot^\old$ to $\stateroot^\new$ through a contiguous chain of tree transitions, in this order (see Fig.~\ref{fig:smt-chain}), where each transition is a valid insertion or update proven against the root left by the previous one, and the last one ends at $\stateroot^\new$: + \begin{enumerate} + \item For every vote $i = 1,\dots,n$, insert the vote identifier with value zero: $\hlget{\stateTree}.\hlget{\MTInsert}(\voteid_i, 0)$. An insertion of a key already present fails, so a vote identifier can never be reused. + \item For every vote $i = 1,\dots,n$, write the ballot digest to the voter's slot, with an insertion if the slot is empty and an update if it is occupied: + \[\hlget{\stateTree}.\hlget{\MTInsert}\bigl(\slot_i, \Sha(B'_i)\bigr) \quad \text{or} \quad \hlget{\stateTree}.\hlget{\MTUpdate}\bigl(\slot_i, \Sha(B'_i)\bigr).\] The number of updates is exactly $w$, and the value replaced by each update is $\Sha(B^\old_i)$. + \item For every refreshed slot $j = 1,\dots,r$, in strictly increasing order of slots, + \[\hlget{\stateTree}.\hlget{\MTUpdate}\bigl(\slot^{\mathcal{R}}_j, \Sha(R'_j)\bigr),\] + where the replaced value is $\Sha(R_j)$. The refreshed slots are occupied, distinct, and disjoint from the slots written in step 2. + \item Update the accumulator: $\hlget{\stateTree}.\hlget{\MTUpdate}(\texttt{0x4}, \Sha(A^\new))$, where the replaced value is $\Sha(A^\old)$. This update is present if and only if the batch writes or refreshes at least one ballot. + \end{enumerate} + % + \item \emph{Reencryption.} Every ballot written to the tree is a reencryption of its source, with randomness derived from the secret seed. The program derives a chain of scalars from the seed and the current root, + \[ r_0 = \Sha(\texttt{"davinci-reenc-v1"} \conc \seed \conc \stateroot^\old) \bmod s, \qquad r_{t+1} = \Sha(r_t) \bmod s, \] + where $s$ is the order of the BN254 scalar field (the base field of BabyJubjub), and consumes one scalar per active ciphertext, first through the $n$ voters' ballots and then through the $r$ refreshed ballots, field by field (see Fig.~\ref{fig:reencryption}). A ciphertext $(C_1, C_2)$ that consumes $r_t$ becomes $(C_1 + r_t \cdot \BJ{G},\ C_2 + r_t \cdot \epk)$, that is, + \[B'_{i,f} = \hlget{\ReEnc}_{\epk}(B_{i,f}; r_t), \qquad R'_{j,f} = \hlget{\ReEnc}_{\epk}(R_{j,f}; r_{t'}).\] + Inactive fields must be the identity, before and after, in every ballot. The key $\epk$ must be on the curve, not the identity, and in the prime-order subgroup. + % + \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}^{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 + \[ 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. \begin{itemize} - \item From all leaves that changed after the state transitions in the $\hlget{\stateTree}$ tree, construct blob $B$. - %(as described in Section~{\color{blue}X}) - \item Derive polynomial $p(x)$ from $B$. - \item Compute evaluation point - \( z = \hlget{\Poseidon}(\processid, C, \openproof) \). - \item Compute evaluation \(y = p(z)\). - \item Verify - \(\hlget{\CVerify}(z, y, C, \openproof) = \true.\)\\ - \end{itemize} + \item From the vote identifiers and from every slot written or refreshed by the batch, with its new ballot, construct the blob cells as described in Section~\ref{sec:vocdoni-protocol:circuits:blobs}, and split them into $\nblobs = \lceil T / 4096 \rceil$ blobs, where $T$ is the number of cells. The number of commitments must be $\nblobs$, with $1 \le \nblobs \le 32$. + \item For every blob $b$, derive the polynomial $p_b(x)$ whose evaluations over the blob domain are the cells of the blob. + \item Compute the evaluation point from the commitment and the election context, + \[ z_b = \Sha\bigl(\processid_{\text{BE32}} \conc \stateroot^\old_{\text{BE32}} \conc \blobcom_b\bigr) \bmod q_{\mathsf{BLS}}, \] + where $q_{\mathsf{BLS}}$ is the order of the BLS12-381 scalar field. + \item Compute the evaluation \(y_b = p_b(z_b)\). + \item Output \( \blobsdigest = \Sha(\blobcom_1 \conc y_1 \conc \cdots \conc \blobcom_{\nblobs} \conc y_{\nblobs}) \). + \end{itemize} + The program does not verify the \ac{KZG} openings, which would require pairings over BLS12-381; the registry verifies them with the point-evaluation precompile, against the versioned hashes of the blobs actually published. \end{itemize} \vspace{-0.3cm} -%\end{spacing} + +\begin{figure}[h] + \centerline{\includegraphics[width=\linewidth,draft=false]{\figs/batch-program.pdf}} + \caption{Batch program. The private input blocks (left) feed the groups of constraints (center), which produce the public outputs (right). Private values are framed in red, public values in green.} + \label{fig:batch-program} +\end{figure} + +\begin{figure}[h] + \centerline{\includegraphics[width=\linewidth,draft=false]{\figs/smt-chain.pdf}} + \caption{Chain of state tree transitions proven by the batch program. Configuration leaves are read under the old root; then vote identifiers, ballots, refreshes, and the results accumulator are written in a fixed order, each transition starting from the root left by the previous one.} + \label{fig:smt-chain} +\end{figure} + +\begin{figure}[h] + \centerline{\includegraphics[width=\linewidth,draft=false]{\figs/reencryption.pdf}} + \caption{Reencryption in the batch program. A single secret seed and the old state root start a chain of scalars, each consumed by exactly one active ciphertext, first of the voters' ballots and then of the refreshed ballots. The accumulator absorbs the new ballots, the inverse of the overwritten ones, and the encryptions of zero introduced by the refreshes.} + \label{fig:reencryption} +\end{figure} -\begin{remark} - Splitting the sequencer computation into three circuits provides an important efficiency benefit. If the global $\stateroot$ changes while a sequencer is preparing a proof, only the last circuit must be re-run to reflect the updated state, avoiding the need to recompute all previous proofs. -\end{remark} +\paragraph{Verdict and public values.} Each group of constraints sets a bit of \failmask when it fails, and all groups are evaluated even after a failure, so the mask helps diagnose a rejected batch. The program sets $\okflag = 1$ if and only if every constraint holds. The public values form 46 32-bit words, laid out as in Table~\ref{tab:batch-outputs}; ZisK pads them to 64 words of 8 bytes each. The proof of an execution with $\okflag = 0$ is a valid proof of a rejected batch, so every consumer of a batch proof must check, besides the proof itself, that $\okflag = 1$ and $\failmask = 0$. -\begin{landscape} +\begin{table}[h] \centering - {\setkeys{Gin}{draft=false}%shows image even in draft mode - \includegraphics[width=\linewidth]{\figs/circuit4.pdf}} - \captionof{figure}{State transition circuit. All public values are framed in green.} - \label{fig:circuit-state-transition-v2} -\end{landscape} + \caption{Public values of the batch program, as 32-bit words. Roots and digests take eight words, in little-endian order.} + \label{tab:batch-outputs} + \small + \begin{tabular}{p{0.14\textwidth} p{0.27\textwidth} p{0.49\textwidth}} + \toprule + \textbf{Words} & \textbf{Name} & \textbf{Content} \\ + \midrule + 0, 1 & \okflag, \failmask & Verdict and failed groups of constraints. \\ + 2--9, 10--17 & $\stateroot^\old$, $\stateroot^\new$ & State roots before and after the batch. \\ + 18, 19 & \numvotes, \numoverwrites & Votes and overwrites in the batch. \\ + 20--27 & \censusroot & Census root, or \ac{CSP} address. \\ + 28--35, 36 & \blobsdigest, \nblobs & Digest of the $(\blobcom_b, y_b)$ pairs, and blob count. \\ + 42 & \occupiedbefore & Occupied ballot slots before the batch. \\ + 37--41, 43--45 & & Reserved (zero) and diagnostic values. \\ + \bottomrule + \end{tabular} +\end{table} + +\paragraph{Checks left to the verifier.} The batch program proves a transition from whatever root and census it is given. The binding of the proof to the right election, to the current state, and to the published data is performed by the registry when the proof is submitted (see Section~\ref{sec:vocdoni-protocol:flow:settlement}), which checks that: the proof is valid under the pinned program key and setup; $\okflag = 1$ and $\failmask = 0$; $\stateroot^\old$ is the latest root of the process; \censusroot is a root the election accepts (Table~\ref{tab:census-models}); \occupiedbefore equals the number of distinct slots written so far; the batch carries at least one vote; and every $(\blobcom_b, y_b)$ pair opens correctly against the versioned hash of the corresponding blob. -\subsubsection{Results circuit} +\paragraph{Blob layout.} +\label{sec:vocdoni-protocol:circuits:blobs} +The blobs of a state transition carry exactly the data an observer needs to rebuild the new state from the old one, and nothing else. Every cell is a 32-byte big-endian element of the BLS12-381 scalar field. The program lays out the cells as follows (see Fig.~\ref{fig:blob-layout}): +\begin{enumerate} + \item A header cell, $u + 2^{64} \cdot m$, where $m$ is the number of vote identifiers and $u$ the number of updated slots. + \item The list of the $m$ vote identifiers, in increasing order and without their most significant bit, followed by the list of the $u$ 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 +\[ +T = 1 + \bigl\lceil (m + u)/4 \bigr\rceil + 2\, n_f\, u, +\] +so, for instance, a batch of 512 new votes with 512 refreshes at $n_f = 16$ needs $1 + 384 + 32768 = 33153$ cells, that is, 9 blobs, and a batch of 512 overwrites, which requires 1024 refreshes, needs 13 blobs. + +\begin{figure}[h] + \centerline{\includegraphics[width=\linewidth,draft=false]{\figs/blob-layout.pdf}} + \caption{Layout of the cells of the blobs of a state transition.} + \label{fig:blob-layout} +\end{figure} + +\subsubsection{Results program} \label{sec:vocdoni-protocol:circuits:results} -%The results circuit (\hlset{\resultscircuit}), illustrated in Fig.~\ref{fig:circuit-results}, is -The results circuit (\hlset{\resultscircuit}) is generated at the end of the election, by the organizer or a sequencer, to prove that the published tally was correctly obtained from the encrypted results committed in the final state. Crucially, the circuit does not take the decryption key as input, nor does it decrypt inside the circuit: instead, for each ballot field it verifies a proof of correct decryption against the encryption public key that is committed in the state tree. The correctness of this circuit is attested by a \ac{ZK} proof generated using the \ac{ZK-SNARK} protocol described in Appendix~\ref{sec:cryptographic-primitives:zkp}, instantiated over the BN254 curve, so that it can be verified on-chain by the \hlget{\resultsverifier}\ contract using Ethereum's native precompiles. We call the resulting proof the \textit{results proof} and denote it as $\hlset{\resultsproof}$. We detail below the inputs and constraints of the results circuit. +The results program (\hlset{\resultsprogram}), illustrated in Fig.~\ref{fig:results-program}, is executed at the end of the election by the holder of the election key, when the key is held by a single sequencer, to prove that the published tally was correctly obtained from the encrypted results committed in the final state. Crucially, the program does not take the decryption key as input, nor does it decrypt inside the proof: instead, for each ballot field it verifies a proof of correct decryption against the encryption public key that is committed in the state tree. The correctness of an execution is attested by a ZisK proof wrapped in PlonK over BN254, verified on-chain by the \hlget{\processregistry} through the \hlget{\ziskverifier} contract. We call the resulting proof the \textit{results proof} and denote it as $\hlset{\resultsproof}$. Elections whose key is held by \keywardens do not use this program: the registry binds the accumulator to the final state root itself, and the \keywardens' contracts verify a proof of every partial decryption (see Section~\ref{sec:vocdoni-protocol:flow:results}). We detail below the inputs and constraints of the results program. -%\begin{spacing}{1.25} \vspace{0.3cm} - \noi \textbf{Public inputs} + \noi \textbf{Public outputs} \begin{itemize} + \item \public $\okflag$, $\failmask$: whether every constraint below holds, and the groups that failed. \item \public $\stateroot$: final root of the state tree. - \item \public $\{\text{results}_j\}_{j=1}^{n_f}$: decrypted tally, one entry per ballot field. + \item \public $\{\text{results}_j\}_{j=1}^{16}$: decrypted tally, one 64-bit entry per ballot field. \end{itemize} \textbf{Private inputs} \begin{itemize} - \item \private $\encresults$: encrypted results accumulator stored in the state ($n_f$ ElGamal ciphertexts). + \item \private $\encresults$: encrypted results accumulator stored in the state ($16$ ElGamal ciphertexts). \item \private $\epk$: encryption public key. \item \private $\merkleInclusionPf^{\encresults}$: proof that $\encresults$ is stored in leaf $\texttt{0x4}$ of the state tree. \item \private $\merkleInclusionPf^{\epk}$: proof that $\epk$ is stored in leaf $\texttt{0x3}$ of the state tree. - \item \private $\{\pi^{\mathrm{dec}}_j\}_{j=1}^{n_f}$: per-field proofs of correct decryption. + \item \private $\{\pi^{\mathrm{dec}}_j\}_{j=1}^{16}$: per-field Chaum--Pedersen proofs of correct decryption. \end{itemize} \textbf{Constraints} \begin{itemize} + \item \emph{Canonical encodings}. Every coordinate is below the field order and every proof scalar below the subgroup order, so that each point and scalar has a single encoding. + \item \emph{Encryption key}. The key $\epk$ is on the curve, not the identity, and in the prime-order subgroup. \item \emph{State commitment}. The encrypted results and the encryption public key match the values committed in the final state: - \[\stateTree.\hlget{\MTVerify}(\encresults, \texttt{0x4}, \merkleInclusionPf^{\encresults}, \stateroot),\] - \[\stateTree.\hlget{\MTVerify}(\epk, \texttt{0x3}, \merkleInclusionPf^{\epk}, \stateroot).\] - \item \emph{Correct decryption}. For every ballot field $j \in \{1, \dots, n_f\}$, the public result $\text{results}_j$ is the decryption of the encrypted accumulator $\encresults_j$ under $\epk$, as attested by $\pi^{\mathrm{dec}}_j$: - \[\mathsf{DecVerify}_{\epk}\bigl(\encresults_j,\ \text{results}_j,\ \pi^{\mathrm{dec}}_j\bigr) = \true.\] - \item \emph{Results range}. Each result lies in the valid plaintext range: - \[0 \le \text{results}_j \le t - 1, \qquad j = 1, \dots, n_f,\] - where $t$ is the order of the BabyJubjub prime-order subgroup (see Appendix~\ref{sec:cryptographic-primitives:elliptic-curves}) and $n_f$ denotes the number of ballot fields (see Section~\ref{sec:ballot-protocol}). + \[\stateTree.\hlget{\MTVerify}(\Sha(\encresults), \texttt{0x4}, \merkleInclusionPf^{\encresults}, \stateroot),\] + \[\stateTree.\hlget{\MTVerify}(\Sha(\epk), \texttt{0x3}, \merkleInclusionPf^{\epk}, \stateroot).\] + \item \emph{Correct decryption}. For every ballot field $j \in \{1, \dots, 16\}$, the public result $\text{results}_j$ is the decryption of the encrypted accumulator $\encresults_j$ under $\epk$, as attested by $\pi^{\mathrm{dec}}_j$ (see Appendix~\ref{sec:cryptographic-primitives:encryption}): + \[\hlget{\CPVerify}_{\epk}\bigl(\encresults_j,\ \text{results}_j,\ \pi^{\mathrm{dec}}_j\bigr) = \true.\] + \item \emph{Results range}. Each result is a 64-bit integer, $0 \le \text{results}_j < 2^{64}$, which is below the order $t$ of the BabyJubjub prime-order subgroup, so the plaintext of each ciphertext is unique. \end{itemize} \vspace{-0.3cm} -%\end{spacing} % -The per-field decryption proofs $\pi^{\mathrm{dec}}_j$ are produced during the tally decryption phase, where the key wardens jointly decrypt the aggregated results and attest, through a discrete-log-equality proof, that the decryption was performed correctly under the threshold key. By checking these proofs against the public key committed at leaf $\texttt{0x3}$, the circuit guarantees that the released tally corresponds exactly to the encrypted results accumulated in the final state, without ever exposing the decryption key inside the circuit. +\noi The per-field decryption proofs $\pi^{\mathrm{dec}}_j$ are produced by the key holder, who decrypts the aggregated results, recovers each value by a bounded discrete-logarithm search, and attests, through a discrete-log-equality proof, that the decryption was performed correctly under the election key. By checking these proofs against the public key committed at leaf $\texttt{0x3}$, the program guarantees that the released tally corresponds exactly to the encrypted results accumulated in the final state, without ever exposing the decryption key inside the proof. Inactive fields hold the identity ciphertext, for which only the value zero can be proven. If any constraint fails, the program outputs zero in place of the root and the results, so a consumer that omitted the check of $\okflag$ still could not match a root or read a tally. + +\begin{figure}[h] + \centerline{\includegraphics[width=0.85\linewidth,draft=false]{\figs/results-program.pdf}} + \caption{Results program. Public values are framed in green and private values in red.} + \label{fig:results-program} +\end{figure} -%\begin{figure}[h] -% \centerline{\includegraphics[width=400pt,draft=false]{\figs/circuit5.pdf}} -% \caption{Aggregation circuit. All public values are framed in green. \color{red}Circuit is not correct.} -% \label{fig:circuit-results} -%\end{figure} +\begin{remark} + The batch proofs are verified on-chain one by one, which publishes the data of every batch as it is settled and lets several sequencers compete for each transition. The \ac{zkVM} also supports a \emph{chained} mode, in which batch proofs are produced as \acp{STARK} without the PlonK wrapper and an aggregator program (\aggregatorprogram) verifies them recursively, enforces the continuity of state roots across batches, and folds a whole election into a single proof that is verified on-chain once, together with the results. Chained mode trades the per-batch settlement and data publication for a lower on-chain cost; it is not used by the deployment described in this paper, and the sequencer does not support it for dynamic censuses or threshold-held keys. +\end{remark}
@@ -1,7 +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, \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 DKG-generated key, while ciphertext re-randomization and silent revoting strengthen protection against coercion and vote-selling. +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. + +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. -Several directions remain open for future work. An important long-term direction is post-quantum migration, particularly through STARK-based proving systems and post-quantum signature and encryption schemes. Another is simplifying the proving architecture through general-purpose zkVM-based implementations, which may reduce development complexity and support larger proving batches. We also plan to integrate with real-world credential providers and conduct large-scale deployment experiments in realistic electoral settings+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.
@@ -7,17 +7,21 @@ Against this backdrop, the Vocdoni project was initiated in 2018 with the aim of rethinking online voting from first principles. The name Voĉdoni, meaning \textit{to give voice} in Esperanto, reflects the project’s foundational goal: to empower collectives, from small associations to millions of citizens, to engage in secure and verifiable decision-making, regardless of technological or institutional barriers. Central to this vision was the idea that voting is not limited to formal governmental elections but serves as a more general-purpose mechanism for collective signaling. Vocdoni introduced a fully anonymous end-to-end verifiable voting system designed to operate efficiently on a range of devices, including smartphones. To support these goals, the team deployed a custom infrastructure emphasizing resilience, neutrality, and transparency.
Technically, the architecture of Vocdoni was based on a bespoke \ac{BFT} layer-1 blockchain, named Vochain. At the time, efficient zero-knowledge (ZK) proof systems were emerging, but not yet practical for most deployments. Vochain provided a performant and low-cost environment (achieving approximately 700 transactions per second) in which advanced cryptographic tools could be used without the constraints imposed by general-purpose blockchains based on the \ac{EVM}. The ability to issue voting transactions without requiring user fees enabled broader accessibility. Over several years of development and deployment, this architecture proved both viable and valuable in practice. However, broader adoption as a universal voting protocol highlighted the need for further architectural refinements and stronger formal guarantees. -In this work, we introduce \davinci, a new protocol that builds upon the lessons and conceptual groundwork laid by Vocdoni. \Davinci adopts a modular design and integrates state-of-the-art cryptographic tools, including succinct ZK proofs, improved bulletin board constructions, and robust coercion resistance mechanisms, reflecting the most recent advances in academic research. Unlike monolithic designs, \davinci is conceived as a composable primitive: a foundational layer intended to support secure and verifiable voting in diverse contexts, from blockchain governance to institutional elections. This shift in design philosophy aims to address long-standing challenges in the field, offering a cleaner abstraction with clearer security boundaries and formal underpinnings.\\ +In this work, we introduce \davinci, a new protocol that builds upon the lessons and conceptual groundwork laid by Vocdoni. \Davinci adopts a modular design and integrates state-of-the-art cryptographic tools, including succinct ZK proofs, zero-knowledge virtual machines, improved bulletin board constructions, and robust coercion resistance mechanisms, reflecting the most recent advances in academic research. Unlike monolithic designs, \davinci is conceived as a composable primitive: a foundational layer intended to support secure and verifiable voting in diverse contexts, from blockchain governance to institutional elections. This shift in design philosophy aims to address long-standing challenges in the field, offering a cleaner abstraction with clearer security boundaries and formal underpinnings. + +An earlier design of \davinci enforced the protocol with a pipeline of four arithmetic circuits over three elliptic curves, recursively composed into one state-transition proof. This document specifies the current design, in which the sequencer-side circuits are replaced by programs written in an ordinary programming language and proven by a \ac{zkVM}. The statement proven for each batch of ballots is the same in spirit, but it is now expressed as one auditable program, checked by one universal verifier, and extended with guarantees that were impractical to express as circuits, such as the in-proof layout of the published data and the silent re-randomization of stored ballots.\\ \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. That is, at the core of the system lies a set of reusable arithmetic circuits that implement voter authentication, encrypted ballot validation, state transitions, and tally finalization. These circuits are optimized for off-chain proving and are compatible with modern \ac{ZK-SNARK} protocols. 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, 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. %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. -To coordinate protocol execution over a decentralized network of nodes, \davinci includes a set of Ethereum smart contracts that mediate the setup of elections, manage finalization procedures, and verify submitted proofs of correctness. A standardized transaction and data encoding format supports all stages of the process, including vote casting, ballots aggregation, and result publication. This approach ensures that protocol interactions remain deterministic and interoperable across clients and backends. The system also introduces the Vocdoni token, which is used to align incentives between participants. 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, off-chain data availability layers, or other consensus backends. +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. + +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. \subsection{Related work} \label{sec:introduction:sota}@@ -43,6 +47,9 @@ 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. Cicada~\cite{cicada2023} and Shutter Network~\cite{shutter2024} use timelock and threshold encryption to keep ballots hidden until the tally, but neither re-randomizes stored ciphertexts after submission. As a result, voters can still prove how they voted, weakening protection against coercion and vote-selling. +\paragraph{Zero-knowledge virtual machines.} +Rollups move the execution of transactions off-chain and post a validity proof to a settlement chain. Early validity rollups encoded their transition function as hand-written circuits, an approach that is efficient but expensive to audit and to evolve. \acp{zkVM} such as RISC Zero~\cite{bruestle2023risczero}, SP1~\cite{sp1}, and ZisK~\cite{zisk} instead prove the correct execution of a program compiled to the RISC-V instruction set, using \ac{STARK}-based proof systems with recursion, and accelerate common operations (hashes, elliptic curve arithmetic) with dedicated precompiles. \Davinci uses a \ac{zkVM} to prove its election-specific transition function, which keeps the protocol logic in ordinary, testable code while retaining a constant-size proof and a single on-chain verifier. + %\paragraph{Position of DAVINCI.} %Architecturally, DAVINCI is close to payment-focused ZK rollups such as Loopring~\cite{loopring2019} and zkSync~\cite{zksync2020}, rather than to traditional e-voting systems. It applies the off-chain computation and on-chain settlement split to elections while adding threshold decryption, ciphertext re-randomization, and silent revoting. These features are required in voting systems but absent from payment applications. %Table~\ref{tab:comparison} evaluates these systems on five formal properties: \emph{ballot privacy}, that the voter's choice remains hidden from third parties under the system's stated trust assumption; \emph{cast-as-intended verifiability}, a voter-facing mechanism by which the voter can check that the casting device honestly encrypted the chosen option; \emph{receipt-freeness}, that a voter cannot produce convincing evidence of how they voted to a third party observing the public bulletin board; \emph{permissionless ballot processing}, that the operator set is open to anyone rather than fixed in advance; and \emph{public-ledger settlement}, that the protocol's state and integrity proofs are anchored on a public bulletin board. For Belenios, the receipt-freeness mark refers to BeleniosRF, which adds an honesty assumption on the voting server; for MACI, ballot privacy and receipt-freeness are restricted to third parties besides the coordinator.@@ -52,6 +59,6 @@ \subsection{Paper organization}
\label{sec:introduction:organization} The rest of the paper is organized as follows. In Section~\ref{sec:background} we introduce the necessary background. -In Section~\ref{sec:protocol-intuition} we provide a high-level overview of a voting process, omitting technical details for clarity. In Section~\ref{sec:vocdoni-protocol} we describe the full voting process in detail and in Section~\ref{sec:ballot-protocol} we focus on the ballot protocol. +In Section~\ref{sec:protocol-intuition} we provide a high-level overview of a voting process, omitting technical details for clarity. In Section~\ref{sec:vocdoni-protocol} we describe the full voting process in detail: the parties, the smart contracts, the census, the state tree, the proof statements, and the protocol flow. In Section~\ref{sec:ballot-protocol} we focus on the ballot protocol. %In Section~\ref{sec:token} we discuss the role of the Vocdoni token within the incentive structure of the system. In Section~\ref{sec:analysis} we analyze the protocol, covering its security properties, implementation details, and performance evaluation. In Section~\ref{sec:conclusions} we conclude the paper with final remarks and future work. Finally, we include Appendix~\ref{sec:cryptographic-primitives} with the concrete instantiations of all the cryptographic primitives used in the protocol.
@@ -1,17 +1,13 @@
% !TeX root = ../build/main.tex -An election involves four types of participants: organizer, \keywardens, voters, and sequencers. - -\paragraph{Organizer.} The organizer is the entity responsible for defining and setting up the election. Its key responsibilities include defining the voting parameters and gathering the census data. The organizer ensures that the election is structured correctly but does not participate in vote collection or tallying. - -\paragraph{\Keywardens.} \Keywardens are a set of decentralized parties that collaboratively generate a public encryption key that voters use to encrypt their votes. The corresponding secret key is secret-shared among them so that a threshold of key wardens can later collaborate to decrypt the final tally. %Individual ballots remain private because the protocol only invokes threshold decryption on the final aggregate, not on each ballot separately. +An election involves four types of participants: organizer, \keywardens, voters, and sequencers. In addition, any party can follow an election as an observer. -\paragraph{Voters.} Voters are the participants that belong the census and are allowed to cast their votes in the election. +\paragraph{Organizer.} The organizer is the entity responsible for defining and setting up the election. Its key responsibilities include defining the voting parameters, gathering the census data, and choosing who holds the election key. The organizer is identified by the Ethereum address that creates the election, and only that address can later change the parameters that the protocol allows to be changed (the status, the end time, the census of a dynamic census, the metadata, the maximum number of voters, and the grace window). The organizer ensures that the election is structured correctly but does not participate in vote collection or tallying. -%\noi {\color{blue}\textbf{TODO}: we need to add that each voter has a secret $\sk$ and public $\pk$ key and an associated Ethereum address. Maybe add something about the weight as well? Consider adding a public-key scheme in Appendix~\ref{sec:cryptographic-primitives}.} +\paragraph{\Keywardens.} \Keywardens are a set of decentralized parties that collaboratively generate a public encryption key that voters use to encrypt their votes. The corresponding secret key is secret-shared among them so that a threshold of key wardens can later collaborate to decrypt the final tally. Individual ballots remain private because the protocol only invokes threshold decryption on the final aggregate, not on each ballot separately. \Davinci supports two kinds of \keywardens: a \emph{\ac{DKG} committee}, drawn by lottery from a permissionless set of registered operators, which prepares a pool of keys in advance and assigns one to each election; and a \emph{council}, a small group of members invited by an organizer, which runs a dedicated key ceremony. When the organizer accepts the corresponding trust, a single sequencer can play the role of the \keywardens and hold the whole election key (see Section~\ref{sec:vocdoni-protocol:flow:keys}). -\paragraph{Sequencers.} Sequencers are a set of parties that during the voting period receive and verify encrypted ballots from voters, reencrypt votes, and update the shared public state accordingly. +\paragraph{Voters.} Voters are the participants that belong to the census and are allowed to cast their votes in the election. Each voter holds a secp256k1 key pair, whose Ethereum address identifies the voter in the census, and is assigned a weight, which bounds or scales their vote according to the ballot rules. Voters may cast as many ballots as they wish during the voting period; each new ballot overwrites the previous one. -%Sequencers are a set of decentralized parties that facilitate the election during the voting period. They receive and verify encrypted ballots from voters, reencrypt votes to prevent coercion, and update the shared public state accordingly. +\paragraph{Sequencers.} Sequencers are a set of parties that during the voting period receive and verify encrypted ballots from voters, reencrypt votes, and update the shared public state accordingly. A sequencer groups valid ballots into batches, proves each batch with the batch program in a \ac{zkVM}, publishes the batch data in blobs, and submits the proof to the process registry. The role is permissionless: any party with an Ethereum account can run a sequencer for any election, and several sequencers can serve the same election concurrently, in which case they race to settle the next state transition. Proof generation is computationally intensive and is typically delegated to a GPU \emph{prover} service. The prover learns the private inputs of the batch, including the reencryption secrets, so a sequencer must run its own prover or trust its operator with ballot privacy (but not with integrity, which the proof guarantees). -%Old text: the Sequencer is a specialized component designed to handle the voting process using zero-knowledge proof mechanisms. It ensures that all transactions related to this process are validated and sequenced. The Sequencers periodically commit the state of the voting process to Ethereum.+\paragraph{Observers.} Any party can run a sequencer node without a signing key. Such a node, called an observer, never settles transitions, but it replays every transition settled by others from the published blobs, checks that the resulting state roots match the ones recorded on-chain, and serves the state of the election, including the inclusion proofs that voters use to check that their ballots were recorded. Observers therefore provide independent verification of the election and of its tally.
@@ -1,116 +1,72 @@
% !TeX root = ../build/main.tex -In this section we describe the overall flow of the \davinci voting protocol. An election is structured into five main phases: election setup, encryption key generation, voting period, tally decryption, and election finalization. Each phase specifies the interactions between the organizer, \keywardens, voters, sequencers, and the smart contracts that coordinate the election. %An overview of the complete process is shown in Fig.~\ref{fig:protocol-flow}. +In this section we describe the overall flow of the \davinci voting protocol. An election is structured into five main phases: election setup, encryption key generation, voting period, tally decryption, and election finalization. Each phase specifies the interactions between the organizer, \keywardens, voters, sequencers, and the smart contracts that coordinate the election. An overview of the complete process is shown in Fig.~\ref{fig:protocol-flow}. + +\begin{figure}[p] + \centerline{\includegraphics[height=0.93\textheight,draft=false]{\figs/protocol-flow.pdf}} + \caption{Message flow of an election. The voting loop runs for every batch; settlement is shown in L1-blob mode, in which the blobs are posted to Ethereum while the batch is proven. The two alternative finalization paths depend on who holds the election key.} + \label{fig:protocol-flow} +\end{figure} \subsubsection{Election setup} \label{sec:election-setup} -%Before any election can begin, sequencers must register in the \hlget{\electionregistry} smart contract. This registration is a one-time -%operation per sequencer and is independent of any particular election. -%; only registered -%sequencers are eligible to participate in the processing of votes. -% For each new election, the organizer performs the following steps: \begin{enumerate} - - \item Prepare the census data \censusdata\ and build the incremental Merkle tree - $\censusTree$ from it. Publish the full tree to IPFS, and record the resulting URI as $\censusuri$. - - \item Compute the census commitment $\censusroot = \censusTree.\hlget{\MTRoot}()$. - - \item Define the election details: the start time (\starttime), the duration of the voting period (\duration), the census model $\censusorigin$ - (see Section~\ref{sec:vocdoni-protocol:census}), and the ballot rules $\ballotmode$ + + \item Prepare the census data \censusdata\ according to the chosen census model $\censusorigin$ (see Section~\ref{sec:vocdoni-protocol:census}). For an off-chain census, build the lean \ac{IMT} $\censusTree$ from it, publish the list of members, and record its location as $\censusuri$; for an on-chain census, deploy or reuse a census contract; for a \ac{CSP} census, record the endpoint of the \ac{CSP} as $\censusuri$. + + \item Compute the census commitment: $\censusroot = \censusTree.\hlget{\MTRoot}()$ for an off-chain census, or the address of the \ac{CSP}'s signing key for a \ac{CSP} census. + + \item Define the election details: the start time (\starttime), the duration of the voting period (\duration), the maximum number of voters (\maxvoters), and the ballot rules $\ballotmode$ (see Section~\ref{sec:ballot-protocol}). - - \item Upload the election metadata (questions, options, description, etc.)\ to IPFS and - record the resulting URI as $\electionmetadata$. - - \item Determine the process identifier $\processid$, a 32-byte value derived - deterministically from the organizer's Ethereum address, the account nonce, and a prefix - encoding the chain identifier and the \hlget{\electionregistry} smart contract. Being deterministic, it can be - computed in advance by the organizer, although it is ultimately recomputed and assigned by - the contract upon registration. - - \item Obtain the encryption public key $\epk$ for this process. The key is produced by the - key wardens through the \ac{DKG} protocol - run for the identifier $\processid$, so that no single party knows the corresponding secret key. - + + \item Publish the election metadata (questions, options, description, etc.)\ and record its location as $\metadatauri$ and the SHA-256 digest of its exact bytes as \texttt{metadataHash}. + + \item Determine the process identifier $\processid$, which the \hlget{\processregistry} derives from the organizer's address, a prefix that encodes the chain and the registry, and the organizer's process nonce (see Section~\ref{sec:vocdoni-protocol:smart-contracts}). Being deterministic, it can be read in advance from the registry, although it is ultimately recomputed and assigned by the contract upon registration. + + \item Choose the key mode \keymode and obtain what it requires (see Section~\ref{sec:vocdoni-protocol:flow:keys}): the encryption public key $\epk$ for $\processid$ from a sequencer, in the sequencer mode; nothing, in the automatic \ac{DKG} mode; an organizer key pair and a proof of possession of its secret, in the locked \ac{DKG} mode; or the identifier of a council ceremony, in the council mode. + \item Register the process on-chain by submitting a transaction to the - \hlget{\electionregistry} smart contract with the election parameters: + \hlget{\processregistry} smart contract with the election parameters: \begin{align*} \mathsf{tx} = \big( - &\censusorigin,\ \censusroot,\ \censusuri,\ \electionmetadata, \\ - &\ballotmode,\ \epk,\ \starttime,\ \duration\big). + &\texttt{status},\ \starttime,\ \duration,\ \maxvoters,\ \ballotmode,\\ + &(\censusorigin,\ \censusroot,\ \censusuri,\ \texttt{contractAddress}),\ \metadatauri,\ \texttt{metadataHash},\\ + &\epk,\ (\keymode,\ \texttt{dkgParams})\big), \end{align*} - Upon accepting this transaction, the \hlget{\electionregistry} contract initializes the reserved configuration leaves - of the state tree $\stateTree$ as % - $\processid$ at $\mathtt{0x0}$, $\ballotmode$ at $\mathtt{0x2}$, $\epk$ at $\mathtt{0x3}$, - $\censusorigin$ at $\mathtt{0x6}$, and the results accumulator $\encresults$ at - $\mathtt{0x4}$ initialized to the encryption of zero (see Section~\ref{sec:vocdoni-protocol:state-tree}) and computes the initial state root + where \texttt{status} is \texttt{READY} or \texttt{PAUSED} and $\epk$ is left empty in the \ac{DKG} and council modes. The registry validates the parameters: the ballot mode must satisfy the bounds of Section~\ref{sec:ballot-protocol}; the worst-case tally must be decryptable, $\maxvalue \cdot \maxvoters \le 10^{12}$; the census must be consistent with its origin; the voting period must not start in the past and must end in the future; and the metadata must be non-empty. In the \ac{DKG} and council modes, the registry obtains $\epk$ from the corresponding key-management contract (see Section~\ref{sec:vocdoni-protocol:flow:keys}). In every mode, $\epk$ must be a canonical BabyJubjub point other than the identity. + Upon accepting this transaction, the \hlget{\processregistry} contract computes the genesis state root, whose tree contains only the configuration leaves (see Section~\ref{sec:vocdoni-protocol:state-tree}): $\processid$ at $\mathtt{0x0}$, $\ballotmode$ at $\mathtt{0x2}$, $\epk$ at $\mathtt{0x3}$, the results accumulator $\encresults$ at $\mathtt{0x4}$ initialized to the encryption of zero, $\censusorigin$ at $\mathtt{0x6}$, and the pinned $\ballotvkhash$ at $\mathtt{0x7}$: \[ \stateroot = \stateTree.\hlget{\MTRoot}(). \] \end{enumerate} % -Once this transaction is accepted, the election is publicly registered on-chain and, at its -scheduled start time, the voting period can begin. -% -%Before any election can begin, key wardens must register in the \hlget{\dkgmanagement} smart contract. This registration -%is a one-time operation per key warden and is independent of any particular election; only -%registered parties are eligible to participate in the \ac{DKG} phase. -%% -%For each new election, the organizer performs the following steps: -% -%\begin{enumerate} -% -% \item Prepare the census data \censusdata\ and build the \ac{IMT} -% $\censusTree$ from it. Publish the full tree to IPFS, and record the resulting URI as $\censusuri$. -% -% \item Compute the census commitment $\censusroot = \censusTree.\hlget{\MTRoot}()$. -% -% \item Define the election details, including duration, the census model $\censusorigin$ -% (see Section~\ref{sec:vocdoni-protocol:census}), and the ballot rules $\ballotmode$ -% (see Section~\ref{sec:ballot-protocol}). -% -% \item Upload the election metadata (questions, options, description, etc.)\ to IPFS to obtain {\color{blue}electionMetadata}. -% -% \item Compute a unique process identifier $\processid$, which is a 32-byte number derived -% from the organizer's Ethereum address, nonce, and the chain ID. -% -% \item Initialize the state Merkle tree $\stateTree$ by inserting the election configuration -% parameters into the reserved configuration namespace (see Section~\ref{sec:vocdoni-protocol:state-tree}): -% $\processid$ at leaf $\mathtt{0x0}$, $\ballotmode$ at leaf $\mathtt{0x2}$, -% $\censusorigin$ at leaf $\mathtt{0x6}$, and zero-valued accumulators $\addaccumulator$ and -% $\substractaccumulator$ at leaves $\mathtt{0x4}$ and $\mathtt{0x5}$, respectively. {\color{blue}Compute the -% initial state root -- is this done by the SC?} -% \[ -% \stateroot = \stateTree.\hlget{\MTRoot}(). -% \] -% -% \item Set security parameters for the \ac{DKG} ceremony (e.g.\ timeout, minimum number -% of sequencers) {\color{blue}DKG}. -% -% \item Submit all this information in a transaction to the \hlget{\electionregistry} smart -% contract: -% \begin{align*} -% tx_{\mathit{org}} = \big( -% &\processid,\ \censusroot,\ \censusorigin,\ \censusuri, \\ -% &\ballotmode,\ {\color{blue}electionMetadata},\ \stateroot,\ {\color{blue}dkgParameters} -% \big). -% \end{align*} -% -%\end{enumerate} -%% -%Once this transaction is accepted, the election is publicly registered on-chain and the -%\ac{DKG} phase can begin. +Once this transaction is accepted, the election is publicly registered on-chain, the registry emits a \fn{ProcessCreated} event, and, at its scheduled start time, the voting period can begin. Sequencers learn of the new process from the event: each sequencer that wishes to serve it validates the configuration, downloads or indexes the census, rebuilds the census tree and checks its root, and creates the genesis state tree locally, checking that its root equals the one computed by the registry. \subsubsection{Encryption key generation} \label{sec:vocdoni-protocol:keygen} +\label{sec:vocdoni-protocol:flow:keys} -In this phase, the \keywardens\ collectively generate the public encryption key ($\epk$) that voters will use to encrypt their ballots. Since the process identifier $\processid$ is derived deterministically (see Section~\ref{sec:election-setup}), it is known in advance, so the \ac{DKG} ceremony for the election can be carried out before the process is registered on-chain. +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. -Each \keywarden\ contributes to the ceremony and publishes a proof that its contribution is well-formed. The \hlget{\dkgmanagement} smart contract verifies these proofs, so that correct participation can be checked without revealing any secret. Once a threshold of valid contributions is collected, the joint public key $\epk$ is derived, while the corresponding secret key remains secret-shared among the wardens. In this way, no single party can decrypt on its own, and later tally decryption requires the collaboration of a threshold of wardens (see Section~\ref{sec:vocdoni-protocol:tally}). The resulting $\epk$ is the key that the organizer includes when registering the election (see Section~\ref{sec:election-setup}). The concrete \ac{DKG} construction is given in Appendix~\ref{sec:cryptographic-primitives:dkg}. +\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.} + \label{fig:key-modes} +\end{figure} + +\paragraph{\ac{DKG} automatic mode.} The \keywardens are the operators of a permissionless \ac{DKG} network~\cite{davinci-dkg}, which runs the non-interactive \ac{DKG} protocol of Appendix~\ref{sec:cryptographic-primitives:dkg} in \emph{epochs}. At the start of each epoch, a committee of $n$ operators is drawn by a public lottery among the registered operators, and each committee member submits one contribution that deals, with Feldman verifiable secret sharing~\cite{feldman1987practical}, shares of sixteen independent pool keys at once, together with a Groth16 proof that the contribution is well-formed and that every share is encrypted to its recipient. The \dkgmanager verifies these proofs, so that correct participation can be checked without revealing any secret. Once enough valid contributions are collected, a single proof computes the sixteen pool keys $P_0, \dots, P_{15}$ and a commitment to every member's share of each, and the epoch becomes live. Any $t$ of the $n$ committee members can then decrypt under any pool key, while no smaller coalition learns anything about the secrets. When a process is created in this mode, the \dkgadapter registers it as an application of the newest live epoch, under an application identifier that embeds the adapter's address and a salt derived from the chain, the registry, and \processid, so that no other party can claim it. The application is assigned a free pool key $P_j$, which becomes the election key, $\epk = P_j$. + +\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 $t$ 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 $t$ members can decrypt. 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. \subsubsection{Voting period} \label{sec:vocdoni-protocol:votes}@@ -122,11 +78,11 @@ associated address $\address$ (see Appendix~\ref{sec:cryptographic-primitives:signatures}).
To cast a ballot, a voter does the following: \begin{enumerate} - \item Retrieve the census membership proof $\censusproof$ to prove eligibility. - \item Fetch the parameters $\epk$, $\ballotmode$, and $\processid$ from the - \hlget{\electionregistry} contract. + \item Fetch the parameters $\epk$, $\ballotmode$, $\processid$, and the census configuration from the + \hlget{\processregistry} contract, and the metadata from $\metadatauri$, checking its digest. + \item Retrieve the weight $\weight$ and, for a \ac{CSP} census, the credential $\censusproof = (\signature^{\mathsf{CSP}}, \idx)$. For a Merkle census, the weight and the membership proof can be obtained from any sequencer serving the election, and checked against $\censusroot$; the sequencer does not need the proof from the voter, since it derives it from its own copy of the census. \item Select their ballot choice $\ballot$ following the rules of $\ballotmode$. - \item Sample fresh randomness $k \in \F$ and encrypt the ballot using $\epk$: + \item Sample fresh randomness $k \in \F_s$ and encrypt the ballot using $\epk$, field by field, as specified by the ballot circuit: \begin{equation}\label{eq-ciphertext} \encryptedballot = \hlget{\Enc}_{\epk}(\ballot; k). \end{equation}@@ -140,130 +96,152 @@ \item Use the \ballotcircuit from Section~\ref{sec:vocdoni-protocol:circuits:ballot} to
generate a \ac{ZK-SNARK} proof that Eqs.~\labelcref{eq-ciphertext,eq-voteid} are correctly computed and that $\ballot$ satisfies the ballot rules of $\ballotmode$: \begin{align*} - \ballotproof = {} & \hlget{\PProve}(\hlget{\ballotcircuit}, \witness = (\ballot, k), \\ - & \publicinputs = (\processid, \ballotmode, \epk, \address, \weight, - \encryptedballot, \voteid)). + \ballotproof = {} & \hlget{\PProve}\bigl(\hlget{\ballotcircuit},\\ + & \witness = (\ballot, k, \processid, \ballotmode, \epk,\\ & \phantom{\witness = (}\weight, \encryptedballot), \\ + & \publicinputs = (\address, \voteid, \ballotinputshash)\bigr). \end{align*} \item Sign the vote identifier with their Ethereum secret key $\sk$ to authenticate the vote: \[ \signature = \hlget{\SSign}_{\sk}(\voteid). \] \item Select a sequencer and submit the package - \[ \vote = [\processid, \voteid, \encryptedballot, \censusproof, \ballotproof, \signature] \] - to the chosen sequencer. + \begin{align*} \vote = [&\processid, \address, \voteid, \encryptedballot, \ballotproof,\\ &\ballotinputshash, \signature, \weight, \censusproof] \end{align*} + to the chosen sequencer, where \censusproof is only present for a \ac{CSP} census. + \item Follow the status of the vote through its identifier. Once the vote is settled, obtain from any sequencer an inclusion proof of the leaf \voteid under the state root, and check it against the root recorded in the \processregistry. \end{enumerate} +A voter may repeat these steps any number of times while the voting period is open; each new ballot, once settled, replaces the previous one in the voter's slot. All ballots of one voter should be sent to the same sequencer, which settles them in the order they were cast; across sequencers, the ballot settled last prevails.\\ -\noi \textbf{(b) Vote batching.} Upon receiving votes, a sequencer does the following: +\noi \textbf{(b) Vote admission.} Upon receiving a vote $\vote_i$, a sequencer runs every per-vote check of the batch program before accepting it, so that a single invalid vote cannot invalidate a batch: +\begin{enumerate} + \item Check the ballot proof against the pinned ballot verification key: + \[\hlget{\PVerify}\bigl(\ballotproof_i, (\address_i, \voteid_i, \ballotinputshash_i)\bigr) = \true.\] + \item Recover the signer, $\pk_i = \hlget{\SPubKey}(\voteid_i, \signature_i)$, and check that its address is $\address_i$. + \item Recompute $\ballotinputshash_i$ from the process configuration and the submitted values, and check that the ciphertexts are canonical points with the identity in every inactive field. + \item Check eligibility: for a Merkle census, that $\address_i$ is a member with weight $\weight_i$ in the sequencer's copy of the census; for a \ac{CSP} census, that the credential recovers the \ac{CSP} address $\censusroot$. + \item Check the state: the vote identifier is neither in the state tree nor in the queue, the election is accepting votes (it is ready or paused, and its voting period is open), and the vote would not make the number of distinct voters exceed \maxvoters. +\end{enumerate} +Accepted votes are queued, one queue per slot, and their status becomes \emph{pending}; a vote then moves through the states of Fig.~\ref{fig:vote-lifecycle}.\\ +\begin{figure}[h] + \centerline{\includegraphics[width=0.9\textwidth,draft=false]{\figs/vote-lifecycle.pdf}} + \setlength{\abovecaptionskip}{5pt} + \caption{Lifecycle of a vote in a sequencer. A batch that loses a settlement race, or that the registry refuses while the election is paused, returns its votes to the queue; votes still queued when the grace window closes, or that the program rejects, end in error.} + \label{fig:vote-lifecycle} +\end{figure} + +\noi \textbf{(c) Vote batching.} A sequencer seals a batch from the queue when it holds enough votes, when its oldest vote has waited long enough, or when the end of the voting period approaches. Waiting for several distinct slots before sealing mixes the votes of different voters in one transition; each wait carries a random jitter, so the settlement time of a batch reveals little about when its votes were cast. The batch takes the oldest vote of each slot, in arrival order, and is sized so that its proof and settlement fit before the deadline of the election, that it respects \maxvoters, and that its blobs fit the limit of the settlement mode. To build the batch, the sequencer: \begin{enumerate} - \item Retrieve the election identifier $\processid$, the current state root $\stateroot$, and - the census root $\censusroot$ from the \hlget{\electionregistry} smart contract, together with - the associated data from the Ethereum data blobs. - \item Upon receiving a vote - \[ \vote_i = [\processid, \voteid_i, \encryptedballot_i, \censusproof_i, \ballotproof_i, \signature_i], \] - recover the voter's public key $\pk_i = \hlget{\SPubKey}(\signature_i)$. - \item For each $\vote_i$, use the \verifiercircuit from - Section~\ref{sec:vocdoni-protocol:circuits:verifier} to generate a proof - \begin{align*} - \authenticationproof_i = {} & \hlget{\PProve}(\hlget{\verifiercircuit}, - \witness = (\pk_i, \signature_i, \ballotproof_i), \\ - & \publicinputs = (\processid, \ballotmode, \epk, \encryptedballot_i, \voteid_i,\\ - &\address_i, \weight_i)). - \end{align*} - This proof ensures that $\ballotproof_i$ and $\signature_i$ are valid and that $\address_i$ - is correctly derived from $\pk_i$. The census membership proof $\censusproof_i$ is not - used here; it is retained for the state transition circuit - (Section~\ref{sec:vocdoni-protocol:circuits:state-transition}), where eligibility is enforced. - \item Batch a set of $n$ authentication proofs $\{\authenticationproof_i\}_{i=1}^{n}$ and verify - them together using the \aggregationcircuit from - Section~\ref{sec:vocdoni-protocol:circuits:aggregation}: - \begin{align*} - \aggregationproof = {} & \hlget{\PProve}(\hlget{\aggregationcircuit}, - \witness = (\{\authenticationproof_i\}_{i=1}^{n}), \\ - & \publicinputs = (\{\encryptedballot_i\}_{i=1}^{n}, \{\voteid_i\}_{i=1}^{n}, - \{\address_i\}_{i=1}^{n}, \processid, \\ - &\ballotmode, \epk)). - \end{align*} - This proof ensures that all $\authenticationproof_i$ are valid and share the same global - parameters $\processid$, $\ballotmode$, and $\epk$. - \item Prepare the state transition data to be published in an Ethereum blob: pack the votes and - results into a 4096-cell blob $\blobdata$ and - \begin{itemize} - \item compute the data commitment $\blobcom = \hlget{\CCommit}(\blobdata)$, - \item derive the evaluation point $\evalpoint = \hlget{\Poseidon}(\processid, \stateroot^{\old}, \blobcom)$, - \item build the polynomial $P$ from $\blobdata$ and evaluate $y = P(\evalpoint)$, - \item produce the opening proof $\openproof$ for the evaluation $(\evalpoint, y)$. - \end{itemize} - The consistency $y = P(\evalpoint)$ between the blob and the on-chain state is proven inside - the state transition circuit. - \item Generate the state transition proof with the \statetransitioncircuit from - Section~\ref{sec:vocdoni-protocol:circuits:state-transition}: - \begin{align*} - \stateproof = {} & \hlget{\PProve}(\hlget{\statetransitioncircuit}, - \witness = (\aggregationproof, \{\censusproof_i\}_{i=1}^{n},\\ - &\{\encryptedballot_i\}_{i=1}^{n}, k, \openproof, \dots), \\ - & \publicinputs = (\censusroot, \stateroot^{\old}, \stateroot^{\new}, \blobcom, \dots)). - \end{align*} - The complete input list is given in - Section~\ref{sec:vocdoni-protocol:circuits:state-transition}. This proof attests that the - encrypted votes are correctly accumulated via ElGamal's homomorphic properties, that every - processed vote corresponds to an eligible voter (via the census membership proofs), that vote - overwrites are handled consistently, and the blob data matches the committed on-chain state. - \item Submit the state transition proof $\stateproof$ and the new state root $\stateroot^{\new}$ - to the \hlget{\electionregistry} smart contract, while the full data is published in the - Ethereum blobs. + \item Draws a fresh secret $\seed$ and a uniformly random refresh set $\mathcal{R}$ of occupied slots not written by the batch, of the size required by the batch program, from the operating system's random number generator. Both exist only in memory, for this batch, and are never logged or stored. + \item Reencrypts every ballot along the scalar chain of the seed and the refreshed ballots after them (see Section~\ref{sec:vocdoni-protocol:circuits:batch}). + \item Applies the batch to a copy of its state tree, producing the chains of tree transitions, the new results accumulator, and the new root. + \item Lays out the blob cells, computes the \ac{KZG} commitment $\blobcom_b$ of each blob, the evaluation point $z_b$, the value $y_b = p_b(z_b)$, and the opening proof $\openproof_b$ (see Section~\ref{sec:vocdoni-protocol:circuits:blobs}). + \item Computes the public values it expects the batch program to output. \end{enumerate} +A batch may reach the chain even if its sequencer later drops it, for instance after losing a race or when its blobs were posted but its settlement failed. If one of its votes is later sealed again in a different batch, with a different refresh draw, an observer comparing the two transitions could single out the slots written in both. To prevent this, every sequencer keeps a persistent coverage history of the batches that carried each vote, its own and those of other sequencers that it fetched, and a batch that carries such a vote again also refreshes every slot of those earlier batches that it does not write. The history contains only slot keys and vote identifiers that the blobs already publish, so keeping it reveals nothing new.\\ -\noi Upon receiving the transaction, the smart contract checks that the submitted previous root -matches the current on-chain state root and that $\stateproof$ is valid before updating the state -root to $\stateroot^{\new}$. If the on-chain state root changed while the sequencer was preparing -the batch (because another sequencer committed first), only the state transition proof must be -regenerated, as noted in Section~\ref{sec:vocdoni-protocol:circuits:state-transition}. Sequencers -repeat this process until the voting deadline set by the organizer. +\noi \textbf{(d) Proving and settlement.} +\label{sec:vocdoni-protocol:flow:settlement} +The sequencer sends the private inputs of the batch to its prover and obtains the batch proof, +\begin{align*} + (\publicvalues, \batchproof) = {} & \hlget{\VMProve}\bigl(\hlget{\batchprogram},\\ & \witness = (\text{ballot proofs, state transition, eligibility, reencryption, blobs})\bigr). +\end{align*} +Before using it, the sequencer checks that the proof is valid under the pinned program key and setup, that $\okflag = 1$, and that every public value equals the value it computed itself. It then settles the batch in one of the two data availability modes of the registry. + +\begin{itemize} + \item \emph{Blob mode} (registry on 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 + \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} +Settlement is permissionless: the proof, the blob openings, and the continuity of state roots authenticate the transition, whoever sends it. Upon receiving the transaction, the registry performs the following checks, and reverts if any fails: +\begin{enumerate} + \item The entry point matches the registry's data availability mode. + \item The process is ready or ended, or paused past its end time, and the current time is between \starttime and the end of the grace window (Section~\ref{sec:vocdoni-protocol:flow:grace}). + \item The public values are 512 bytes long and report $\okflag = 1$ and $\failmask = 0$. + \item $\stateroot^\old$ equals the latest state root of the process. + \item \censusroot is accepted for the census origin of the process (Table~\ref{tab:census-models}); for an on-chain census, the registry asks the census contract for the last block at which the root was current, and requires it to be between the creation block of the process and the current block. + \item \occupiedbefore equals the process's \voterscount, the number of distinct slots written so far. + \item The batch adds at least one vote, and $\voterscount + (\numvotes - \numoverwrites) \le \maxvoters$. + \item There are exactly \nblobs commitments, evaluations, and opening proofs, $\nblobs \ge 1$, and as many versioned hashes: in blob mode, the transaction carries no blob beyond the first \nblobs; in L1-blob mode, the L1 proof yields exactly \nblobs versioned hashes. + \item The digest of the $(\blobcom_b, y_b)$ pairs equals \blobsdigest. + \item The ZisK verifier accepts the proof: + \[\hlget{\ziskverifier}.\fn{verifySnarkProof}(\texttt{batchProgramVK}, \rootc, \publicvalues, \batchproof).\] + \item For every blob $b$, the point-evaluation precompile accepts the opening of $\blobcom_b$ at $z_b = \Sha(\processid \conc \stateroot^\old \conc \blobcom_b) \bmod q_{\mathsf{BLS}}$ with value $y_b$, against the $b$-th versioned hash. +\end{enumerate} +If all checks pass, the registry sets the latest state root to $\stateroot^\new$, increases \voterscount by $\numvotes - \numoverwrites$ and \overwrittencount by \numoverwrites, increments \texttt{batchNumber}, records the current time as \lastvoteat, and emits \fn{ProcessStateTransitioned}; in L1-blob mode, it also emits \fn{ProcessStateTransitionedL1} with the Ethereum block and the versioned hash of every blob, so that anyone can locate the data on Ethereum. + +\begin{figure}[h] + \centerline{\includegraphics[width=\textwidth,draft=false]{\figs/l1-settlement.pdf}} + \setlength{\abovecaptionskip}{5pt} + \caption{Settlement in L1-blob mode. The blob transactions are posted to Ethereum while the batch is proven; the settlement on the rollup proves, from a chain of Ethereum headers anchored at the rollup's L1 origin, that they are part of the Ethereum chain.} + \label{fig:l1-settlement} +\end{figure} + +\noi \textbf{(e) Concurrent sequencers and synchronization.} Several sequencers may serve the same election, and each builds its batches on the latest state root it knows. When two of them prepare a transition from the same root, the first one to land advances the election, and the settlement of the other reverts because its $\stateroot^\old$ is no longer the latest root. The losing sequencer returns its votes to the queue, synchronizes, and builds its next batch on the new root; a lost race costs only the gas of the reverted transaction and, in L1-blob mode, the posted blobs. To synchronize, a sequencer fetches the blobs of every transition settled by others, checks them against the versioned hashes recorded by the settlement, decodes the vote identifiers and the updated slots with their ballots, recomputes the results accumulator from the ballots it already holds, applies the updates to its tree, and requires the resulting root to equal the one recorded on-chain. Queued votes whose identifier appears in the tree are thereby settled. An observer runs the same procedure for every transition, which checks the election, and its encrypted tally, independently of the sequencers. Sequencers apply transitions only once they are buried under a configurable number of blocks, and they detect deeper reorganizations of the settlement chain, in which case they roll back the affected transitions and replay the chain from the published blobs. + +\subsubsection{End of the voting period} +\label{sec:vocdoni-protocol:flow:grace} + +The voting period ends at $\starttime + \duration$, or earlier if the organizer ends or cancels the process. From that moment, sequencers refuse new votes. Votes received before the end may still be queued or being proven, so the registry keeps accepting state transitions during a \emph{grace window} that closes at +\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. + +\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.} + \label{fig:grace-window} +\end{figure} + +\begin{figure}[h] + \centerline{\includegraphics[width=0.85\textwidth,draft=false]{\figs/process-status.pdf}} + \setlength{\abovecaptionskip}{5pt} + \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. \subsubsection{Tally decryption} \label{sec:vocdoni-protocol:tally} -After the voting period expires, the \hlget{\electionregistry} smart contract stops accepting new state updates, fixing the final state root and thus the aggregated encrypted results. A threshold of $t$ out of $n$ \keywardens\ then cooperate to decrypt this aggregate: rather than reconstructing the election secret key, each participating warden publishes a partial decryption of the encrypted results together with a proof that its contribution is correct with respect to its key share. Once $t$ valid partial decryptions are available, they are combined to recover the plaintext tally. 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. -% -The resulting tally, together with a proof of correct decryption, is published on-chain during the finalization phase (see Section~\ref{sec:vocdoni-protocol:finalization}), where it is checked by the \resultscircuit\ and the \hlget{\resultsverifier} contract. %\Keywardens\ that fail to provide a valid partial decryption may be penalized; the incentive and slashing mechanisms are described in Section~\ref{sec:token}. - +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 $t$ out of $n$ \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 = s_i \cdot C_1$, where $s_i$ is its key share, together with a Groth16 proof that $D_i$ is consistent with its committed share. Once $t$ 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. \subsubsection{Election finalization} \label{sec:vocdoni-protocol:finalization} +\label{sec:vocdoni-protocol:flow:results} -In this final phase, the organizer (or a sequencer) publishes the election results, together with -a proof of their correct computation, on-chain. +In this final phase, the election results are published on-chain, together with the evidence of their correct computation. +\paragraph{Sequencer mode.} The key holder proceeds as follows: \begin{enumerate} - \item Obtain the plaintext results $\{\text{results}_j\}_{j=1}^{n_f}$ and the corresponding - decryption proofs $\{\pi^{\mathrm{dec}}_j\}_{j=1}^{n_f}$ from the tally decryption phase - (Section~\ref{sec:vocdoni-protocol:tally}), i.e.\ the combination of the \keywardens' - partial decryptions of the aggregated encrypted results. \item Retrieve the encrypted results accumulator $\encresults$ and the encryption key $\epk$ from the final state, together with their Merkle inclusion proofs against the final state root $\stateroot$. - \item Use the \resultscircuit from Section~\ref{sec:vocdoni-protocol:circuits:results} to + \item Use the \resultsprogram from Section~\ref{sec:vocdoni-protocol:circuits:results} to generate the results proof: \begin{align*} - \resultsproof = {} & \hlget{\PProve}(\hlget{\resultscircuit}, - \witness = (\encresults, \epk,\\ &\merkleInclusionPf^{\encresults}, - \merkleInclusionPf^{\epk}, \{\pi^{\mathrm{dec}}_j\}_{j=1}^{n_f}), \\ - & \publicinputs = (\stateroot, \{\text{results}_j\}_{j=1}^{n_f})). + &(\publicvalues, \resultsproof) = \hlget{\VMProve}(\hlget{\resultsprogram}, \witness), \quad \text{with}\\ + &\witness = \bigl(\encresults, \epk,\\ + &\qquad \merkleInclusionPf^{\encresults}, \merkleInclusionPf^{\epk}, \{\text{results}_j, \pi^{\mathrm{dec}}_j\}_{j=1}^{16}\bigr), \end{align*} - \item Submit the results and $\resultsproof$ to the \hlget{\electionregistry} smart contract. - The contract verifies the proof with the \hlget{\resultsverifier}, checks that the state root - committed in the proof matches the current on-chain state root, and records the results, - marking the process as finalized. + whose public values contain $\stateroot$ and the results. + \item Submit the public values and the proof to the \hlget{\processregistry} smart contract with \fn{setProcessResults}. + The contract checks that the process is in the sequencer mode, that it has neither been canceled nor finalized, that it has ended and its grace window has closed, that $\okflag = 1$ and $\failmask = 0$, and that the state root in the public values is the latest root of the process. It then verifies the proof with the \hlget{\ziskverifier} under the pinned results program key, records the first \numfields results, sets the status to \texttt{RESULTS}, and emits \fn{ProcessResultsSet}. \end{enumerate} + +\paragraph{\ac{DKG} and council modes.} Once every submitted ciphertext has been decrypted, any sequencer calls \fn{finalizeResultsFromDKG} for the process. The registry reads the stored plaintexts through the adapter, requires all of them to be available and, for a council process, the decryption gate to be open, fills in the zero-valued fields, records the results, sets the status to \texttt{RESULTS}, and emits \fn{ProcessResultsSet}. Both this call and the request are permissionless, and every signing sequencer is ready to make them; to avoid duplicate transactions, each sequencer waits a random delay and sends a call only if it is still missing. \noi The election is considered finalized once the decrypted results are available on-chain. At this stage, both the results and the complete integrity of the process are permanently recorded -and publicly auditable: anyone can recompute the on-chain commitments and check the \ac{ZK-SNARK} -proofs. In particular, the combination of the final state root, the verified decryption of the -aggregated results, and the publicly verifiable \ac{ZK-SNARK} state and results proofs guarantees +and publicly auditable: anyone can recompute the on-chain commitments and check the proofs. In particular, the combination of the final state root, the verified decryption of the +aggregated results, and the publicly verifiable proofs of every state transition and of the results guarantees the integrity of the entire election. - -%\begin{figure}%[H] -% \centerline{\includegraphics[width=370pt,draft=false]{\figs/protocol-flow.pdf}} -% \caption{Vocdoni voting process overview. {\color{blue}Figure is OUTDATED.}} -% \label{fig:protocol-flow} -%\end{figure}
@@ -1,57 +1,43 @@
% !TeX root = ../build/main.tex -The following section provides an overview of the DAVINCI protocol, describing its main phases and actors without delving into technical details. An election is governed by smart contracts deployed on Ethereum, which ensure transparency, enforce rules, and verify proofs. As shown in Fig.~\ref{fig:protocol-intuition}, the protocol consists of five main phases, from the setup of the election to the publication and verification of the final results. -%All the voting process is governed by the rules encoded in three smart contracts: the \textit{process management}, the \textit{sequencer registry}, and the \textit{results verification} smart contract. All these three contracts are deployed on the Ethereum blockchain, and ensure that the execution of all steps is transparent and unalterable. The protocol consists of five phases, as illustrated in Figure~\ref{fig:protocol-intuition} and described below. The first two occur during the preparation period, the subsequent two during the voting period, and the final one takes place in the tally period. +The following section provides an overview of the DAVINCI protocol, describing its main phases and actors without delving into technical details. An election is governed by smart contracts deployed on a settlement chain, either Ethereum or an Ethereum rollup built on the OP Stack, which ensure transparency, enforce rules, and verify proofs. As shown in Fig.~\ref{fig:protocol-intuition}, the protocol consists of five main phases, from the setup of the election to the publication and verification of the final results. The numbered tags of the figure match the phases described below. -\begin{figure}[h] - \centerline{\includegraphics[width=490pt,draft=false]{\figs/protocol-intuition-flow.pdf}} +\begin{figure}[h] + \centerline{\includegraphics[width=\textwidth,draft=false]{\figs/protocol-intuition-flow.pdf}} \setlength{\abovecaptionskip}{5pt} % Space between figure and caption - \caption{Overview of the protocol flow.} + \caption{Overview of the protocol flow. Tags mark the phases: (1) election setup, (2) encryption key generation, (3a) vote casting and (3b) vote batching during the voting period, (4) tally decryption, and (5) election finalization.} \label{fig:protocol-intuition} - %\setlength{\belowcaptionskip}{0pt} % Space after caption \end{figure} -%\vspace{-0.5cm} - \begin{enumerate} - \item \textit{Election setup}. - In the first phase, the \emph{organizer} gathers all census data and generates a cryptographic commitment to this data. %using a Merkle tree (MT) root. - Additionally, the organizer defines the voting parameters, including the number of voting options and the vote-counting mechanism (e.g. weighted voting, quadratic voting, etc.). Once these details are set, the organizer submits a transaction to the process management smart contract on the Ethereum blockchain. This transaction publicly records the voting parameters and census commitment, ensuring transparency and preventing any subsequent alterations to the voting setup.\\ + \item \textit{Election setup}. + In the first phase, the \emph{organizer} gathers all census data and generates a cryptographic commitment to this data. Additionally, the organizer defines the voting parameters, including the number of ballot fields, the rules a valid ballot must satisfy (e.g., single choice, approval, weighted or quadratic voting), the voting period, and the maximum number of voters. The organizer also chooses who will hold the election key, as described in the next phase. Once these details are set, the organizer submits a transaction to the process registry smart contract. This transaction publicly records the voting parameters and the census commitment, and derives from them the initial state of the election, ensuring transparency and preventing any subsequent alterations to the voting setup.\\ % - \item \textit{Encryption key generation.} - A designated group of participants, referred to as \emph{\keywardens}, collaboratively generate a shared encryption public key, which voters will use to encrypt their votes. This key is established through a \ac{DKG} protocol, ensuring that no single party can control or reconstruct the corresponding private key independently. - %Sequencers have a dual role in the protocol. In addition to generating the encryption key, they are also responsible for collecting votes from voters during the election. Consequently, their public key and the necessary information to contact them off-chain must be registered in the sequencer registry smart contract. - Once the encryption public key is securely computed and published in the smart contract, the voting period can start.\\ + \item \textit{Encryption key generation.} + A designated group of participants, referred to as \emph{\keywardens}, collaboratively generate a shared encryption public key, which voters will use to encrypt their votes. This key is established through a \ac{DKG} protocol, ensuring that no single party can control or reconstruct the corresponding private key independently. In \davinci, the \keywardens are either a committee of permissionless operators, which prepares encryption keys in advance and hands one to each new election, or a council of members invited by the organizer. For elections in which the organizer accepts a weaker trust model, a single sequencer can also provide the key. In every case, the encryption public key is recorded in the process registry when the election is created, and the voting period can start.\\ % - \item \textit{Voting period}. + \item \textit{Voting period}. During the voting period, two actors interact continuously: \textit{voters}, who cast their encrypted ballots, and \emph{sequencers}, independent entities responsible for collecting, verifying, and processing these ballots before committing them to the shared state. Both processes, (\ref{sec:protocol-intuition:vote-casting}) ballot submission by voters and (\ref{sec:protocol-intuition:vote-batching}) vote batching by sequencers, occur continuously and in parallel throughout this phase. The voting period remains open until the deadline defined by the organizer, allowing voters to submit or overwrite ballots at any time, while sequencers periodically process new submissions and update the election state accordingly.\\ - - %to a separate entity called \textit{sequencers}, which are independent participants responsible for collecting, validating, and processing votes before committing them to the shared state. - + \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 management smart contract. 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 available 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. \\ + 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. \\ % \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 the census membership proofs against the commitment to the census data that was originally registered in the process management smart contract. Once the sequencers have processed and verified all votes, they must prove that these verifications were performed correctly. Instead of submitting individual verifications for each vote, they generate a single \ac{ZK} proof that attests to the correctness of all verifications. - %they compress multiple individual verification into one. - Additionally, the sequencers reencrypt the votes and generate a proof of the correct reencryption computation. While this process does not alter the final tally, it prevents voters from decrypting their original vote. This step mitigates vote selling or coercion, as voters are no longer able to prove their choice to third parties. Finally, sequencers submit the reencrypted votes along with their verification and reencryption proofs to the process management smart contract. The smart contract verifies all the proofs provided by the sequencers to check that they complied with the protocol.\\ + 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 reencrypts the votes, so that voters can no longer decrypt or recognize their own ballots, and also reencrypts 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. + 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 reencryption, 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} - \item \textit{Tally decryption}. - At the end of the voting period, the smart contract ceases to accept new state updates. %,effectively finalizing the process. - Then, a threshold number of key wardens cooperate to reconstruct a partial decryption key that allows to decrypt the final tally. -% the key wardens cooperate to open the final encrypted tally. Each of them contributes a verifiable decryption share, and once enough such shares have been published, the election outcome can be recovered. This ensures that ballots stay encrypted during the election while still allowing the final result to be publicly obtained and audited once voting has closed. -% the key wardens collaborate to enable the decryption of the final tally. - That is, instead of reconstructing the election's private key, each key warden publishes a partial decryption together with a proof that the contribution is correct. - %As soon as a threshold number of valid partial decryptions has been made available, the encrypted tally can be opened and the plaintext results can be recovered. + \item \textit{Tally decryption}. + At the end of the voting period, sequencers stop accepting votes and settle the batches they still hold during a short grace window, after which the registry ceases to accept new state updates. + Then, a threshold number of \keywardens cooperate to decrypt the final tally. + That is, instead of reconstructing the election's private key, each \keywarden publishes a partial decryption together with a proof that the contribution is correct. When the key is held by a single sequencer, that sequencer decrypts the tally itself and proves the decryption. This way, the individual votes remain encrypted throughout the voting period, and only the final aggregated result is decrypted at the end of the election. \\ % - \item \textit{Election finalization}. - %At the end of the voting period, the smart contract ceases to accept new state updates, effectively finalizing the process. - The results and a proof of correctness are submitted to the results verification smart contract. The contract verifies the proof, ensuring that the tally has been derived faithfully from the final state. Once this verification succeeds, the results and the latest state root remain available on-chain, providing an immutable record of the election outcome that can be independently audited by anyone. -\end{enumerate}+ \item \textit{Election finalization}. + The results and a proof of correctness are submitted to the process registry. The registry checks that the decrypted tally corresponds to the encrypted tally committed in the final state: either by verifying a \ac{ZK} proof of the decryption, or by binding the final encrypted tally to the state root before handing it to the \keywardens and reading the decryptions they proved. Once this verification succeeds, the results and the latest state root remain available on-chain, providing an immutable record of the election outcome that can be independently audited by anyone. +\end{enumerate}
@@ -1,38 +1,67 @@
% !TeX root = ../build/main.tex -The \davinci protocol operates on an Ethereum-compatible network, which serves as the source of truth for the election. By leveraging an Ethereum virtual machine (EVM) blockchain, all election transitions become immutable and publicly verifiable. To coordinate and validate each phase of the process, DAVINCI deploys a set of smart contracts that enforce protocol rules, verify \ac{ZK} proofs, and maintain on-chain commitments such as state roots, encryption keys, and final results. Together, these contracts provide a trustless execution environment that guarantees the correct and transparent progression of the election without relying on any centralized authority. +The \davinci protocol operates on an Ethereum-compatible network, which serves as the source of truth for the election. By leveraging an \ac{EVM} blockchain, all election transitions become immutable and publicly verifiable. To coordinate and validate each phase of the process, \davinci deploys a set of smart contracts that enforce protocol rules, verify \ac{ZK} proofs, and maintain on-chain commitments such as state roots, encryption keys, and final results. Together, these contracts provide a trustless execution environment that guarantees the correct and transparent progression of the election without relying on any centralized authority. The contracts are deployed either on Ethereum, where they read the blobs of their own chain, or on an OP Stack rollup in L1-blob mode, where they verify blobs published on Ethereum. Fig.~\ref{fig:smart-contracts} shows the contracts and their dependencies. + +\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.} + \label{fig:smart-contracts} +\end{figure} + +\paragraph{Process registry.} -\paragraph{Organization 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{\orgregistry} smart contract is used to create and manage organizations within the system. Each organization is identified by the Ethereum address of its creator and is associated with a name and a URL pointing to its metadata. At this stage, the contract serves only as a registration mechanism, but it lays the foundation for future extensions, such as managing multiple elections under the same organization. +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. -\paragraph{Census management.} +\begin{table}[h] + \centering + \caption{Per-process record stored by the process registry.} + \label{tab:process-record} + \small + \begin{tabular}{p{0.27\textwidth} p{0.66\textwidth}} + \toprule + \textbf{Field} & \textbf{Content} \\ + \midrule + \texttt{status} & One of \texttt{READY}, \texttt{PAUSED}, \texttt{ENDED}, \texttt{CANCELED}, \texttt{RESULTS} (see Fig.~\ref{fig:process-status}). \\ + \texttt{organizationId} & Address of the creator, the only account allowed to change the process. \\ + \texttt{startTime}, \texttt{duration} & Voting period; the end time is $\texttt{startTime} + \texttt{duration}$. \\ + \maxvoters & Maximum number of distinct voters (ballot slots) the process accepts. \\ + \ballotmode & Ballot protocol parameters (see Section~\ref{sec:ballot-protocol}). \\ + \texttt{census} & Census origin, root, \ac{URI}, and, for an on-chain census, contract address. \\ + \epk & BabyJubjub public key under which ballots are encrypted. \\ + \keymode, \texttt{dkgEpochId}, \texttt{dkgAid} & Who holds the election key, and the identifiers of the key in the \ac{DKG} or council manager. \\ + \texttt{latestStateRoot} & Root of the state tree after the last settled transition. \\ + \voterscount, \overwrittencount & Number of distinct ballot slots written, and number of overwrites. \\ + \texttt{batchNumber}, \lastvoteat & Number of settled transitions, and time of the last one. \\ + \grace & Idle window during which transitions keep settling after the end. \\ + \metadatauri, \texttt{metadataHash} & Location and SHA-256 digest of the metadata document. \\ + \texttt{result} & Decrypted tally, one value per ballot field. \\ + \bottomrule + \end{tabular} +\end{table} -This contract is only used by the on-chain dynamic census model (see Section~\ref{sec:vocdoni-protocol:census}), since the off-chain and \ac{CSP} models store the -census commitment directly as a parameter and require no such contract. This contract maintains the census as an on-chain \ac{IMT} and exposes (i) the current census root, (ii) the total voting power recorded for a given root, and (iii) the validity of a root, returning the last block at which it was valid. -%To bound storage, only a recent window of roots is retained. During each state transition, the \electionregistry\ contract queries the census contract to confirm that the \censusroot\ used in the membership proof is still valid---and no older than the election's creation block---rejecting the transition otherwise. This lets the census grow during the voting period while ensuring sequencers can only prove membership against roots the contract recognizes. +\paragraph{ZisK verifier.} -\paragraph{Key management.} +The \hlset{\ziskverifier} contract verifies the PlonK proofs that wrap the \ac{STARK} proofs of the \ac{zkVM}. It exposes a single function, +\[ \fn{verifySnarkProof}(\programvk, \rootc, \publicvalues, \pi), \] +which reverts unless $\pi$ is a valid PlonK proof for the public input +\[ \Sha(\programvk \conc \publicvalues \conc \rootc) \bmod s, \] +where $s$ is the order of the BN254 scalar field. The public values are the 64 output words of the guest program (512 bytes) and the proof is 768 bytes long, independently of the batch size. Because the program key and the setup root are part of the hashed input, the same verifier contract serves the batch program and the results program, and a proof of any other program or setup fails. The contract is generated by the ZisK setup and contains no \davinci-specific logic; sequencers check the hash of its code against a pinned value before trusting a registry. -The \hlset{\dkgmanagement} smart contract coordinates the \ac{DKG} process among the \keywardens. It records their contributions, verifies proofs of correct participation, and ensures that a valid encryption public key is produced once the \ac{DKG} round is complete. +\paragraph{Point-evaluation precompile.} -\paragraph{Election registry.} +The point-evaluation precompile of EIP-4844, at address \texttt{0x0A}, takes a versioned hash, an evaluation point $z$, a claimed value $y$, a \ac{KZG} commitment, and an opening proof, and succeeds only if the commitment matches the versioned hash and the committed blob polynomial evaluates to $y$ at $z$. The registry calls it once per blob of every state transition, with the point and value that the batch program derived and committed to (see Section~\ref{sec:vocdoni-protocol:circuits:batch}). The precompile is available on Ethereum and on OP Stack chains alike. -The \hlset{\electionregistry} smart contract manages the lifecycle of each election, from its creation to the registration of final results. It maintains the election’s current state and ensures that all transitions follow the protocol. +\paragraph{L1 blob verifier.} -\paragraph{State transition verifier.} +The \hlset{\lblobverifier} contract is used only by registries deployed in L1-blob mode on an OP Stack rollup. It proves on the rollup that a set of Ethereum blob transactions belongs to the canonical Ethereum chain, and returns the versioned hashes they carry. Its input is a list of Ethereum block headers, newest first, and a list of transactions, each with a \ac{MPT} proof against the transactions root of one of the headers. The verifier hashes every header, checks that each one is the parent of the previous one, and requires one of them, the \emph{anchor}, to be either the current L1 origin exposed by the \lblock system contract or an origin recorded earlier. Every transaction must sit in the anchor or in an older header, at most $\texttt{MAX\_AGE} = 7200$ Ethereum blocks (one day) behind the current origin, and must be a blob-carrying (type-3) transaction, whose list of versioned hashes is returned together with the block number of each. Because the L1 origin advances every few seconds, the verifier also offers a permissionless function, \fn{record}, that stores the current origin's number and hash, so that a proof can later be anchored at that block. The contract has no owner and no other state. -The \hlset{\statetransitionverifier} is responsible for validating the proofs that attest to correct updates of the election state. It stores the verification key corresponding to the state transition circuit (see Section~\ref{sec:vocdoni-protocol:circuits:state-transition}) and checks that each submitted proof correctly links the previous and new state roots. Only transitions verified through this contract are accepted as valid updates by the process registry. +\paragraph{Key management.} -\paragraph{Results verifier.} +Elections whose key is held by \keywardens rely on external key-management contracts, reached through adapters that the registry deploys in its constructor and that are the only accounts allowed to request decryptions on its behalf. The \hlset{\dkgadapter} connects the registry to the davinci-dkg contracts~\cite{davinci-dkg}: the \dkgregistry, which records the operators eligible for committees; the \dkgmanager, which runs the epochs in which a committee jointly generates a pool of keys and later decrypts ciphertexts; and the \dkgappmanager, which assigns pool keys to applications (here, elections). The \hlset{\counciladapter} connects the registry to the \councilmanager~\cite{davinci-council}, which runs invite-only key ceremonies and their decryptions. Both managers verify a \ac{ZK} proof for every contribution to a key and for every partial decryption, so the registry can read their decrypted values without trusting the parties who submitted them. A registry deployed without a manager simply disables the corresponding key modes. -The \hlset{\resultsverifier} contract validates the proof of correct tally computation. It contains the verification key for the results circuit (see Section~\ref{sec:vocdoni-protocol:circuits:results}) and ensures that the final results submitted by the organizer match the commitments from the final state. Once verified, the results and their proof are permanently recorded on-chain, providing a tamper-proof reference for the election outcome.\\ +\paragraph{Census contract.} -%1. OrganizationRegistry: se utiliza para crear una organización (que asocia la address del creador con un nombre y una URL a sus metadatos). No tiene ningún otro rol de momento. -%2. ProcessRegistry: registra como dices todo el proceso de una election, desde su creación hasta registrar los resultados (incluyendo el stateroot en cada momento). En resumen: -%Genera el state root inicial (aun no, pero lo hará). -%Controla el status de la election (ready, pause, ...). -%Verifica las state transitions y actualiza el state de la election. -%Verifica los resultados una vez que son calculados. -%3. (Encara no): Coordinación DKG -%4. Verifier: Realmente son 2 verifiers, el de las statetransitions y el de los results (uno por cada circuito porque cada uno contiene la verification key que debe).+This contract is only used by the on-chain census model (see Section~\ref{sec:vocdoni-protocol:census}), since the off-chain and \ac{CSP} models store the census commitment directly as a parameter and require no such contract. An on-chain census implements the \hlset{\censusvalidator} interface: it maintains the census as a lean \ac{IMT} that only grows, and exposes the current census root and, for any root, the last block at which that root was current (zero for a root it never held). During each state transition, the \processregistry queries the census contract to confirm that the \censusroot used in the membership proofs was current at some block no older than the election's creation block, rejecting the transition otherwise. This lets the census grow during the voting period while ensuring sequencers can only prove membership against roots the contract recognizes.
@@ -1,76 +1,78 @@
% !TeX root = ../build/main.tex -% \noi Merkle trees are used to create a cryptographic representation of both the voter census registry and the election state. +The state Merkle tree, denoted by $\hlset{\stateTree}$, represents the evolving global state of an election in \davinci. It is implemented as a \ac{SMT} of fixed depth $D = 64$, as described in Appendix~\ref{sec:cryptographic-primitives:merkle-trees}. The state tree acts as a cryptographic accumulator that compactly commits to all relevant election data, including configuration parameters, vote identifiers, encrypted ballots, and the encrypted tally. +By organizing the election state in a single \ac{SMT}, \davinci supports efficient membership and update proofs that can be verified inside \ac{ZK} proofs, enabling succinct and verifiable state transitions. Its structure is depicted in Fig.~\ref{fig:state-tree}. -The state Merkle tree, denoted by $\hlset{\stateTree}$, represents the evolving global state of an election in \davinci. It is implemented as a \ac{SMT} of fixed depth $D = 64$, as described in Appendix~\ref{sec:cryptographic-primitives:merkle-trees}. The state tree acts as a cryptographic accumulator that compactly commits to all relevant election data, including configuration parameters, vote identifiers, and encrypted ballots. -By organizing the election state in a single \ac{SMT}, \davinci supports efficient membership and update proofs that can be verified inside \ac{ZK} circuits, enabling succinct and verifiable state transitions. +The root of the state tree, denoted $\stateroot$, is committed on-chain and serves as the authoritative reference to the current election state. Each state transition performed by a sequencer updates the tree and produces a new root. The correctness of this update, namely, that it follows the protocol rules and correctly incorporates new votes, is attested by a proof of the batch program, which the $\hlget{\processregistry}$ smart contract verifies before the new root is accepted. -The root of the state tree, denoted $\stateroot$, is committed on-chain and serves as the authoritative reference to the current election state. Each state transition performed by a sequencer updates the tree and produces a new root. The correctness of this update, namely, that it follows the protocol rules and correctly incorporates new votes, is attested by a \ac{ZK-SNARK} proof, which is verified by the $\hlget{\statetransitionverifier}$ smart contract before the new root is accepted. +\begin{figure}[h] + \centerline{\includegraphics[width=\textwidth,draft=false]{\figs/state-tree.pdf}} + \setlength{\abovecaptionskip}{5pt} + \caption{Structure of the state Merkle tree. The 64-bit key space is split into three namespaces: configuration parameters, encrypted ballot slots, and vote identifiers.} + \label{fig:state-tree} +\end{figure} +\paragraph{Hashing and encoding.} -\paragraph{Namespaced key space.} +The state tree uses the SHA-256 hash function (\hlget{\Sha}, see Appendix~\ref{sec:cryptographic-primitives:hash}), which both the \ac{zkVM} and the \ac{EVM} evaluate efficiently. A leaf with key $\kappa$ and value $v$ is hashed as $\Sha(\kappa_{\text{LE8}} \conc v_{\text{LE32}} \conc \texttt{0x01})$, where the subscripts denote the little-endian encoding of the key in 8 bytes and of the value in 32 bytes, and an internal node with children $L$ and $R$ is hashed as $\Sha(L \conc R)$. The path of a key is given by its bits, least significant first. Values that are themselves digests, such as the hash of an encrypted ballot, are SHA-256 outputs read as big-endian integers. The state root is the raw 32-byte digest of the root node, and it is stored as such in the registry. Following the arbo convention, a digest denotes the integer of which it is the little-endian encoding; when the root is used as an integer, for instance in the evaluation points of the blobs, its value is read in little-endian order. -The state tree operates over keys in the range $[0, 2^D-1] \subset \mathbb{F}_p$ and uses a SNARK-friendly hash function (\hlget{\Poseidon}, see Appendix~\ref{sec:cryptographic-primitives:hash}) to enable efficient in-circuit verification. To prevent collisions between different categories of data stored in the state, the 64-bit key space is partitioned into three disjoint numeric namespaces using a fixed thershold $N$. We define \( N = 2^{D-1}\), -which we use to split the address space into a lower region for configuration parameters and encrypted ballot storage, and an upper region strictly reserved for vote identifiers. This strict separation ensures that configuration entries, vote identifiers, and ballots never collide. %The structure of the tree is depicted in Fig.~\ref{fig:mt-state}. -%the 64-bit key space is partitioned into disjoint numeric namespaces by leveraging the most significant bit (MSB) of the address, effectively splitting the space exactly in half at the threshold N. +\paragraph{Namespaced key space.} - -%\begin{figure}[h] -% \centerline{\includegraphics[width=450pt,draft=false]{\figs/mt-state-mermaid}} -% \caption{Structure of the state Merkle tree. The first leaves are reserved for global election parameters while subsequent leaves store vote identifiers and encrypted ballots.} -% \label{fig:mt-state} -%\end{figure} +The state tree operates over keys in the range $[0, 2^D-1]$. To prevent collisions between different categories of data stored in the state, the 64-bit key space is partitioned into three disjoint numeric namespaces using a fixed threshold $N$. We define \( N = 2^{D-1}\), +which we use to split the key space into a lower region for configuration parameters and encrypted ballot storage, and an upper region strictly reserved for vote identifiers. Within the lower region, the first sixteen keys are reserved for configuration. This strict separation ensures that configuration entries, vote identifiers, and ballots never collide. \paragraph{Configuration namespace.} The lowest indices of the tree are reserved for a small set of process parameters. Most are configuration values fixed at election setup and never modified thereafter -(\processid, \ballotmode, \epk, \censusorigin); the remaining entry is a mutable accumulator (\encresults) updated on every state transition. In all cases these keys -occupy deterministic, well-known positions and use a negligible portion of the address space. The default entries are: -%The lowest indices of the tree are reserved for a small set of process parameters and accumulators. Their positions are deterministic and occupy a negligible portion of the address space. Typical entries include: +(\processid, \ballotmode, \epk, \censusorigin, \ballotvkhash); the remaining entry is a mutable accumulator (\encresults) updated on every state transition. In all cases these keys +occupy deterministic, well-known positions and use a negligible portion of the key space. The entries are: \begin{itemize} - \item \texttt{0x0}: the election identifier (\processid). - %\footnote{The index \texttt{0x1} is reserved for backward compatibility (historically used for alternative census structures).} + \item \texttt{0x0}: the election identifier (\processid), read as a 248-bit integer. \footnote{The indices \texttt{0x1} and \texttt{0x5} are currently unused: \texttt{0x1} is reserved for backward compatibility (historically used for alternative census structures), and \texttt{0x5} is reserved for future use (an earlier design stored a separate subtractive results accumulator there; the current design keeps a single net results accumulator at - \texttt{0x4}).} - \item \texttt{0x2}: the ballot mode configuration, which is the set of rules for validating votes (\ballotmode). - \item \texttt{0x3}: the encryption public key used to encrypt the ballots (\epk). - \item \texttt{0x4}: the running encrypted results (\encresults). -% \item \texttt{0x5}: an accumulator of the encrypted votes that have been overwritten (\substractaccumulator). - \item \texttt{0x6}: the census origin (\censusorigin). %and \type, a field in case the organization was using a different structure for the census than a MT. + \texttt{0x4}). The indices \texttt{0x8} to \texttt{0xF} are reserved for future parameters.} + \item \texttt{0x2}: the ballot mode configuration, which is the set of rules for validating votes (\ballotmode), packed into a single 247-bit integer (see Section~\ref{sec:ballot-protocol}). + \item \texttt{0x3}: the encryption public key used to encrypt the ballots (\epk). For a key with twisted Edwards coordinates $(x,y)$, the leaf stores $\Sha(x_{\text{BE32}} \conc y_{\text{BE32}})$. + \item \texttt{0x4}: the running encrypted results (\encresults), stored as the SHA-256 digest of the 64 coordinates of its 16 ciphertexts, each encoded in 32 big-endian bytes. + \item \texttt{0x6}: the census origin (\censusorigin). + \item \texttt{0x7}: the digest of the ballot circuit's verification key (\ballotvkhash), which fixes the only ballot proofs the batch program accepts for this election. \end{itemize} -Let $\configmax$ denote the largest index reserved for configuration parameters (by default, $\configmax = 15$). +Let $\configmax$ denote the largest index reserved for configuration parameters, $\configmax = 15$. When an election is created, the \processregistry computes the \emph{genesis root}: the root of the tree that contains exactly the six entries above, with \encresults set to the identity accumulator, in which every ciphertext is the pair of identity points $((0,1),(0,1))$ and therefore an encryption of zero. Every subsequent transition must start from the root the registry holds, so the configuration of an election cannot differ from the one recorded on-chain. \paragraph{Encrypted ballot namespace.} -The region immediately following the configuration parameters, the interval $[\configmax + 1, N - 1]$, is reserved for storing encrypted ballots. -%In contrast to vote identifiers, -Ballot storage locations are deterministic and derived from the voter's position in the census. Let $\idx$ denote the voter's census index (see Section~\ref{sec:vocdoni-protocol:census}), proven via a census membership proof. The storage path for the encrypted ballot is computed as -\[ -\text{encPath} = \configmax + \idx \cdot 2^{16} + (\address \bmod 2^{16}). -\] -This construction assigns each eligible voter a unique, reserved leaf in the state tree. Because the index $\idx$ is authenticated by the census, a voter can only write to their own slot. This enables efficient \emph{last-vote-wins} semantics: if a voter overwrites their ballot, the new ciphertext replaces the previous one at the same path, while the tally is updated by subtracting the old contribution and adding the new one. +The region immediately following the configuration parameters, the interval $[\configmax + 1, N - 1]$, is reserved for storing encrypted ballots. +Ballot storage locations, called \emph{slots}, are deterministic and derived from the voter's identity. For a Merkle census, the slot is derived from the voter's address: +\begin{equation} + \begin{aligned} + h &= \Sha(\texttt{"davinci-slot-v1"} \conc \address_{\text{20}}),\\ + \slot(\address) &= (\configmax + 1) + \bigl(\mathsf{BE64}(h_{[0..8]}) \bmod (N - \configmax - 1)\bigr), + \end{aligned} + \label{eq:slot} +\end{equation} +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 reencryption 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}. -\martai{The leaf stores the ciphertext and the address of the voter. Justify that this is to prevent CPS' and dynamic census to assign the same encPath to two different people.} -\martai{If $idx = 0$ and $address = 0$, then $encPath = configMax$ but the lower limit should be $configMax + 1$.} +Besides the slots written by votes, every state transition also rewrites a random sample of already occupied slots with fresh reencryptions 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. \paragraph{Vote identifier namespace.} -The upper portion of the tree, $[N, 2^D - 1]$ is reserved for \emph{vote identifiers} (\voteid), which allows voters to verify that their vote has been included in the election state, without revealing or linking to the corresponding encrypted ballot. Vote identifiers are derived by hashing the process identifier, the voter’s address, and fresh randomness, and then mapping the result into the allowed range by setting the most significant bit to 1: -\[ -\voteid = N + \bigl(\hlget{\Poseidon}(\processid,\address,k) \bmod N\bigr). -\] -The \hlget{\statetransitioncircuit} recomputes this derivation and enforces that $N \le \voteid < 2^D$, guaranteeing that vote identifiers cannot overlap with configuration entries or ballot storage. +The upper portion of the tree, $[N, 2^D - 1]$, is reserved for \emph{vote identifiers} (\voteid), which allow voters to verify that their vote has been included in the election state, without revealing or linking to the corresponding encrypted ballot. Vote identifiers are derived by hashing the process identifier, the voter's address, and fresh randomness, and then mapping the result into the allowed range by setting the most significant bit to 1: +\begin{equation} + \voteid = N + \bigl(\hlget{\Poseidon}(\processid,\address,k) \bmod N\bigr), + \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. Instead, correctness is enforced at the circuit level: the state transition circuit guarantees that a vote identifier can only be inserted if the corresponding leaf in the state tree is empty. This emptiness check is enforced inside the ZK circuit. Since the vote identifier depends on a fresh random value $k$, if a collision occurs (i.e., the computed leaf is already occupied), the circuit will reject the transition. In that case, the voter must resample $k$ and recompute a new vote identifier until an unused leaf is obtained. +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$, reencrypt 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. -Note that the maximum number of vote identifiers that can be stored is bounded by the size of this namespace ($2^{D-1}$), +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 deployment, ensuring that identifier exhaustion is practically impossible. 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.4\%$, meaning that the need to resample $k$ remains highly improbable.}. -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.+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.
@@ -2,9 +2,9 @@ % !TeX root = ../build/main.tex
This section outlines the \davinci voting protocol. First, we introduce the parties involved in the process in Section~\ref{sec:vocdoni-protocol:parties}. -In Section~\ref{sec:vocdoni-protocol:smart-contracts} we present the Ethereum smart contracts that rule the \davinci protocol. +In Section~\ref{sec:vocdoni-protocol:smart-contracts} we present the smart contracts that rule the \davinci protocol. Then, in Section~\ref{sec:vocdoni-protocol:census}, we describe the census data structures and in Section~\ref{sec:vocdoni-protocol:state-tree} the state Merkle tree. -In Section~\ref{sec:vocdoni-protocol:circuits}, we present the \ac{ZK} circuits used to enforce vote validity, authentication, aggregation, state transitions, and results computation. +In Section~\ref{sec:vocdoni-protocol:circuits}, we present the proof statements that enforce the protocol: the ballot circuit proven by voters, and the batch and results programs proven by sequencers in a \ac{zkVM}. Finally, in Section~\ref{sec:vocdoni-protocol:flow}, we detail the full protocol flow step by step, from the voting setup to the results validation and process finalization. \subsection{Parties involved}@@ -23,7 +23,7 @@ \subsection{State tree}
\label{sec:vocdoni-protocol:state-tree} \input{\secs/state-tree.tex} -\subsection{Circuits} +\subsection{Circuits and zkVM programs} \label{sec:vocdoni-protocol:circuits} \input{\secs/circuits.tex}