davinci-paper/v1/sections/vocdoni-token.tex
v1/sections/vocdoni-token.texRaw
1% !TeX root = ../build/main.tex
2
3Vocdoni Z introduces the Vocdoni token (VOC) as a key element of its decentralized voting ecosystem, playing a crucial role in the protocol's sustainability.
4The token serves multiple utility functions that align the incentives of all participants (voting organizers, sequencers, and voters) ensuring the integrity, efficiency, and security of the voting system.
5
6\subsection{Roles of the VOC}
7
8\begin{enumerate}
9 \item \textbf{Collateral for Sequencers}: Sequencers are required to stake VOC tokens as a collateral to participate in the protocol. This serves as a safeguard to ensure responsible participation. If a sequencer behaves improperly (whether due to malicious intent or unintentional errors) it can face penalties, including the loss of part of its staked tokens.
10 \item \textbf{Incentive Mechanism}: Sequencers earn rewards in VOC tokens based on their contribution to processing valid votes and maintaining the network. Rewards are proportional to the number of valid votes successfully added to the shared state.
11 \item \textbf{Payment for Voting Processes}: Voting processes organizers use VOC tokens to cover the costs of creating and managing voting processes. The costs depend on factors like the size of the voting registry, the voting period's duration, and the desired level of security (based on the number of participating sequencers).
12 \item \textbf{Governance}: The VOC token facilitates decentralized governance by giving the token holders the right to participate in the project governance. Token holders can influence on important matters such as protocol upgrades, ecosystem development, and other initiatives aimed to enhance various aspects of Vocdoni Z. This ensures that the project evolves in a transparent, community-driven manner.
13\end{enumerate}
14
15\subsection{Economics for Organizers}
16
17Organizers of voting processes pay fees in VOC tokens to create and manage their voting events. These fees cover operational costs and incentivize the sequencers.
18
19The costs of voting processes vary based on the following factors:
20
21\begin{itemize}
22 \item \textbf{Maximum Number of Votes}: Larger voter registries require more resources for processing.
23 \item \textbf{Voting Duration}: Longer voting periods demand extended resource commitments from sequencers.
24 \item \textbf{Security Level}: Organizers can adjust the number of participating sequencers to balance between cost and security needs.
25\end{itemize}
26
27Fees must be paid upfront but can be partially reimbursed. The formula for calculating the reimbursement is:
28
29$$ \text{Reimbursement} = \text{TotalCost} - \text{TotalReward} - \text{BaseCost} $$
30
31Given that there is a list of eligible voters for each voting process, organizers should reserve space equal to the maximum number of voters, anticipating that all eligible voters may participate. However, since this is unlikely, a portion of the reward pool may be reimbursed.
32
33The components of this formula are defined in the following sections.
34
35\subsection{Voting process cost model}
36
37The process cost model defines how the cost for a given process is calculated.
38Considering sequencer-specific capacities, process duration, number of voters and security costs, we define following components formula:
39
40$$ \text{totalCost} = \text{baseCost} + \text{capacityCost} + \text{durationCost} + \text{securityCost} $$
41
42\subsubsection{Components definition}
43
44\begin{itemize}
45 \item \textit{baseCost}: The base cost is a fixed fee charged by the sequencer to set up a voting process based on a fixed value plus the number of and a fixed factor. It is independent of the process duration, or the security level. This part cannot be reimbursed thus is a portion of the that will alwways be rewarded to the sequencers.
46 $$ baseCost = fixedCost + maxVotes \cdot p $$
47 Where:
48 \begin{itemize}
49 \item $fixedCost$ is a fixed base fee defined into the protocol.
50 \item $maxVotes$ is the maximum number of votes of a given voting process.
51 \item $p$ is a small lineal factor defined into the protocol.
52 \end{itemize}
53
54 \item $capacityCost$: It defines the cost given the current occupancy of the sequencer network. This component models the cost of reserving space for voting processes, relative to the number of sequencers available, the number of running voting processes and the maximum numbers of voters. The cost increases non-linearly as the number available sequencers approaches to the total number of sequencers and the number of running voting processes grows, so when there are fewer sequencers available and big number of voting processes running, the capacity becomes more valuable.
55 $$
56 k_1 \cdot \left( \frac{\text{totalVotingProcesses}}{totalSequencers - usedSequencers + \epsilon} \cdot maxVotes \right)^a
57 $$
58 \begin{itemize}
59 \item $k_1$: A scaling factor controlling the impact of sequencers usage.
60 \item $totalVotingProcesses$: The total number of running voting processes.
61 \item $totalSequencers$: The total number of registered sequencers.
62 \item $usedSequencers$: The number of sequencers that are already handling other voting processes.
63 \item $a$: An exponent that controls how sharply the cost increases as the used capacity approaches the total available capacity. In other words, it controls the non-linearity of the cost increase.
64 \item $\epsilon$: Is a very small number that avoids zero division.
65 \end{itemize}
66
67 \item $durationCost$: This component models the cost of running the process for a specific duration, where longer processess incur more cost. The scaling is non-linear, meaning that shorter processes are more cost-efficient, while longer processes are increasingly expensive.
68
69 It is expected to have a minimum and maximum duration thresholds (e.g 1 hour to 1 year).
70
71 $$ k_2 \cdot processDuration^b $$
72
73 \begin{itemize}
74 \item $k_2$: A scaling factor for the process duration.
75 \item $processDuration$: The duration of the process in hours.
76 \item $b$: An exponent that controls the non-linear scaling of the process duration.
77 \end{itemize}
78
79 \item $securityCost$: The security cost models the use of multiple sequencers to ensure a secure process. The cost scales exponentially based on the number of sequencers used, but with diminishing returns as the number of sequencers approaches the total available sequencers:
80
81 $$ k_3 \cdot e^{c \cdot \left( \frac{\text{numSequencers}}{\text{totalSequencers}} \right)^d} $$
82
83 \begin{itemize}
84 \item $k_3$: A scaling factor controlling the overall weight of security cost.
85 \item $c$: Controls the steepness of the exponential scaling for security costs.
86 \item $numSequencers$: The number of sequencers used in this process.
87 \item $totalSequencers$: The total number of available sequencers in the network.
88 \item $d$: An exponent controlling how fast the security cost increases as the number of sequencers approaches the total available sequencers.
89 \end{itemize}
90\end{itemize}
91
92\subsubsection{Constrains}
93
94There is the need to enforce some constrains in the formula in order to avoid impracticable scenarios.
95
96\begin{itemize}
97 \item If $processDuration > maxDuration$ then: $totalCost = \infty$
98 \item If $numSequencers > totalSequencers$ then: $totalCost = \infty$
99\end{itemize}
100
101\subsection{Economics for Sequencers}
102
103To become a sequencer and earn rewards, participants must stake VOC tokens as collateral. This collateral is locked during the sequencer registry in the Sequencer Registry smart contract and can be withdrawn upon the sequencer commitments are fulfilled.
104
105Sequencers \textbf{receive rewards} based on:
106
107\begin{itemize}
108 \item The number of \textbf{votes} they include in the shared state.
109 \item The number of \textbf{vote rewrites} they include in the shared state.
110 \begin{itemize}
111 \item A vote rewrite can be either a vote overwrite (a voter casting another vote that overwrites the previous one) or a vote re-encryption (made by the sequencer). Rewriting votes enables more flexibility for the voter and is a key mechanism for the receipt-freeness.
112 \item It is expected for the sequencers to maximize the number of vote rewrites because there is no way to distinguish between a vote overwrite and a vote re-encryption. This is considered a positive behavior because it contributes to the receipt-freeness mechanism of the protocol.
113 \item A vote and a vote rewrite are distinguishable because the former include a nullifier that has not ever been included in a specific process.
114 \item Given that each sequencer will submit a ZK proof validating the state transition into the settlement layer smart contract it is straight forward to count the number of votes and the number of vote rewrites processed by each sequencer.
115 \item Sequencers can allow vote rewrites up to $T$ times the number of new votes for any state transition. $T$ will be defined as a constant in the protocol.
116 \end{itemize}
117 \item The number of \textbf{non-processed votes} in relation to the maximum number of voters.
118\end{itemize}
119
120The total reward obtained can be expressed as:
121
122$$ sequencerReward_i = R \cdot \left( \frac{\text{votes}_i}{\text{maxVotes}} \right) + W \cdot \left( \frac{\text{voteRewrites}_i}{\text{totalRewrites}} \right) $$
123
124And subject to the constraints:
125
126$$ \frac{\text{voteRewrites}_i}{\text{votes}_i} \leq T$$
127
128$$ totalReward = R + W $$
129
130$$ R > W $$
131
132\begin{itemize}
133 \item $R > W$ since the sequencers must prioritize processing votes and not be incetivized to just rewrite existing votes.
134\end{itemize}
135
136Where:
137
138\begin{itemize}
139 \item $R$: A part of the reward pool allocated for a specific voting process.
140 \item $votes_i$: The number of votes processed by the sequencer for a specific voting process.
141 \item $maxVotes$: The maximum number of voters participating in a voting process.
142 \item $W$: A part of the reward pool allocated for a specific voting process.
143 \item $voteRewrites_i$: The number of vote rewrites processed by the sequencer for a specific voting process.
144 \item $totalRewrites$: The total number of vote rewrites for a specific process.
145\end{itemize}
146
147\subsubsection{Penalties:}
148
149\begin{itemize}
150 \item Non-Participation: Sequencers who fail to meet their obligation, not providing key shares during the tally phase, can have their collateral slashed.
151 Penalites for a sequencer can be expressed as:
152 $$ SlashedAmount_i = s \cdot StakedCollateral_i $$
153 Where:
154 \begin{itemize}
155 \item $SlashedAmount_i$: The total slashed amount for a given sequencer.
156 \item $s$: The slashing coefficient $0 \leq s \leq 1$.
157 \item $StakedCollateral_i$: The amount of VOC tokens staked by a given sequencer.
158 \end{itemize}
159\end{itemize}
160
161\subsection{Summary}
162
163The total cost formula combines four main components:
164
165\begin{enumerate}
166 \item A base cost for setting up the process.
167 \item A capacity cost based on the number of voters, the total running processes and available sequencer capacity.
168 \item A duration cost based on how long the process lasts.
169 \item A security cost based on the number of sequencers used, with diminishing returns for using more than a certain number.
170\end{enumerate}
171
172The proposed formula ensures that:
173
174\begin{itemize}
175 \item Small processes are cost-efficient.
176 \item Larger processes or processes using a high proportion of available sequencer capacity incur higher costs.
177 \item The cost of security increases rapidly if more sequencers are used, but adding sequencers beyond a certain point leads to diminishing returns.
178 \item Impractical scenarios cannot be reached.
179\end{itemize}
180
181\subsubsection{Notes on optimization}
182
183In the model presented we can clearly see that there are conflicting objectives from the two main actors:
184
185\begin{itemize}
186 \item The organizer (the "buyer" of services) wants to minimize the cost of running the process.
187 \item The sequencers (the "sellers" of capacity) want to maximize their rewards. A sequencer can decide whether to participate based on expected profits.
188\end{itemize}
189
190These are naturally conflicting objectives that can be modeled as a strategic game. However, modeling this equilibrium for the protocol it is not in the scope on this document and will be presented in a separate piece.