NCUE Student AssociationCampus election system · co-development
It knows you are eligible to vote. It does not know who you voted for.
The student association's e-voting system. Students sign in with their campus account to prove eligibility, the browser generates a zero-knowledge proof when they vote, and the server accepts the ballot only after verifying it; the ballot table holds no student IDs. Built by a team from GDG on Campus NCUE and the association's IT department; io Software co-founder Ming Chen started the project and wrote the first spec.


Goal
An election has to do four things at once: confirm the voter is eligible, keep the ballot unlinkable to the voter, allow one vote per person, and produce results that can be checked rather than taken on trust. Voters and administrators are kept apart too, and administrators cannot touch voting.
Approach
- Eligibility comes from campus SSO; the server stores only a hash of the student ID and checks it against the voter roll.
- The browser generates a secret locally and hands the server only a Poseidon commitment; the secret never leaves the student's device.
- Voting generates a Groth16 proof in a background worker, and the ballot is encrypted with the election's RSA-2048 public key, decrypted only at the count.
- The server verifies the proof and checks for a prior vote; marking the key used and storing the ballot happen in one transaction, and the ballot table holds neither student ID nor commitment.
- Voters sign in with campus SSO, administrators with the association's Keycloak; the two entrances are separate and the admin side has no voting features at all.
Result
- The system is live; students vote from a phone or a computer.
- The election back office creates elections, locks candidates, imports voter rolls, monitors turnout and runs draws, alongside election notices, a voting guide and a public results page.
- The trade-off, stated plainly: the live circuit proves knowledge of the two values behind the commitment, while eligibility and double-voting are checked by server lookups, a hybrid of centralised identity and zero-knowledge proofs. The Merkle-tree membership proof and nullifier in the spec are not live yet.
- The code is public on GitHub.
More screens
Want your project built this way?
Talk to us first. No spec document needed.