← zk-playground

Binius64: vote as an anonymous member

A group publishes only the Merkle root of its members' commitments. A member proves "I am one of you" and casts one vote, without revealing which member they are. Each proof carries a nullifier derived from the member's secret and the poll, so a second vote by the same member in the same poll is caught, while votes in different polls cannot be linked to each other. The pattern behind anonymous voting, allowlists and rate-limited anonymous access. Test data only; secrets stay inside this tab's worker.

Run everything

Creates a group, votes, then checks double voting, swapped votes, other polls and groups, tampering and outsiders.


      

1 · The group

Published Merkle root:

—

2 · A member votes

No vote yet.

Vote again as the same member to see the ballot box refuse it.

3 · The ballot box (verifier)

It knows only the root, the poll, each vote and each nullifier, never which member voted.


      

4 · Tamper with the last vote's proof

Numbers

Log

Circuit: SHA-256 leaf, a 10-level SHA-256 Merkle path with hidden left/right choices, and the nullifier SHA-256(secret ‖ poll); zero-knowledge mode, the vote signed into the proof. Package: libraries/binius/ in the repository.