notation fixes
bellesmarta belles.mm@gmail.com
Tue, 02 Dec 2025 17:39:54 +0100
5 files changed,
19 insertions(+),
20 deletions(-)
M
v2/build/acronyms.tex
→
v2/build/acronyms.tex
@@ -5,7 +5,8 @@ \acro{BFT}{byzantine fault tolerant}
\acro{CRS}{common reference string} \acro{CSP}{credential service provider} \acro{EVM}{Ethereum virtual machine} - \acro{IMT}{incremental Merkle tree} \acro{IPFS}{interplanetary file system} + \acro{IMT}{incremental Merkle tree} + \acro{IPFS}{interplanetary file system} \acro{MPC}{multi-party computation} \acro{SMT}{sparse Merkle tree} \acro{URI}{uniform resource identifier}
M
v2/build/main.tex
→
v2/build/main.tex
@@ -52,7 +52,6 @@
\vspace{0.2cm} \noi Pieces of text marked in \textbf{blue} are heavily work in progress. In addition, there are these general tasks: \begin{itemize} - \item Change $(C_1, C_2)$ to \texttt{ciphertext} in protocol flow and figures. \item Notation considerations: \begin{itemize} \item From \textit{address} to \textit{nullifier} (if you think of an address as a token that allows voters to vote).@@ -63,8 +62,6 @@ \item Check circuits and smart contracts names.
\item Consider scenario where deterministic signature (no Eth compatible) can be used as nullifier. \item Add a section with vulnerabilities. \item Do new circuit1 + circuit2. - \item Do last results circuit. - \item Add citations. \item Add everything related to data blobs. \item Add a note on blank/null votes. \item Include the role of the \textit{workers} as \textit{sequencer} helpers?
M
v2/sections/circuits.tex
→
v2/sections/circuits.tex
@@ -62,7 +62,7 @@ \begin{itemize}
\item \public $\processid$: election identifier. \item \public $\ballotmode$: ballot protocol configuration. \item \public $\epk$ ($EPK$): encryption public key. - \item \public $(C_1, C_2)$: encrypted ballot. + \item \public $\encryptedballot$: encrypted ballot. \item \public $\voteid$: voter's identifier. \item \public $\censusroot$: census Merkle tree root. \item \public $\pk$: voter's public key.@@ -77,7 +77,7 @@ \end{itemize}
\textbf{Constraints} \begin{itemize} \item \emph{Voter's proof verification.} The voter's submitted proof is valid for the inputs provided: - $$\hlget{\PVerify}\left(\ballotproof, PI = (\processid, \ballotmode, \epk, (C_1, C_2), \voteid, \weight)\right) = \true.$$ + $$\hlget{\PVerify}\left(\ballotproof, PI = (\processid, \ballotmode, \epk, \encryptedballot, \voteid, \weight)\right) = \true.$$ \item \emph{Census membership.} The address derived from the user's public key is part of the census, and verifies the census proof with the user's weight provided: $$ \hlget{\censusTree}.\hlget{\MTVerify}\left(\weight, \address = \hlget{\Keccak}(\pk), \censuspf, \censusroot\right) = \true. $$ \item \emph{Authentication + non-malleability.} The signature of the vote's identifier is valid for the given public key:@@ -101,7 +101,7 @@ \begin{spacing}{1.25}
\vspace{0.3cm} \noi \textbf{Public inputs} \begin{itemize} - \item \public $(C_1, C_2)_i$: list of voters' encrypted ballots. + \item \public $\encryptedballot_i$: list of voters' encrypted ballots. \item \public $\voteid_i$: set of vote's identifiers. \item \public $\pk_i$: list of voters' public keys. \item \public $\processid$: election identifier.@@ -116,7 +116,7 @@ \end{itemize}
\textbf{Constraints} \\ \vspace{-0.4cm} \begin{itemize} \item \emph{Votes aggregation.} The accumulated authentication proofs are valid (for the given inputs). For every $i$: - $$\hlget{\PVerify}\left(\authenticationproof, PI = ((C_1, C_2)_i, \voteid_i, \pk_i, \processid, \ballotmode, EPK, \censusroot)\right) = \true.$$ + $$\hlget{\PVerify}\left(\authenticationproof, PI = (\encryptedballot_i, \voteid_i, \pk_i, \processid, \ballotmode, EPK, \censusroot)\right) = \true.$$ \item \emph{Shared public inputs.} The public inputs \processid, \ballotmode, \epk, and \censusroot are the same for all proofs. \end{itemize} \vspace{-0.3cm}@@ -156,7 +156,7 @@ \item \private $\ballotmode$: ballot protocol configuration.
\item \private $EPK$: encryption public key. \item \private $\processid$: election identifier. \item \private $\{\voteid_i\}_{i= 1}^{N}$: set of vote's identifiers. - \item \private $\{(C_1, C_2)_i\}_{i= 1}^{N}$: set of voters' encrypted ballots. + \item \private $\{\encryptedballot_i\}_{i= 1}^{N}$: set of voters' encrypted ballots. \item \private $\{\pk_i\}_{i= 1}^{N}$: list of voters' public keys. \item \private $\{\merkleproofs^{encBallots}_i\}_{i= 1}^{N}$: Merkle tree proofs of encrypted ballots. If it is a new vote, the proof will be a non-inclusion proof, if it is an overwrite, an inclusion proof. \item \private $\{\merkleproofs^{\voteid}_i\}_{i= 1}^{N}$: non-membership proofs of vote identifiers.@@ -168,7 +168,7 @@ \end{itemize}
\textbf{Constraints} \\ \vspace{-0.4cm} \begin{itemize} \item \emph{Aggregation verification.} The accumulated authentication proofs are valid. For every $i\in\{1,\dots,N\}$: - $$\hlget{\PVerify}(\authenticationproof, PI = ((C_1, C_2)_i, \voteid_i, \pk_i, \processid, \ballotmode, EPK, \censusroot)).$$ + $$\hlget{\PVerify}(\authenticationproof, PI = (\encryptedballot_i, \voteid_i, \pk_i, \processid, \ballotmode, EPK, \censusroot)).$$ \item \emph{Transition verification.} Verify initial state and state transitions are applied correctly. \begin{itemize} \renewcommand{\labelitemii}{$\circ$}@@ -184,26 +184,26 @@ \item State transitions.
\begin{itemize} \item For new votes (keep iterating for all of them): \begin{enumerate} - \item Add encrypted ballot to the tree: $\stateTree.\hlget{\MTInsert}(\address = \hlget{\Keccak}(\pk), (C_1, C_2))$. + \item Add encrypted ballot to the tree: $\stateTree.\hlget{\MTInsert}(\address = \hlget{\Keccak}(\pk), \encryptedballot)$. \item Add vote identifier: $\stateTree.\hlget{\MTInsert}(\voteid)$. \item Increase votes counter: $\numvotes = \numvotes + 1$. - \item Aggregate the vote to the results accumulator: $\addaccumulator = \addaccumulator + (C_1, C_2)$. + \item Aggregate the vote to the results accumulator: $\addaccumulator = \addaccumulator + \encryptedballot$. \end{enumerate} \item For overwritten votes (keep iterating for all of them): \begin{enumerate} - \item Overwrite the encrypted ballot: $\stateTree.\hlget{\MTUpdate}(\address = \hlget{\Keccak}(\pk), (C_1, C_2))$. + \item Overwrite the encrypted ballot: $\stateTree.\hlget{\MTUpdate}(\address = \hlget{\Keccak}(\pk), \encryptedballot)$. \item Add vote identifier: $\stateTree.\hlget{\MTInsert}(\voteid)$. \item Increase votes counter: $\numvotes = \numvotes + 1$. \item Increase overwrites counter: $\numoverwrites = \numoverwrites + 1$. - \item Aggregate the vote to the results accumulator: $\addaccumulator = \addaccumulator + (C_1, C_2)$. - \item Aggregate the old vote to the accumulator: $\substractaccumulator = \substractaccumulator + (C_1, C_2)^{old}$. + \item Aggregate the vote to the results accumulator: $\addaccumulator = \addaccumulator + \encryptedballot$. + \item Aggregate the old vote to the accumulator: $\substractaccumulator = \substractaccumulator + \encryptedballot^{old}$. \end{enumerate} - {\color{blue}The old ciphertexts $(C_1, C_2)^{old}$ should also be inputs or retrieved from the MT inclusion proofs.} + {\color{blue}The old $\encryptedballot^{old}$ should also be inputs or retrieved from the MT inclusion proofs.} \end{itemize} \item After all previous state transitions are done, recompute new tree root: \[\stateroot^{new} = \stateTree.\hlget{\MTRoot}().\] \item Reencrypt all leafs of the tree (both old and new ones). {\color{blue}New are ok, but for those that are old, also verify MTProofs of membership?}. - \[newLeafContent = \hlget{\ReEnc}_{\epk}((C_1, C_2)_i, k), \quad k = Hash(k).\] + \[newLeafContent = \hlget{\ReEnc}_{\epk}(\encryptedballot_i, k), \quad k = Hash(k).\] \item Data blob commitment. Calculation of the commitment to all leafs that changed in the tree after all transition states were applied. \[ \blobcomm = Commitment(\text{all leaves that changed}).\] \end{itemize}
M
v2/sections/protocol-flow.tex
→
v2/sections/protocol-flow.tex
@@ -50,7 +50,7 @@ \item Select their ballot choice $\ballot$ according to the rules of $\ballotmode$.
\item Sample fresh randomness $k \in \F$ and encrypt the ballot using $\epk$: \begin{equation} \label{eq-ciphertext} - (C_1, C_2) = \hlget{\Enc}_{\epk}(\ballot; k). + \encryptedballot = \hlget{\Enc}_{\epk}(\ballot; k). \end{equation} \item Use their Ethereum address $\address$ and the previous $k$ to compute a unique vote identifier: \begin{equation}@@ -63,7 +63,7 @@ \voteproof = & \hlget{\PProve}(
\hlget{\ballotcircuit}, \witness = (\ballot, k), \publicinputs = (\processid, \ballotmode,\\ - &\epk, \address, \weight, (C_1, C_2), \voteid)). + &\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).\]@@ -88,7 +88,8 @@ \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),\\ - & \publicinputs = (\processid, \ballotmode, \epk, (C_1, C_2), \voteid, \censusroot, \pk)). + & \publicinputs = (\processid, \ballotmode, \epk, \encryptedballot, \voteid, \\ + & \censusroot, \pk)). \end{align*} This proof ensures that the voter’s \voteproof, the \signature, and the \censusproof are all 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}: