fixes to state tree entries, figures, and few descriptions
jump to
@@ -4,6 +4,15 @@ title = {{TODOtitle}},
url = {TODOurl}, year = 9999} +@article{chaum1981, + author = {Chaum, David L.}, + title = {Untraceable Electronic Mail, Return Addresses, and Digital Pseudonyms}, + journal = {Communications of the {ACM}}, + volume = {24}, + number = {2}, + pages = {84--88}, + year = 1981} + @article{diffie1976new, author = {Diffie, Whitfield and Hellman, Martin}, title = {New directions in cryptography},@@ -57,6 +66,13 @@ pages = {129--140},
organization= {Springer}, year = 1991} +@inproceedings{benaloh1994, + author = {Benaloh, Josh and Tuinstra, Dwight}, + title = {Receipt-Free Secret-Ballot Elections (Extended Abstract)}, + booktitle = {Proceedings of the Twenty-Sixth Annual {ACM} Symposium on Theory of Computing ({STOC})}, + pages = {544--553}, + year = 1994} + @book{blake1995elliptic, author = {Blake, Ian F. and Seroussi, G. and Smart, N. P.}, title = {Elliptic curves in cryptography},@@ -92,6 +108,16 @@ pages = {483-486},
doi = {10.1109/APCCAS.1998.743829}, year = 1998} +@inproceedings{hirt2000, + author = {Hirt, Martin and Sako, Kazue}, + title = {Efficient Receipt-Free Voting Based on Homomorphic Encryption}, + booktitle = {Advances in Cryptology -- {EUROCRYPT} 2000}, + series = {LNCS}, + volume = {1807}, + pages = {539--556}, + publisher = {Springer}, + year = 2000} + @inproceedings{damgaard2000practical, author = {Damgård, Ivan and Koprowski, Maciej}, title = {Practical Threshold RSA Signatures Without a Trusted Dealer},@@ -134,6 +160,16 @@ institution = {National Institute of Standards and Technology},
url = {https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf}, year = 2007} +@inproceedings{helios2008, + author = {Adida, Ben}, + title = {{Helios}: Web-based Open-Audit Voting}, + booktitle = {17th {USENIX} Security Symposium ({USENIX} Security 08)}, + pages = {335--348}, + publisher = {{USENIX} Association}, + address = {San Jose, CA}, + year = {2008}, + url = {https://www.usenix.org/legacy/event/sec08/tech/full_papers/adida/adida.pdf}} + @article{nakamoto2008bitcoin, author = {Nakamoto, Satoshi}, title = {Bitcoin: A peer-to-peer electronic cash system},@@ -294,6 +330,16 @@ note = {\url{https://eprint.iacr.org/2017/1066}},
url = {https://eprint.iacr.org/2017/1066}, year = 2017} +@inproceedings{mccorry2017, + author = {McCorry, Patrick and Shahandashti, Siamak F. and Hao, Feng}, + title = {A Smart Contract for Boardroom Voting with Maximum Voter Privacy}, + booktitle = {Financial Cryptography and Data Security}, + series = {LNCS}, + volume = {10322}, + pages = {357--375}, + publisher = {Springer, Cham}, + year = 2017} + @inproceedings{fuchsbauer2018algebraic, author = {Fuchsbauer, Georg and Kiltz, Eike and Loss, Julian}, title = {The algebraic group model and its applications},@@ -325,6 +371,16 @@ howpublished= {An act to add {T}itle 1.81.5 (commencing with {S}ection 1798.100) to {P}art 4 of {D}ivision 3 of the {C}ivil {C}ode, relating to privacy.},
note = {Available online: \url{https://leginfo.legislature.ca.gov/faces/billTextClient.xhtml?bill_id=201720180AB375}}, year = 2018} +@inproceedings{belenios2019, + author = {Cortier, V{\'e}ronique and Gaudry, Pierrick and Glondu, St{\'e}phane}, + title = {{Belenios}: A Simple Private and Verifiable Electronic Voting System}, + booktitle = {Foundations of Security, Protocols, and Equational Reasoning}, + series = {LNCS}, + volume = {11565}, + pages = {214--238}, + publisher = {Springer, Cham}, + year = 2019} + @article{gabizon2019plonk, author = {Gabizon, Ariel and Williamson, Zachary J and Ciobotaru, Oana}, title = {Plon{K}: Permutations over lagrange-bases for oecumenical noninteractive arguments of knowledge},@@ -342,6 +398,25 @@ author = {Goodell, Brandon and Noether, Sarang and Blue, Arthur},
title = {Concise Linkable Ring Signatures and Forgery Against Adversarial Keys}, journal = {Cryptology ePrint Archive}, year = 2019} + +@inproceedings{kirillov2019, + author = {Kirillov, Denis and Korkhov, Vladimir and Petrunin, Vadim + and Makarov, Mikhail and Khamitov, Iurii M. and Dostov, Victor}, + title = {Implementation of an {E-voting} Scheme Using {Hyperledger Fabric} + Permissioned Blockchain}, + booktitle = {Computational Science and Its Applications -- {ICCSA} 2019}, + series = {LNCS}, + volume = {11620}, + pages = {509--521}, + publisher = {Springer, Cham}, + year = 2019} + +@misc{maci2019, + author = {Buterin, Vitalik}, + title = {Minimal Anti-Collusion Infrastructure}, + howpublished= {Ethereum Research Forum (ethresear.ch)}, + year = {2019}, + url = {https://ethresear.ch/t/minimal-anti-collusion-infrastructure/5413}} @misc{erc2494, author = {Barry WhiteHat and Marta Bellés and Jordi Baylina},@@ -392,6 +467,13 @@ pages = {337--354},
publisher = {Springer}, year = 2020} +@misc{semaphore2020, + author = {Gurkan, Kobi and Wei Jie, Koh and Whitehat, Barry}, + title = {Semaphore: Zero-Knowledge Signaling on {Ethereum}}, + howpublished= {{ZKProof} Community Proposal, Workshop 3}, + year = {2020}, + url = {https://semaphore.pse.dev/whitepaper-v1.pdf}} + %BW6-761 @inproceedings{elhousni2020optimized, author = {El Housni, Youssef and Guillevic, Aurore},@@ -442,14 +524,52 @@ url = {https://eips.ethereum.org/EIPS/eip-4844},
month = {February}, year = 2022} +@misc{cicada2023, + author = {Glaeser, Noemi and Seres, Istv{\'a}n Andr{\'a}s and Zhu, Michael and Bonneau, Joseph}, + title = {{Cicada}: A Framework for Private Non-Interactive On-Chain Auctions and Voting}, + howpublished= {Cryptology {ePrint} Archive, Paper 2023/1473}, + year = 2023} + +@inproceedings{doan2024, + author = {Doan, Thi Van Thao and Pereira, Olivier and Peters, Thomas}, + title = {Threshold Receipt-Free Single-Pass {eVoting}}, + booktitle = {Electronic Voting -- {E-Vote-ID} 2024}, + series = {LNCS}, + volume = {15014}, + publisher = {Springer}, + year = 2024} + +@misc{freedomtool2024, + author = {Rarimo}, + title = {Freedom Tool: Privacy-Preserving Passport-Based Voting}, + howpublished= {Whitepaper, Rarimo}, + year = {2024}, + url = {https://docs.rarimo.com/freedom-tool/}} + +@misc{shutter2024, + author = {Noack, Jannik and Bormet, Leonhard and others}, + title = {{Shutter} Network: Private Transactions from Threshold Cryptography}, + howpublished= {Cryptology {ePrint} Archive, Paper 2024/1981}, + year = 2024} @misc{reuters2024india, - author = {{Reuters}}, - title = {India’s 2024 General Election Sees Record Participation with 642 Million Votes Cast}, - year = {2024}, - howpublished = {\url{https://www.reuters.com/world/india/india-poll-panel-says-642-mln-voters-cast-ballots-general-election-2024-06-03/}}, - note = {Accessed 2026-01-22} -} + author = {{Reuters}}, + title = {India’s 2024 General Election Sees Record Participation with 642 Million Votes Cast}, + year = {2024}, + howpublished= {\url{https://www.reuters.com/world/india/india-poll-panel-says-642-mln-voters-cast-ballots-general-election-2024-06-03/}}, + note = {Accessed 2026-01-22}} + +@inproceedings {electionguard2024, + author = {Josh Benaloh and Michael Naehrig and Olivier Pereira and Dan S. Wallach}, + title = {{ElectionGuard}: a Cryptographic Toolkit to Enable Verifiable Elections}, + booktitle = {33rd USENIX Security Symposium (USENIX Security 24)}, + year = {2024}, + isbn = {978-1-939133-44-1}, + address = {Philadelphia, PA}, + pages = {5485--5502}, + url = {https://www.usenix.org/conference/usenixsecurity24/presentation/benaloh}, + publisher = {USENIX Association}, + month = aug} %%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%% No year %%%%%%%%%%
@@ -1,5 +1,5 @@
-\documentclass[runningheads, draft]{llncs} -%\documentclass{llncs} +%\documentclass[runningheads, draft]{llncs} +\documentclass{llncs} %\documentclass{article} % CONSIDERATIONS
@@ -184,8 +184,8 @@ \newcommand{\signature}{\variablestyle{signature}}
\newcommand{\address}{\variablestyle{address}} \newcommand{\stateproof}{\variablestyle{stateProof}} \newcommand{\merkleproofs}{\variablestyle{merkleProofs}} -\newcommand{\merkleInclusionPf}{\variablestyle{merkleInclusionProof}} -\newcommand{\merkleNInclusionPf}{\variablestyle{merkleNonInclusionProof}} +\newcommand{\merkleInclusionPf}{\variablestyle{inclusionProof}} +\newcommand{\merkleNInclusionPf}{\variablestyle{nonInclusionProof}} \newcommand{\configmax}{\variablestyle{configMax}} % State Merkle tree@@ -197,6 +197,7 @@ \newcommand{\state}{\variablestyle{state}}
\newcommand{\ballotmode}{\variablestyle{ballotMode}} \newcommand{\epk}{\variablestyle{encryptionKey}} \newcommand{\decryptionkey}{\variablestyle{decryptionKey}} +\newcommand{\encresults}{\variablestyle{encryptedResults}} \newcommand{\addaccumulator}{\variablestyle{resultsAdd}} \newcommand{\substractaccumulator}{\variablestyle{resultsSub}} \newcommand{\addresses}{\variablestyle{addresses}}
@@ -13,7 +13,7 @@
\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 (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. 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.
@@ -6,7 +6,7 @@ \paragraph{Definition of parameters.}
%Each ballot is defined as an array of integer values subject to the following configurable 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. + \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).
@@ -41,8 +41,9 @@ \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}): \[\text{protocolRulesCompliance}(\ballotmode, \weight, \ballot) = \true.\] - \item \emph{Vote identifier}. The vote's identifier is correctly computed: - \[\voteid = \text{Hash} (\processid \conc \address \conc k).\] + \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).\] + \[\voteid = N + \bigl(\hlget{\Poseidon}(\processid,\address,k) \bmod N\bigr).\] \end{itemize} \vspace{-0.3cm} \end{spacing}@@ -56,7 +57,7 @@
\subsubsection{Verifier circuit} \label{sec:vocdoni-protocol:circuits:verifier} -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. {\color{blue}-- Authentication of verification proof?} +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. \begin{spacing}{1.25} \vspace{0.3cm}@@ -178,8 +179,8 @@ \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 $\addaccumulator^\old$: current accumulator of votes (before transitions are applied). - \item \private $\substractaccumulator^\old$: current accumulator of votes that have been overwritten (before transitions). \\ + \item \private $\encresults^\old$: current accumulator of votes (before transitions are applied). \\ +% \item \private $\substractaccumulator^\old$: current accumulator of votes that have been overwritten (before transitions). \\ % \item \private $\{\aggregationproof_i\}_{i = 1}^{N}$: set of aggregation proofs. \item \private $\{\censuspf_i\}_{i = 1}^N$: census membership proofs.@@ -191,10 +192,10 @@ \item \private $\{\address_i\}_{i = 1}^{N}$: list of voters' addresses.
\item \private $\{\weight_i\}_{i = 1}^{N}$: list of voters' weights. \\ % \item \private $\merkleInclusionPf^{\processid}$: proof that $\processid$ is stored in leaf $\texttt{0x0}$ of the state tree. - \item \private $\merkleInclusionPf^{\censusorigin}$: proof that $\censusorigin$ is stored in leaf $\texttt{0x1}$ of the tree. \item \private $\merkleInclusionPf^{\ballotmode}$: proof that $\ballotmode$ is stored in leaf $\texttt{0x2}$ of the state tree. - \item \private $\merkleInclusionPf^{\addaccumulator}$: proof that $\addaccumulator^\old$ is stored in leaf $\texttt{0x3}$ of the state tree. - \item \private $\merkleInclusionPf^{\substractaccumulator}$: proof that $\substractaccumulator^\old$ is stored in leaf $\texttt{0x4}$ of the state tree.\\ + \item \private $\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 $\{\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$.@@ -221,7 +222,7 @@ \item If \texttt{censusOrigin} = CSP, then verify a signature issued by the CSP. Concretely, for all $i \in \{1,\dots,N\}$:
\[ \hlget{\SVer}_{\censusroot}\big((\address_i, \weight_i), \censuspf_i\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. {\color{blue}Missing parameters in the message being signed, e.g. ProcessID.} + 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. {\color{blue}Missing parameters in the message being signed, e.g. $\processid$.} \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\}$: \[@@ -232,13 +233,12 @@ %
\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$, $\addaccumulator^\old$, $\substractaccumulator^\old$, and $\censusorigin$ correspond to the content of the first state tree leaves. + \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}(\addaccumulator^\old, \texttt{0x4}, \merkleInclusionPf^{\addaccumulator}, \stateroot^\old). \\ - &\hlget{\stateTree}.\hlget{\MTVerify}(\substractaccumulator^\old, \texttt{0x5}, \merkleInclusionPf^{\substractaccumulator}, \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:@@ -251,24 +251,25 @@ \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 Refresh reencryption randomness: $k = \hlget{\Mimc}(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: $\addaccumulator = \addaccumulator + \encryptedballot_i$. + \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 Refresh reencryption randomness: $k = \hlget{\Mimc}(k).$ + \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, \address_i)$. - \item Add vote identifier: $\hlget{\stateTree}.\hlget{\MTInsert}(\voteid)$. + \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: $\addaccumulator = \addaccumulator + \encryptedballot_i$. - \item Aggregate the old vote to the accumulator: $\substractaccumulator = \substractaccumulator + \encryptedballot^\old_i$. +% \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:
@@ -22,9 +22,31 @@
\subsection{Related work} \label{sec:introduction:sota} -\begin{itemize} - \item State of the art of e-voting: \url{https://research.azkr.org/blog/evoting-review/}. -\end{itemize} +%https://research.azkr.org/blog/evoting-review/ + +\paragraph{Foundations of cryptographic voting.} +%Cryptographic e-voting begins with Chaum's mix-nets~\cite{chaum1981}, which establish anonymity through verifiable shuffling of ciphertexts. +Cryptographic e-voting originated with Chaum's mix-net construction~\cite{chaum1981}, which achieves anonymity through verifiable shuffling of ciphertexts. +Helios~\cite{helios2008} was the first deployed web-based system to combine threshold ElGamal encryption with a public bulletin board and homomorphic tallying, and it remains a standard reference point for end-to-end (E2E) verifiability in practice. +Belenios~\cite{belenios2019} refines this design with formal verifiability proofs and a clean separation between the registration authority and the voting server; the BeleniosRF variant additionally achieves receipt-freeness, but only under the assumption that the voting server is honest regarding that property. +ElectionGuard~\cite{electionguard2024} belongs to the same family, combining homomorphic tallying with threshold guardians, publicly verifiable proofs, and a centralized election administrator that drives the tally. A common feature of all of these systems is that, beyond their cryptographic core, they require a non-trivial setup of either the bulletin board, the tally authority, or both, and that the operator set is fixed for each election rather than open to participation. + +\paragraph{Receipt-freeness and revoting.} +A receipt-free voting system prevents a voter from producing convincing evidence of their vote, mitigating bribery and simple coercion. Benaloh and Tuinstra~\cite{benaloh1994} gave the first formal notion, and Hirt~\cite{hirt2000} showed how to achieve it efficiently by combining homomorphic encryption with re-encryption performed by a designated helper. +Doan et al.~\cite{doan2024} subsequently generalize Hirt-style receipt-freeness to a setting with multiple ballot-processing servers, removing the single-point-of-failure assumption common to earlier non-interactive constructions. +These constructions remain server-based: none of them places the protocol on a public bulletin board with cryptographically enforced data availability, and the helpers responsible for re-encryption are selected in advance rather than drawn from an open set. + +\paragraph{Blockchain-based and ZK-based voting.} +McCorry et al.~\cite{mccorry2017} proposed the first self-tallying voting contract on Ethereum, but placing every vote directly on-chain is expensive and creates a linkable trail between voters and their choices. Permissioned-ledger proposals~\cite{kirillov2019} improve operational properties but still rest on honest-majority assumptions over a closed set of validators. +Freedom Tool~\cite{freedomtool2024} uses ZK proofs over biometric passports to enforce eligibility, but votes appear on-chain in cleartext, trading ballot secrecy for transparency. +MACI~\cite{maci2019} uses ZK proofs to discourage bribery, but its coordinator is a single trusted party that can read individual votes; although later versions improve usability, this assumption remains. +Semaphore~\cite{semaphore2020} provides anonymous group-membership proofs and is reused as a building block in several voting prototypes, although it is not itself a complete voting protocol. +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{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. +%DAVINCI is the only system among those compared that provides \emph{receipt-freeness} without trusting a server while simultaneously running on \emph{permissionless} ballot-processing infrastructure with on-chain settlement. The cost it pays for this combination is the absence of \emph{cast-as-intended verifiability} at the protocol level; we discuss this gap and compatible second-device remedies in Sections~\ref{sec:e2e-verifiability} and~\ref{sec:conclusions}. Beyond the properties captured in the table, DAVINCI's parametric ballot circuit supports approval, ranking, multiple-choice, and quadratic voting with a single on-chain verifier, allowing arbitrarily many elections of different formats to reuse the same circuit set and trusted-setup ceremony. \subsection{Paper organization} \label{sec:introduction:organization}
@@ -69,13 +69,13 @@ \label{sec:vocdoni-protocol:votes}
In this phase, voters cast their ballots and send them to the sequencers, who collect and process them. \\ -\noi \textbf{(a) Vote casting.} To cast a ballot, a voter does the following: +\noi \textbf{(a) Vote casting.} To cast a ballot, a voter does the following: \textit{\color{blue}-- mention that the voter has a (sk, pk, address) as described in Section~\ref{}.} \begin{enumerate} \item Select a sequencer. \item Retrieve their census membership proof $\censusproof$ to prove eligibility. \item Fetch parameters $\epk$, $\ballotmode$, and $\processid$ from the \hlget{\electionregistry} smart contract. - \item Select their ballot choice $\ballot$ according to the rules of $\ballotmode$. + \item Select their ballot choice $\ballot$ following the rules of $\ballotmode$. \item Sample fresh randomness $k \in \F$ and encrypt the ballot using $\epk$: \begin{equation} \label{eq-ciphertext}@@ -84,9 +84,10 @@ \end{equation}
\item Use their Ethereum address $\address$ and the previous $k$ to compute a unique vote identifier: \begin{equation} \label{eq-voteid} - \voteid ={ }\hlget{\Poseidon}(\processid \conc \address \conc k). + \voteid = N + \bigl(\hlget{\Poseidon}(\processid,\address,k) \bmod N\bigr), \end{equation} - \item Use the \ballotcircuit from Section~\ref{sec:vocdoni-protocol:circuits:ballot} to generate a ZK-SNARK proof to prove that Eqs.~\labelcref{eq-ciphertext,eq-voteid} are correctly computed and that $\ballot$ satisfies the ballot protocol rules according to $\ballotmode$: + where $N$ is defined by the protocol as described in Section~\ref{sec:vocdoni-protocol:circuits:state-transition}. + \item Use the \ballotcircuit from Section~\ref{sec:vocdoni-protocol:circuits:ballot} to generate a \ac{ZK-SNARK} proof to prove that Eqs.~\labelcref{eq-ciphertext,eq-voteid} are correctly computed and that $\ballot$ satisfies the ballot protocol rules according to $\ballotmode$: \begin{align*} \voteproof ={ } & \hlget{\PProve}( \hlget{\ballotcircuit},@@ -97,7 +98,7 @@ \end{align*}
\item Sign the vote identifier with their Ethereum secret key $\sk$ to authenticate the vote and ensure that was cast by a legitimate voter: \[ \signature = \hlget{\SSign}_{\sk}(\voteid).\] \item Submit the package - \[\vote = [\processid, \voteid, \encryptedballot, \censusproof, \voteproof, \signature]\] + \[\vote = [\processid, \voteid, \encryptedballot, \voteproof, \signature]\] to the chosen sequencer. \end{enumerate}@@ -111,35 +112,34 @@
\begin{enumerate} \item Retrieve election identifier $\processid$, current state root $\stateroot$, and census root $\censusroot$ from the \hlget{\electionregistry} smart contract and the associated data from the Ethereum data blobs. \item Upon receiving a vote - \[\vote_i = [\processid, \voteid, \encryptedballot, \censusproof, \voteproof, \signature],\] - extract the voter's public key $\pk_i = \hlget{\SPubKey}(\signature)$. + \[\vote_i = [\processid, \voteid, \encryptedballot, \voteproof, \signature],\] + extract the voter's public key $\pk_i = \hlget{\SPubKey}(\signature)$. -- {\color{blue}Add this function to Appendix.} \item For each $\vote_i$ received, use \verifiercircuit from Section~\ref{sec:vocdoni-protocol:circuits:verifier} to generate a proof \begin{align*} \authenticationproof_i ={ } & \hlget{\PProve}(\hlget{\verifiercircuit}, - \witness = (\ballotproof, \weight, \censusproof, \signature),\\ + \witness = (\ballotproof, \pk, \signature),\\ & \publicinputs = (\processid, \ballotmode, \epk, \encryptedballot, \voteid, \\ - & \censusroot, \pk)). + & \address, \weight)). \end{align*} - This proof ensures that the voter’s \voteproof, the \signature, and the \censusproof are all valid. + This proof ensures that the voter’s \voteproof and \signature are valid. \item Batch a set of $n$ proofs $\{\authenticationproof_i\}_{i = 1}^n$ and batch verify them together using \aggregationcircuit from Section~\ref{sec:vocdoni-protocol:circuits:aggregation}: \begin{align*} \aggregationproof = { } &\hlget{\PProve}(\hlget{\aggregationcircuit}, \witness = (\{\authenticationproof_i\}_{i = 1}^n),\\ - &\publicinputs = (\encryptedballot, \{\voteid_i\}_{i = 1}^n), - \{\pk_i\}_{i = 1}^n, - \processid, - \ballotmode,\\ + &\publicinputs = (\{\encryptedballot\}_{i = 1}^n, \{\voteid_i\}_{i = 1}^n), + \{\address_i\}_{i = 1}^n, + \processid,\\ & - \epk, - \censusroot + \ballotmode, + \epk ). \end{align*} - This proof ensures that the public inputs corresponding to the global process parameters ($\processid$, $\ballotmode$, $\epk$, $\censusroot$) are correct and that all $\authenticationproof_i$ are valid. + This proof ensures that public inputs corresponding to the global process parameters ($\processid$, $\ballotmode$, $\epk$) are correct and that all $\authenticationproof_i$ are valid. \item Prepare the state transition data that will be stored in an Ethereum blob: pack votes/results into a 4096-cell blob \blobdata. \begin{itemize} \item Compute data commitment $\blobcom = \hlget{\CCommit}(\blobdata)$. - \item Derive evaluation point $\evalpoint = \hlget{\Poseidon}(\processid, oldRoot, \blobcom).$ + \item Derive evaluation point $\evalpoint = \hlget{\Poseidon}(\processid, \stateroot^\old, \blobcom).$ \item Prepare polynomial $P$ from $\blobdata$. \item Evaluate $y = P(\evalpoint)$. \item Generate opening proof $\openproof$ from $...$.@@ -147,6 +147,8 @@ \item The following step (circuit) will prove that $y = P(\evalpoint)$.
\end{itemize} \item {\color{blue}Before doing state transitions, we need to prepare the data that will be stored on chain as a blob. Hence, collect xxxx, create commitment. In circuit (next step), we will prove that... .} + + \item {\color{blue}The sequencer must retrieve the voter's membership proof. Add as a footnote that this can be done by the voter and sent to the sequencer, who verifies it, but we want to minimize the actions of the voter.} \item Finally, prove that all transitions are correct .... with circuit from Section~\ref{sec:vocdoni-protocol:circuits:state-transition}. consistency between data blobs and the on-chain state:@@ -159,8 +161,7 @@
\item Verify each $\vote$ submission received by generating a state transition proof (see Section~\ref{sec:vocdoni-protocol:circuits:state-transition}), ensuring: \begin{itemize} \item correct accumulation of encrypted votes via ElGamal’s homomorphic properties, - \item eligibility of voters (via census Merkle proofs), - \item absence of double voting (or correct handling of overwrites via nullifiers), + \item eligibility of voters (via census Merkle proofs), \end{itemize} \item Submit the updated state root to the smart contract, while the full data are stored in Ethereum blobs. \martai{If \stateroot changed, repeat last circuit.}@@ -173,7 +174,7 @@
\subsubsection{Tally decryption} \label{sec:vocdoni-protocol:deckey-gen} -{\color{blue} After the voting period expires, $t$ out of $n$ sequencers publish their decryption shares of the election private key. Once the threshold is reached, the election secret key can be reconstructed (on-chain or off-chain), enabling the decryption of the aggregated tally. +{\color{blue} After the voting period expires, $t$ out of $n$ sequencers share their decryption shares of the election private key \textbf{to whom?}. Once the threshold is reached, the election secret key can be reconstructed (on-chain or off-chain), enabling the decryption of the aggregated tally. Rewards and penalties for sequencers are managed according to their correct participation: sequencers are rewarded proportionally to the number of votes sequenced, and may be slashed for failing to provide a valid decryption share (see Seciton~\ref{sec:token} for details on incentivation mechanisms.)}
@@ -1,29 +1,30 @@
% !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. -\noi {\color{blue}\textbf{TODO}: add methods and state variables.} -\subsubsection{Organization registry} +\paragraph{Organization registry.} 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. -\subsubsection{Census management} +\paragraph{Census management.} -{\color{blue}The \hlset{\censusmanagement} smart contract xxx.} +This contract is only used by the on-chain dynamic census model (see Section~\ref{sec:vocdoni-protocol:census}), 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. -\subsubsection{Key management} +\paragraph{Key management.} 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. -\subsubsection{Election (process) registry} +\paragraph{Election registry.} -The \hlset{\electionregistry} 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. +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. -\subsubsection{State transition verifier} +\paragraph{State transition verifier.} 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. -\subsubsection{Results verifier} +\paragraph{Results verifier.} 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.\\
@@ -11,26 +11,34 @@
\paragraph{Namespaced key space.} 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}. +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. -\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} +%\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} \paragraph{Configuration namespace.} -The lowest indices of the tree are reserved for fixed process parameters that define the election rules. These keys are deterministic and occupy a negligible portion of the address space. Typical entries include: +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: \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).} + %\footnote{The index \texttt{0x1} is reserved for backward compatibility (historically used for alternative census structures).} + \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}: an accumulator of the encrypted votes that need to be added to the tally (\addaccumulator). - \item \texttt{0x5}: an accumulator of the encrypted votes that have been overwritten (\substractaccumulator). + \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. \end{itemize} Let $\configmax$ denote the largest index reserved for configuration parameters (by default, $\configmax = 15$).@@ -45,11 +53,14 @@ \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. +\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$.} + \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(\text{Hash}(\processid,\address,k) \bmod N\bigr). +\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.