Sybilization

Private voting with ZKPassport biometric identity verification on Aztec Network

Repo
Sybilization banner

About

Sybilization is a privacy-preserving voting system built on Aztec Network that uses ZKPassport for Sybil-resistant anonymous voting. Users verify their identity through biometric passport scanning with the ZKPassport mobile app, which generates zero-knowledge proofs locally without revealing personal data. Each passport creates a unique nullifier stored in Aztec's nullifier tree, preventing double-voting while maintaining complete voter anonymity.

The system features time-based voting periods, encrypted vote reasons, and immutable result snapshots. All vote execution happens privately on users' devices, while only vote tallies are public and auditable. The admin panel allows voting period management, and the sponsored FPC integration provides gasless transactions for voters. The project includes a complete UI with mock wallet testing for demos and real ZKPassport QR integration for production use.

How it's made

This project is built on Aztec Network v3.0.0-devnet.5 using Noir smart contracts for private execution. The architecture consists of three layers:

**Smart Contract (Noir)**: The PrivateVoting contract uses Aztec's nullifier tree for Sybil resistance and private execution for vote secrecy. Vote tallies are stored in public storage for transparency, while voter identities remain private. The contract includes time-based validation, admin controls, and immutable snapshot functionality.

**Backend (Node.js + Express)**: The API server manages TestWallet instances, interfaces with Aztec devnet via @aztec/aztec.js, and implements ZKPassport SDK integration for QR code generation. It uses Sponsored FPC for gasless voting and includes comprehensive admin endpoints for contract management.

**Frontend (Next.js 16)**: Built with React and Server-Sent Events for real-time ZKPassport verification. The UI includes three mock wallets (Alice, Bob, Charlie) for testing, dynamic admin panel with floating UI, and automatic fallback to mock mode when ZKPassport service is unavailable.

**Notable Hacks**:

1. **Deterministic Admin Keys**: We generate consistent admin accounts across deployments using fixed encryption keys, enabling reliable contract management in demo environments.

  • **Post-Compilation Pipeline**: Contracts require aztec-nargo compilation followed by aztec-postprocess-contract transpilation. We automated this in setup.sh for judge convenience.
  • **Mock Wallet System**: Created three predefined passport identities with unique nullifiers for rapid testing, with a random generator for unlimited test scenarios.
  • **SSE for ZKPassport**: Implemented Server-Sent Events to stream QR codes and verification results from backend to frontend, maintaining architectural separation while preserving real-time functionality.
  • **Buffer Polyfill**: Added global.Buffer polyfill to handle ES module compatibility issues with Aztec dependencies in the API server.

The project leverages OpenPassport's noir_dl_lib circuits for ZKPassport integration, though currently uses simulated proofs for demo purposes. The full system is deployed on Aztec Devnet with contract address 0x0a677f12fcb035495fe5e7262e8493dd5af7d7a5aa5a296babd70fb967d3cc45.

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

CivGuard

CivGuard is a privacy-focused voting system ensuring secure, anonymous, and verifiable local elections using advanced encryption and privacy-preserving tech. Vote with confidence and transparency! #Privacy #ElectionSecurity

DemocraSafe

DemocraSafe is a zk-DApp on the Mina Protocol, offering secure, private, and auditable voting using zero-knowledge proofs. It ensures vote confidentiality and integrity for all election scales, empowering users to vote with confidence