Architect · Oct - Dec 2024

Cardano Constitutional Convention Voting App

The delegate vote to ratify the constitution of a ~$40B public network — built in six weeks and used by 126 delegates from 63 countries during a live event streamed worldwide.

Visit Live Site →
~$40BNetwork Value
126Delegates
63Countries
6 weeksBuild Timeline

The Challenge

The Cardano Constitutional Convention needed a voting system that could do more than collect button clicks. It had to let organizers create and manage polls, allow only the correct representatives to vote, handle delegate and alternate role changes by workshop, keep results hidden until a poll concluded, and ultimately publish final vote records on-chain for public verification. The system had to work flawlessly during a high-profile live event streamed by thousands worldwide, with simultaneous conventions in Buenos Aires and Nairobi.

What I Built

I designed the vote so the result can be verified without trusting the app. Every ballot is a wallet-signed message — voter identity, a hash of the constitution text, poll name, vote, and timestamp — verified server-side against a single-use, expiring challenge, with the stake address re-derived from the signing key and matched to the registered delegate. After each poll closed, the organizer signed transactions that published every signature to the network's public ledger: I batched signatures into transaction metadata within per-transaction size limits, recorded each vote's transaction ID so retries never double-publish, and polled for confirmation with a retry path for failures. Seven wallet providers sit behind one sign-in flow by normalizing how each one signs, rather than special-casing wallets.

Key Decisions

Off-chain signatures, on-chain proofs: delegates sign a message instead of submitting a transaction, so voting costs nothing, needs no funded wallet, and works for non-technical users during a live event, while the organizer pays once per batch to publish the proofs. I enforced every voting rule in the API, not the UI — one active voter per workshop, votes accepted only while a poll is open, results hidden until close, organizer-only routes checked against the session — plus a strict Content Security Policy. The two-engineer build is open source (Apache 2.0), with a 29-endpoint API and 118 test files.

Impact

The application was used by 126 delegates from 63 countries during the live constitutional convention, where delegates ratified the network's first constitution, and it passed an independent third-party audit. I coordinated across three organizations — Intersect, IOG, and DQuadrant — and provided in-person walkthroughs and technical support on-site in Nairobi. Because every signature is on the public ledger, the ratification is a verifiable public record beyond the application itself.

Tech Stack

Next.jsTypeScriptPostgreSQLPrismaNextAuthReact QueryMUICardanoSentryVitestReact Testing LibraryMSW

Next project

EZ Event Registration

View Project →