arnaucube
arnaucube/davinci-paperPublic Self-hosted repository
davinci-paper/v1/sections/ballot-protocol.tex
v1/sections/ballot-protocol.texRaw
 1% !TeX root = ../build/main.tex
 2
 3The Vocdoni Ballot Protocol defines a simple and efficient mechanism for casting and tallying votes in any type of election or collective decision-making process. Each voting process consists of one or more fields, and voters are required to provide a response for each field in their ballot.
 4
 5The responses in the ballot are represented as a sequence of natural numbers, each corresponding to the voter’s choice for the respective field. Results are accumulated into a single array. Each position in the array corresponds to the sum of all votes cast for that field across all voters.
 6
 7The ballot protocol is defined by a set of configurable variables that dictate how votes must be cast. This way the protocol can accommodate a wide range of voting processes and behaviors.
 8
 9\begin{enumerate}
10	\item \textbf{maxCount}: Defines the maximum number of fields in a ballot (max 64).
11	\item \textbf{maxValue}: The maximum allowable value for any field in a ballot (if greater than 0).
12	\item \textbf{minValue}: The minimum allowable value for any field in a ballot (default 0).
13	\item \textbf{uniqueValues}: Specifies whether voters can select the same value multiple times within a ballot (default false).
14	\item \textbf{maxTotalCost}: Limits the sum of all field values in a ballot (if greater than 0).
15	\item \textbf{minTotalCost}: Specifies a minimum required total sum of field values in a ballot (default 0)
16	\item \textbf{costExponent}: Defines the exponent used to calculate the "cost" of votes for each field (default 1
17\end{enumerate}
18
19\begin{figure}[H]
20	\centering
21	\fbox{
22		\includegraphics[scale = 0.4, draft = false]{\figs/ballot-variables.png}}
23\end{figure}
24
25\textbf{Example 1: Rating Candidates}
26
27Consider a voting process where voters are asked to rate three candidates: Lennon, Hendrix, and Joplin. Voters rate each candidate from 0 to 5 stars, and each vote is represented as an array where each position corresponds to the candidate’s rating.
28
29Configuration:
30
31\begin{itemize}
32	\item \texttt{maxCount}: 3
33	\item \texttt{maxValue}: 5
34	\item \texttt{uniqueValues}: Yes
35\end{itemize}
36
37Ballots:
38
39\begin{itemize}
40	\item Vote 1: \texttt{[3, 2, 5]} (3 stars for Lennon, 2 stars for Hendrix, 5 stars for Joplin)
41	\item Vote 2: \texttt{[4, 3, 2]}
42	\item Vote 3: \texttt{[2, 4, 5]}
43\end{itemize}
44
45After accumulating the votes:
46
47\begin{itemize}
48	\item Results Array: \texttt{[3+4+2, 2+3+4, 5+2+5] = [9, 9, 12]}\\
49	Lennon received 9 points, Hendrix received 9 points, and Joplin received 12 points.
50\end{itemize}
51
52\textbf{Example 2: Quadratic Voting for Resource Allocation}
53
54In a scenario where voters distribute a fixed number of credits across different options (e.g., selecting funding levels for NGOs), the ballot allows voters to assign multiple points, but the cost of casting multiple votes for a single option increases quadratically.
55
56Configuration:
57
58\begin{itemize}
59	\item \texttt{maxCount}: 4
60	\item \texttt{maxTotalCost}: 12 (credits)
61	\item \texttt{costExponent}: 2 (quadratic)
62\end{itemize}
63
64Ballots:
65
66\begin{itemize}
67	\item Vote 1: \texttt{[2, 2, 2, 0]}
68	\item Vote 2: \texttt{[1, 1, 3, 1]}
69	\item Vote 3: \texttt{[0, 2, 1, 2]}
70\end{itemize}
71
72
73After accumulating the votes:
74
75
76\begin{itemize}
77	\item Results Array: \texttt{[2+1+0, 2+1+2, 2+3+1, 0+1+2] = [3, 5, 6, 3]} \\
78	Each position in the array represents the total sum of credits allocated to each NGO.
79\end{itemize}
80