vocdoni-ballot-protocol
Installation
SKILL.md
Vocdoni Ballot Protocol
A small, deliberate specification for how Vocdoni encodes ballots and accumulates results. Everything the SDK does ends up serialised into this shape — knowing it makes the SDK's IVoteType fields make sense and lets you debug "why does my vote array produce those results" without guessing.
This is the data model under the API. Read [[vocdoni-sdk]] for the SDK call surface that produces and consumes these ballots.
Core idea
A voting process has one or more fields. Each field is either:
- a question (single-choice-multiquestion elections —
Vote([q1_choice, q2_choice, …])), or - an option of a single question (approval, multichoice, budget, quadratic, ranked —
Vote([opt1_value, opt2_value, …])).
A ballot is an array of natural numbers, one entry per field. Each entry is the voter's value for that field.
Results are accumulated in a matrix: