Skip to content
zktallyPublic

About

Organization profile and shared community health files for ZKTally

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

ZKTally logo

🗳️ ZKTally

Verifiable voting you can watch happen

Privacy-preserving, anonymously verifiable e-voting from linkable ring signatures, Paillier homomorphic encryption, and NIZK vote-correctness proofs.

Live App PyPI npm Demo

Python TypeScript Vue Vite Tailwind CSS


🎬 Demo

ZKTally demo
▶ Click to watch the full demo on Google Drive

🔍 What is ZKTally?

ZKTally is an e-voting protocol in which no one ever opens an individual ballot, yet anyone can check the count. A ballot is three things travelling together: an encrypted vote, a proof that the vote is legal, and a ring signature proving the caster is on the roll. Tallying multiplies the ciphertexts and decrypts only the total, and a deterministic key image still makes a second ballot from the same key detectable.

The protocol ships as a Python reference implementation with a zktally command line, a wire-compatible TypeScript port for the browser and Node, and an interactive explainer that runs a real election in your browser. Both implementations share one wire format (zktally/1) and one corpus of test vectors, so a ballot cast in the browser verifies in Python. ZKTally is unaudited academic software and must not be used for any binding election.

🎯 Built for

ZKTally was built for the II4021-24 Cryptography course at STEI ITB.


❓ Problem → 💡 Solution

❓ Problem 💡 How ZKTally solves it
Secret ballots hide the count — if no one may see a vote, there is nothing for voters to check the result against. Homomorphic tallying — Paillier ciphertexts are multiplied into one number and only that aggregate is decrypted, so the total is computed without opening a single ballot.
An encrypted vote can be anything — a ciphertext of 7 instead of 0 or 1 would add seven votes at once, and nobody can see it. NIZK OR-proofs — every ballot proves its plaintext is a legal vote (binary, or exactly one of k) without revealing which.
Anonymity invites double voting — if the signer is hidden, a voter could cast twice unnoticed. Linkable ring signatures — the caster proves they are some registered voter, and the deterministic key image flags any second ballot from the same key.
Verification usually means trusting the authority — the auditor needs the keys the auditor is meant to check. Secret-free audit — zktally audit re-verifies every ballot and partial decryption from public data alone; threshold mode makes the tally itself verifiable.

📸 Screenshots

Landing — verifiable voting you can watch

ZKTally landing page with the headline 'Verifiable voting you can watch happen' and the unaudited-software disclaimer
Walkthrough — setting up the Paillier key

Step 1 of 6 of the walkthrough showing the 2048-bit public modulus and the election context digest
Election sandbox — setup

Election sandbox form with a yes/no question, voter count slider and key size selector
Election created — ring hash and authority warning

Created election showing 12 voters, a 2048-bit key, the ring hash and a single-authority warning
Every voter cast a ballot

Grid of twelve voters all marked as voted, with buttons to inspect the board, count the votes and export JSON
Adversary mode — six attacks, all rejected

Adversary mode cards for double voting, forged key image, own ring, poisoned tally, copied vote and out-of-range vote, each rejected
Result — tally and rejected ballots

Result page with 8 yes and 4 no votes and a list of five rejected ballots with their reasons
Verify a board — paste any board JSON

Verify a board page with a board JSON editor and a summary of 17 ballots, 12 accepted and 5 rejected

📦 Repositories

Repository Description Tech Stack Deployment
ZKTally Python reference implementation and the zktally command line. Python · Paillier · LSAG · secp256k1 · gmpy2 PyPI
zktally-js TypeScript port for the browser and Node, wire-compatible with the reference. TypeScript · @noble/curves · @noble/hashes · Web Workers · Vitest npm
zktally.github.io Interactive explainer that runs a real election in your browser. Vue 3 · Vite · Tailwind CSS · Pinia · Playwright zktally.github.io
paper The protocol paper. LaTeX —
.github This organization profile and its assets. Markdown —

© 2025 Faiz Atharrahman

About

Organization profile and shared community health files for ZKTally

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors