minor changes
bellesmarta belles.mm@gmail.com
Wed, 17 Dec 2025 20:45:54 +0100
7 files changed,
8 insertions(+),
8 deletions(-)
M
v2/figures/mt-state-mermaid.mmd
→
v2/figures/mt-state-mermaid.mmd
@@ -14,7 +14,7 @@ SI1[" "]
SIA[" "] SIB[" "] P0["processID"] - P1["censusRoot"] + P1["censusOrigin"] P2["ballotMode"] P3["encryptionKey"] P4["resultsAdd"]
M
v2/sections/census.tex
→
v2/sections/census.tex
@@ -32,8 +32,8 @@ \begin{tabular}{|P{1.6cm}|P{2.1cm}|P{3.3cm}|P{4.1cm}|P{4.8cm}|}
\hline \multicolumn{2}{|c|}{\censusorigin} & - \censusuri & \censusroot & + \censusuri & Membership proof \\ \hline
M
v2/sections/circuits.tex
→
v2/sections/circuits.tex
@@ -200,11 +200,11 @@ \item Increase overwrites counter: $\numoverwrites = \numoverwrites + 1$.
\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 $\encryptedballot^{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 -- YES.} \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?}. + \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? -- YES}. \[newLeafContent = \hlget{\ReEnc}_{\epk}(\encryptedballot_i, k), \quad k = Hash(k).\] \end{itemize} \item \emph{Data blob}.
M
v2/sections/cryptographic-primitives.tex
→
v2/sections/cryptographic-primitives.tex
@@ -207,13 +207,13 @@
\subsection{Commitment schemes} \label{sec:cryptographic-primitives:commitments} -{\color{blue} Description of KZG~\cite{kate2010constant} with SRS, $\hlset{\CCommit}()$, and $\hlset{\CVerify}()$.}\\ +{\color{blue} Description of KZG~\cite{kate2010constant} with SRS \textbf{[add link to Ethereum's BLS12-381 SRS]}, $\hlset{\CCommit}()$, and $\hlset{\CVerify}()$.}\\ Original methods: \hlset{\CSetup}, \hlset{\COpen}, \hlset{\CVerifyPoly}, \hlset{\CCreateWitness}, \hlset{\CVerifyEval}, \hlset{\CProve}, \hlset{\CVerify}. \subsection{Digital signature schemes} \label{sec:cryptographic-primitives:signatures} -{\color{blue}{\textbf{TODO}: add algorithm \hlset{\SPubKey} that extracts $\pk$ from $\signature$.}}\\ +{\color{blue}{\textbf{TODO}: add \hlset{\SPubKey} that extracts $\pk$ from $\signature$ (in Ethereum it's called \texttt{ECRecover}).}}\\ \noi \Davinci uses the {elliptic curve digital signature algorithm} (ECDSA)~\cite{johnson2001ecdsa} over the SECP256K1 curve to ensure compatibility with standard Ethereum wallets. %, such as MetaMask~\ref{} or Ledger~\ref{}, %
M
v2/sections/state-tree.tex
→
v2/sections/state-tree.tex
@@ -8,7 +8,7 @@ \paragraph{Reserved addresses for metadata.} The first six addresses are reserved for the process parameters as follows:
\begin{itemize} \item \texttt{0x0}: it stores a unique identifier for the election (\processid). - \item \texttt{0x1}: it stores the committed census root (\censusroot). %and \type, a field in case the organization was using a different structure for the census than a MT. + \item \texttt{0x1}: it stores the census origin (\censusorigin). %and \type, a field in case the organization was using a different structure for the census than a MT. \item \texttt{0x2}: it stores the ballot mode configuration, which is the set of rules for validating votes (\ballotmode). \item \texttt{0x3}: it stores the encryption public key used to encrypt the votes (\epk). \item \texttt{0x4}: it stores an accumulator of the encrypted votes that need to be added to the tally (\addaccumulator).@@ -27,7 +27,7 @@ \caption{Structure of the state Merkle tree. The first leaves are reserved for global election parameters while subsequent leaves store encrypted ballots indexed by voter addresses and vote identifiers.}
\label{fig:mt-state} \end{figure} -\paragraph{Initial state.} At the beginning of the election, the state tree is initialized with the election parameters and empty accumulators, and its root ($\stateroot$) is published on-chain. +\paragraph{Initial state.} At the beginning of the election, the state tree is initialized with the election parameters and empty accumulators, {\color{blue}and its census root ($\stateroot$) is published on-chain}. \paragraph{State transitions.} As the voting progresses, sequencers update the tree whenever new votes are received, producing a new root for each transition. To guarantee correctness, each update is accompanied by a \ac{ZK-SNARK} proof attesting that the transition from the previous root to the new root respects all protocol constraints: ballots are well-formed and comply with the voting rules, voters are eligible according to the census, the \voteid non-membership condition prevents double voting (or overwrites are handled correctly), and encrypted results are aggregated consistently. In addition, sequencers reencrypt stored ciphertexts, including both newly submitted and already included ballots. This mechanism refreshes the randomness of the encrypted votes without altering their underlying content, ensuring receipt-freeness and concealing whether a particular ballot has been overwritten or simply re-randomized.