arnaucube
arnaucube/davinci-paperPublic Self-hosted repository
fix typo
bellesmarta belles.mm@gmail.com
Wed, 07 Jan 2026 23:00:41 +0100
commit

ba6ad82ea7a5c2e056b1eb37069d4b1d1458d4a7

parent

ee4c27665dca4b49f5108f4b937ecaa2e551eb95

3 files changed, 4 insertions(+), 4 deletions(-)

jump to
M v2/sections/circuits.tex → v2/sections/circuits.tex

@@ -154,7 +154,7 @@ \label{sec:vocdoni-protocol:circuits:state-transition}

The state transition circuit (\hlset{\statetransitioncircuit}), illustrated in Figure~\ref{fig:circuit-state-transition-v2}, is generated by the sequencer to update the global state of the election. Its purpose is to verify that a batch of aggregated votes has been correctly incorporated into the state Merkle tree, that overwrites and vote identifiers are handled consistently, and that the accumulators of encrypted results are updated accordingly {\color{blue}[+census membership +blobs]}. The correctness of this circuit is attested by a \ac{ZK} proof generated using the \ac{ZK-SNARK} protocol described in Section~\ref{sec:cryptographic-primitives:zkp}, instantiated over the BN254 curve, which is supported by Ethereum’s native precompiles for proof verification. We call the resulting proof the \textit{state proof} and denote it as $\hlset{\stateproof}$. This proof is submitted on-chain and verified by the process management smart contract, ensuring that every accepted state transition complies with the protocol rules. -To formalize the setting, let the sequencer collect a batch of $N$ votes ($N\leq60$), of which $n$ are new vote submissions and $m = N-n$ are overwrites of previously cast ballots. Without loss of generality, we assume that the batch is ordered such that the first $n$ votes correspond to new submissions, and the remaining $m$ votes correspond to overwrites. In the following, we describe the inputs and constraints of the state transition circuit in detail. +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 {\color{blue}[Notation is easier if this is in the reverse order]}. In the following, we describe the inputs and constraints of the state transition circuit in detail. \begin{spacing}{1.25} \vspace{0.3cm}

@@ -183,7 +183,7 @@ \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 $\{\encryptedballot_i^\old\}_{i = 1}^{m}$: 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. \\ %

@@ -230,7 +230,7 @@ \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}(\textsc{\color{blue}EMPTY}, \address_i, \merkleNInclusionPf^{\encryptedballot}_i, \stateroot^\old).\] - \item Ensure that overwrites do correspond to votes that were already on the tree. For $i = n+1, \dots, N$: + \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}
M v2/sections/protocol-flow.tex → v2/sections/protocol-flow.tex

@@ -66,7 +66,7 @@ &\epk, \address, \weight, \encryptedballot, \voteid)).

\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 Submits the package + \item Submit the package \[\vote = [\processid, \voteid, \encryptedballot, \censusproof, \voteproof, \signature]\] to the chosen sequencer. \end{enumerate}