Quadratic voting as a Substrate pallet
My 2024 thesis at UCASAL. I built a Substrate runtime pallet for quadratic voting where voters register, reserve tokens and spend them on the proposals they care about.
For my Computer Engineering thesis at UCASAL in 2024, I picked a real organization and looked at how its elections could work differently. That organization was COPAIPA, the professional council of surveyors and engineers in Salta.
The problem
Their elections work the usual way. Members show up in person on one day, cast a single vote each, and at the end people count the ballots by hand. That part works fine. The issue is that every opinion carries the same weight. A majority ends up deciding everything, even on issues it barely cares about. In the thesis I called this the tyranny of the majority.
Say ten members are choosing between two options. Six of them slightly prefer option A. It would be nice, sure, though they don’t feel strongly about it. The other four really need option B because it affects their work directly. Under one person, one vote, A wins six to four. Nothing in that result shows how much each side cared.
It doesn’t stop at elections either. Once the authorities are elected, they decide how the council’s money gets used, and members don’t have a direct say in each of those decisions.
Why quadratic voting
Before picking a model, I compared consensus voting, range voting and quadratic voting. Quadratic voting was the one that actually dealt with the majority problem.
It works like this. Every voter gets the same budget of tokens, say 100, and spreads them across the options they care about. The catch is the cost: your votes cost the number of votes squared. So 1 vote costs 1 token, 2 votes cost 4, and 10 votes on one option eat up all 100.
Going back to the ten members: say each of the six A voters puts 1 vote on A, paying 1 token each. Each of the four B voters cares enough to put 3 votes on B, which costs them 9 tokens each. Now A gets 6 votes and B gets 12. B wins. Nobody got a bigger budget. Those four just spent more of theirs on the thing they cared about.
So you can still show when something really matters to you. Going all in on one option gets expensive fast, though. People end up spreading their votes around, and a big group can’t push every decision its way without paying for it.
Why a blockchain
A vote shouldn’t be something anyone can quietly alter. On a blockchain, every vote is a transaction on a shared ledger. Once it’s cast you can’t edit it, and anyone can verify the count. There’s no central authority counting votes behind closed doors.
The prototype
I built it as a runtime pallet on Substrate, the framework behind Polkadot. Members register, someone creates a proposal and opens it for a fixed period, and voters reserve tokens and spend them across one or more proposals. Once the period ends, the pallet picks the winner. Proposals don’t have to be elections either. They can be about anything.
I worked in short iterations, adding a piece and testing it before moving on. By the end I had around 30 unit tests, mostly checking that things fail when they should: an unregistered voter, a proposal that hasn’t started yet, voting twice, not enough tokens. After that I ran the whole flow by hand through Polkadot.js.
I kept the scope to a working prototype, not a rollout. Deploying it at the council and connecting it to their systems were out of scope. So was training people.
Conclusions
Honestly, the tech wasn’t the hard part. The prototype worked, and I think a system like this can be secure and transparent. People are a different story. Organizations that have always voted in person are probably going to resist something this different.
The model could fit other places too, like a nonprofit deciding how to spend its budget or a research community choosing which projects to fund. Maybe even public elections one day.