arnaucube
arnaucube/davinci-paperPublic Self-hosted repository
davinci-paper/v1/sections/operation-overview.tex
v1/sections/operation-overview.texRaw
 1% !TeX root = ../build/main.tex
 2
 3This chapter provides an overview of the operational workflow of the Vocdoni Z protocol, detailing the sequential phases and roles involved. The process includes the initialization of a voting event, distributed key generation, encrypted vote casting, vote verification, and accumulation, culminating in the publication and public verification of results. Each phase leverages advanced cryptographic techniques to ensure the integrity, privacy, and universal verifiability of the voting process.
 4
 5\subsection{Simplified Workflow Steps}
 6
 7\begin{enumerate}
 8	\item \textbf{Organizer Creates a New Voting Process}
 9	
10		\begin{itemize}
11			\item Prepare the census data.
12			\item Set voting details such as duration, options, type, etc.
13			\item Send the transaction to the Ethereum Process smart contract.
14		\end{itemize}
15	
16	\item \textbf{Sequencers Create the Distributed Threshold Encryption Key}
17	
18			\begin{itemize}
19				\item Use the Sequencer Registry smart contract to coordinate the Distributed Key Generation (DKG).
20				\item Provide collateral to ensure correct participation in the DKG.
21				\item Download all required data to handle the new vote, such as the census Merkle tree.
22			\end{itemize}
23	
24	\item \textbf{Voting Begins Once the Encryption Public Key (EPK) is Available}
25	
26	\item \textbf{Voters Cast Their Votes}
27
28			\begin{itemize}
29				\item Choose any of the available sequencers.
30				\item Fetch their census Merkle proof to prove eligibility.
31				\item Use the EPK to encrypt their voting choice.
32				\item Generate a zkSNARK to prove the validity of the encrypted vote and adherence to ballot protocol rules.
33				\item Send the encrypted vote, Merkle proof, validify proof and identity proof to the sequencer.
34			\end{itemize}
35	 
36	\item \textbf{Sequencers Verify and Accumulate the Votes}
37
38			\begin{itemize}
39				\item Fetch Current State: Retrieve the current valid process state root from the Ethereum smart contract and the associated data from Ethereum blobs.
40				\item Generate a zkSNARK of state transition, proving: 
41						\begin{itemize}
42							\item the validity of the zkSNARK proof provided by the voter.
43							\item the correct accumulation of votes from users, adding them to the process state.
44							\item the correct sum off the new encrypted votes using the homomorphic properties of ElGamal.
45							\item the new votes are from eligible users by checking the census Merkle proofs.
46							\item the new voters have not already voted by checking their nullifiers, or it is a correct vote overwrite
47							\item the data blob hash matches the data used to verify the transition.
48						\end{itemize}
49				\item Submit Updated State: Send the new state root to the smart contract and store the updated data in Ethereum blobs.
50			\end{itemize}
51	
52	\item \textbf{Smart Contract Verification of the State Transition}
53
54			\begin{itemize}
55				\item Verify the zkSNARK proof provided by the sequencer.
56				\item Ensure the origin root corresponds to the current stored state root.
57				\item Confirm that the blob hash matches the one stored in Ethereum.
58			\end{itemize}
59	
60	\item \textbf{Repeat Until Voting Ends}
61
62			\begin{itemize}
63				\item Sequencers accumulate more votes and create state transitions until the finalization of the process.
64			\end{itemize}
65	
66	\item \textbf{Create the Decryption Key}
67
68			\begin{itemize}
69				\item Once voting is complete, sequencers publish their shares of the EPK to the Ethereum smart contract.
70				\item Decrypt Results: When the threshold of shares is reached, the results can be decrypted by anyone.
71				\item Sequencers receive reward for their correct participation depending on the number of sequenced votes.
72			\end{itemize}
73	
74	\item \textbf{Public Verification of the Final Results}
75			\begin{itemize}
76				\item After the voting period ends and the results are decrypted, anyone can verify the correctness of the final result.
77				\item Use the zkSNARK State proof and publicly available data on-chain to ensure the integrity and correctness of the entire voting process.
78			\end{itemize} 
79\end{enumerate}
80
81\begin{figure}[H]
82	\centering
83	\fbox{
84		\includegraphics[scale = 0.3, draft = false]{\figs/workflow-simplified.png}}
85\end{figure}