arnaucube
arnaucube/davinci-paperPublic Self-hosted repository
docs(spec): drop deployment-specific data

Remove the release-pin values, the registry address, the OP Mainnet parameters, the deployment history and the release versions, so the spec holds for any deployment; the pins are described generically.
Pau Escrich p4u@dabax.net
Sat, 17 Oct 2026 22:05:36 +0000
commit

ff59afbce0ccd69deeec9abd54e22557dfe05e35

parent

25024f61ab967725228d9219dfa5522c92ca1341

M v2/bibliography/bibtex.bib → v2/bibliography/bibtex.bib

@@ -635,7 +635,7 @@

@misc{davinci-zkvm, author = {{Vocdoni}}, title = {{DAVINCI} {zkVM}: Batch, Results and Aggregator Programs for the {ZisK} {zkVM}}, - howpublished = {GitHub repository, release v0.3.0}, + howpublished = {GitHub repository}, year = {2026}, url = {https://github.com/vocdoni/davinci-zkvm} }

@@ -643,7 +643,7 @@

@misc{davinci-sequencer, author = {{Vocdoni}}, title = {{DAVINCI} Sequencer: Node and Client Library}, - howpublished = {GitHub repository, release v0.6.0}, + howpublished = {GitHub repository}, year = {2026}, url = {https://github.com/vocdoni/davinci-sequencer} }

@@ -659,7 +659,7 @@

@misc{davinci-dkg, author = {{Vocdoni}}, title = {{DAVINCI} {DKG}: Permissionless Threshold Key Generation and Decryption}, - howpublished = {GitHub repository, release v0.11.0}, + howpublished = {GitHub repository}, year = {2026}, url = {https://github.com/vocdoni/davinci-dkg} }

@@ -667,7 +667,7 @@

@misc{davinci-council, author = {{Vocdoni}}, title = {{DAVINCI} {DKG} Council: Invite-Only Threshold Key Ceremonies}, - howpublished = {GitHub repository, release v0.3.0}, + howpublished = {GitHub repository}, year = {2026}, url = {https://github.com/vocdoni/davinci-dkg-council} }

@@ -675,7 +675,7 @@

@misc{zisk, author = {{Polygon Labs}}, title = {{ZisK}: A High-Performance {zkVM} for {RISC-V} Programs}, - howpublished = {GitHub repository, version 1.3.2-alpha}, + howpublished = {GitHub repository}, year = {2026}, url = {https://github.com/0xPolygonHermez/zisk} }
M v2/build/main.tex → v2/build/main.tex

@@ -51,7 +51,7 @@ \begin{abstract}

\Davinci is the evolution of the Vocdoni voting protocol, designed to empower civil society by providing essential tools for secure, verifiable, and ballot-private 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, reducing the trust placed in the operators that process ballots and tally the results. By integrating \acsp{ZK-SNARK}, a \ac{zkVM}, and threshold homomorphic encryption, \davinci enables individual and universal verifiability, ballot privacy, and reduced trust 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. Voters may revote, and the silent re-randomization of stored ballots obscures revotes from outside observers, which mitigates vote buying and coercion without a trusted tally server. With a focus on accessibility, scalability, coercion mitigation, 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, 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. + implemented using current technologies 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 ----
M v2/sections/analysis.tex → v2/sections/analysis.tex

@@ -56,48 +56,30 @@ \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. The execution cost of the batch program depends on its input and 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{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{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. - -\begin{table}[h] - \centering - \caption{Release pins of the protocol version described in this paper (davinci-zkvm v0.3.0, ZisK 1.3.2-alpha).} - \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{Release pins.} A release of the protocol is identified by its pins: the verification keys of the batch and results programs, the setup root \rootc, the digest \ballotvkhash of the ballot verification key, and the code hash of the \ziskverifier contract. The registry stores them as immutable parameters, and sequencers check them at startup: a sequencer refuses a registry, a verifier contract, or a prover whose values differ. The values of each release are published with it. -\paragraph{Normative documents.} This paper describes the protocol at the level needed to understand, analyze, and implement it, and refers to the documents of Table~\ref{tab:normative} for byte-level details such as input frames, serialization, and contract interfaces. For byte encodings, interfaces, constants, and executable constraints, the documents of the pinned releases are normative; where they contain informal security commentary that differs from the qualifications of Section~\ref{sec:analysis:security}, this paper prevails. +\paragraph{Normative documents.} This paper describes the protocol at the level needed to understand, analyze, and implement it, and refers to the documents of Table~\ref{tab:normative} for byte-level details such as input frames, serialization, and contract interfaces. For byte encodings, interfaces, constants, and executable constraints, the documents of the release whose pins a deployment uses are normative; where they contain informal security commentary that differs from the qualifications of Section~\ref{sec:analysis:security}, this paper prevails. \begin{table}[h] \centering - \caption{Byte-level specifications of the release described in this paper.} + \caption{Byte-level specifications of the protocol.} \label{tab:normative} \small \begin{tabular}{>{\raggedright\arraybackslash}p{0.27\textwidth} >{\raggedright\arraybackslash}p{0.66\textwidth}} \toprule \textbf{Component} & \textbf{Document} \\ \midrule - Batch program & \texttt{circuit/CIRCUIT.md} of davinci-zkvm v0.3.0~\cite{davinci-zkvm} \\ - Results program & \texttt{circuit-results/RESULTS.md} of davinci-zkvm v0.3.0 \\ - Ballot circuit & \texttt{circuits/} of davinci-circom, commit \texttt{a39a9f9}, with the circomlib Poseidon parameters~\cite{davinci-circom} \\ - Contracts and genesis & \texttt{IProcessRegistry.sol}, \texttt{DAVINCITypes.sol}, \texttt{GenesisLib.sol}, and \texttt{L1BlobVerifier.sol} of davinci-contracts v0.0.51~\cite{davinci-contracts} \\ - Sequencer API and lifecycle & \texttt{docs/api.md} and \texttt{docs/lifecycle.md} of davinci-sequencer v0.6.0~\cite{davinci-sequencer} \\ - Key management & \texttt{docs/protocol.md} of davinci-dkg v0.11.0~\cite{davinci-dkg} and of davinci-dkg-council v0.3.0~\cite{davinci-council} \\ + Batch program & \texttt{circuit/CIRCUIT.md} of davinci-zkvm~\cite{davinci-zkvm} \\ + Results program & \texttt{circuit-results/RESULTS.md} of davinci-zkvm \\ + Ballot circuit & \texttt{circuits/} of davinci-circom, with the circomlib Poseidon parameters~\cite{davinci-circom} \\ + Contracts and genesis & \texttt{IProcessRegistry.sol}, \texttt{DAVINCITypes.sol}, \texttt{GenesisLib.sol}, and \texttt{L1BlobVerifier.sol} of davinci-contracts~\cite{davinci-contracts} \\ + Sequencer API and lifecycle & \texttt{docs/api.md} and \texttt{docs/lifecycle.md} of davinci-sequencer~\cite{davinci-sequencer} \\ + Key management & \texttt{docs/protocol.md} of davinci-dkg~\cite{davinci-dkg} and of davinci-dkg-council~\cite{davinci-council} \\ \bottomrule \end{tabular} \end{table} -\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, so the soundness of the council's proofs relies on that party having discarded its trapdoor until a multi-party ceremony replaces the setup. No complete independent security audit of the system has been published yet. +\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. It supports settlement on chains with native blob transactions, such as Ethereum, and on OP Stack rollups in L1-blob mode, and all four key modes. No complete independent security audit of the system has been published yet. \subsection{Performance evaluation} \label{sec:analysis:performance-evaluation}

@@ -106,7 +88,7 @@ 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.} A ballot proof is generated from the published Groth16 artifacts of the ballot circuit, either in a browser with snarkjs or natively. With the Rust prover of the client library (arkworks), one 16-core CPU produced 8192 ballot proofs in 1326~s, running several proofs in parallel, that is, about six proofs per second and 0.16~s of amortized wall time per proof at that concurrency. We have not measured the latency of browser proving for this version of the circuit; it requires downloading the 35.5~MiB proving key and the 6.5~MiB witness generator, which can be cached across ballots. -\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 of $n$ new votes refreshes $n$ slots, the regime that determines throughput for fresh votes (a batch of overwrites refreshes up to twice as many slots as it writes, and a re-sealed batch more). A batch of two votes takes about $15.5$~s, mostly the fixed cost of recursion and of the PlonK wrapper, and each refresh adds 13--16~ms at $n_f = 2$ and 40--50~ms at $n_f = 16$, the upper values at the largest batches. 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-alpha, the predecessor of the release in Table~\ref{tab:pins}, with the same batch program logic~\cite{davinci-zkvm}. +\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 of $n$ new votes refreshes $n$ slots, the regime that determines throughput for fresh votes (a batch of overwrites refreshes up to twice as many slots as it writes, and a re-sealed batch more). A batch of two votes takes about $15.5$~s, mostly the fixed cost of recursion and of the PlonK wrapper, and each refresh adds 13--16~ms at $n_f = 2$ and 40--50~ms at $n_f = 16$, the upper values at the largest batches. 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 with ZisK~1.3.0-alpha~\cite{zisk} and the batch program of davinci-zkvm~\cite{davinci-zkvm}. \begin{table}[h] \centering

@@ -137,8 +119,8 @@ \end{figure}

\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 of four independent elections in $678.7$~s, a sustained throughput of $12.07$ votes per second ($724$ per minute), on a local chain with one-second blocks and without competing sequencers. Each prover was busy for the whole run, so aggregate throughput scales with the number of provers serving independent elections: one RTX 5090 settles about six votes per second at $n_f = 2$. The current sequencer keeps at most one batch in flight per election, so these measurements show scaling across independent elections, not the acceleration of one election by additional provers; settlement within an election remains ordered by state root. -\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 with the number of blobs, by one point evaluation each, and, in L1-blob mode, with the number of Ethereum headers and transaction proofs it carries. In blob mode, measured with the same contracts on Gnosis Chain (a chain with native blob transactions, on which \davinci was deployed before OP Mainnet), 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{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 with the number of blobs, by one point evaluation each, and, in L1-blob mode, with the number of Ethereum headers and transaction proofs it carries. In blob mode, measured on Gnosis Chain, which supports blob transactions natively, 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 each settled batch landed 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. These measurements used an earlier registry with a 150~s grace floor, under which some batches of 128 and 256 votes at $n_f = 16$ were split in two, so that the whole case finished 200--230~s after its first seal; the current registry's 240~s floor was chosen to let such a batch settle at once.\\ +\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 measurements on OP Mainnet in L1-blob mode, 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 each settled batch landed 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. The grace window should exceed this delay: with a grace window of 150~s, some batches of 128 and 256 votes at $n_f = 16$ were split in two, so that the whole case finished 200--230~s after its first seal.\\ 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.
M v2/sections/protocol-flow.tex → v2/sections/protocol-flow.tex

@@ -194,7 +194,7 @@

\begin{figure}[h] \centerline{\includegraphics[width=\textwidth,draft=false]{\figs/grace-window.pdf}} \setlength{\abovecaptionskip}{5pt} - \caption{The grace window. Honest sequencers stop admitting votes at the end time; transitions keep settling until \graceend, which every settlement resets to its own time plus \grace, up to \texttt{graceMaxTotal} after the end (Eq.~\eqref{eq:grace-end}). Results can only be published after \graceend. Sequencers flush their queues from shortly before the end. On OP Mainnet, \grace is 300\,s by default (the organizer may choose 240 to 600\,s), \texttt{graceMaxTotal} is 1800\,s, and \texttt{noticeMin} is 60\,s.} + \caption{The grace window. Honest sequencers stop admitting votes at the end time; transitions keep settling until \graceend, which every settlement resets to its own time plus \grace, up to \texttt{graceMaxTotal} after the end (Eq.~\eqref{eq:grace-end}). Results can only be published after \graceend. Sequencers flush their queues from shortly before the end.} \label{fig:grace-window} \end{figure}