On-Chain Voting

Free, transparent, and verifiable elections on the CoCo Blockchain.
From union strikes to shareholder boards to national referendums — one system, every use case.

89 Unit Tests 4 Vote Types FREE Creation Privacy Shield Auto-Distribute Tamper-Proof 7 Extrinsics
Browse Elections Cast a Vote Admin Panel

What is On-Chain Voting?

On-chain voting means every ballot is recorded directly on the CoCo Blockchain — not in a database, not on a server, but in the immutable ledger itself. Each election creates a unique sub-coin (a "vote token") that is distributed to eligible voters. Casting a vote burns one token, making it mathematically impossible to vote twice. The entire process — from creation to tally — is publicly verifiable by anyone, anywhere, forever.

Unlike traditional online voting systems that rely on a trusted central authority, CoCo's on-chain voting distributes trust across the network. No single entity controls the outcome. The rules are enforced by the blockchain runtime, not by a person. This means elections are auditable, transparent, and resistant to tampering or manipulation.

How It Works

1. Create an Election

Anyone creates an election for free. Choose a name, options, voting window, and vote type. Each election is deployed as a sub-coin (pallet-assets) on-chain, giving you verifiable vote tokens instantly. Cost: zero.

2. Distribute Vote Tokens

Upload a citizen CSV, auto-distribute to existing shareholders, or let voters buy tokens. One token equals one vote. Mint in batches of up to 100 recipients per call. Multiple distribution models available.

3. Voters Cast Ballots

Voters sign with their wallet and submit their choice. The vote token is burned on submission — mathematically impossible to vote twice. Optional privacy shield routes ballots through stealth addresses.

4. Close, Finalize, Audit

After the voting window ends, the election is closed and finalized. Remaining undistributed tokens are burned. Results are published to the blockchain — immutable and auditable by anyone forever.

Why On-Chain Voting?

Tamper-Proof

Every ballot is a signed blockchain transaction. Changing a vote after casting requires rewriting the chain — computationally infeasible. Results are final the moment they're recorded.

Publicly Auditable

Anyone can query any election, any ballot, any tally directly from the chain. No need to trust a central authority — verify the results yourself with the block explorer.

No Middleman

The blockchain enforces the rules, not a company or administrator. Election parameters (window, vote type, token distribution) are set at creation and executed autonomously.

Free to Create

Creating an election costs nothing. VoteSessionPrice is set to zero. Run as many elections as you need — community polls, board votes, union strikes — without gas fees.

Flexible Distribution

Five distribution models: share-gated (weighted by holdings), CSV-gated (one person, one vote), KYC-gated (verified identities), open-purchase (anyone can buy), and manual mint (custom amounts).

Optional Privacy

Sensitive elections can enable the privacy shield. Votes route through stealth addresses so voter identities stay off the public record while maintaining verifiable tallies.

Vote Types

Democratic

One person, one vote. Each voter receives exactly 1 token. Perfect for member votes, community polls, and national elections where everyone gets equal say.

Shareholder

Weighted by holdings. Voters receive tokens proportional to their existing share or security coin balance. Ideal for corporate governance and board elections.

Referendum

Binary Yes/No choice with threshold enforcement. Built for union strike authorizations, constitutional changes, and approval-based decisions.

Open

Anyone can participate. Tokens are purchasable with COCO. Best for public referendums, community budget proposals, and DAO governance.

Use Cases

🏛️ National & Local Elections

Democratic type with citizen CSV upload. One person, one vote. Verifiable voter rolls, immutable results. Optional anonymization shields individual ballots.

🏢 Corporate Governance

Shareholder type weighted by share coin holdings. Board elections, shareholder proposals, and HOA votes with proportional voting power.

⚡ Union Strike Authorization

Referendum type with Yes/No. Quick, verifiable member ballots. No disputed results — on-chain proof of the vote.

🏘️ HOA & Community Votes

Share coin type with 1 token per unit. Budget approvals, rule changes, board elections for homeowner associations.

🌐 DAO Governance

Token-weighted proposals with seamless integration into existing sub-coin ecosystems and community treasuries.

📊 Budget Proposals

Open type — anyone votes. Transparent allocation of community funds with on-chain proof and full audit trail.