PRIMUS SECRET BALLOT
SEPOLIA
···
PROTOCOL: PRIMUS JOINT-WORKER zkFHEPublic Key PK: 0x04a9f1c8…b38c4eContract: 0x742d35…38f44e
State Testbench:
CONFIDENTIAL GOVERNANCEHOMOMORPHIC SUMMATIONTHRESHOLD DECRYPTION

Zero-Knowledge Fully Homomorphic Encrypted Ballot System

Individual DAO votes are encrypted client-side under a shared proposal public key Enc(vote, PK). The smart contract stores opaque ciphertexts and homomorphically accumulates the encrypted sum C = Compute(Enc(m₁, PK), Enc(m₂, PK), …). Only the final aggregate tally R is decrypted after the voting window closes.

01. KEYGEN
Shared Key PK
Active
02. ENCRYPT
Enc(vote, PK)
Ready
03. COMPUTE
Homomorphic Σ
3 Ciphertexts
04. DECRYPT
Threshold Tally
Locked
PROPOSAL SPECIFICATIONSEPOLIA TESTNET
Status: VOTING ACTIVE

PIP-04: Adopt Joint-Worker zkFHE Threshold Decryption for DAO Treasury Allocations

Authorizes migrating DAO treasury distributions to Primus Joint-Worker zkFHE circuits so individual delegate votes remain cryptographically opaque in storage while enabling verifiable homomorphic tallying at epoch closure.

Deadline Countdown
00:15:00
Unix: 1795460100
Encrypted Vote Count
3 ciphertexts
getEncryptedVoteCount()
Contract Owner
0x71C959…43292e
Threshold Coordinator

Cast Confidential Ballot

Client encrypts choice with Proposal Public Key PK before calling submitEncryptedVote(bytes)

SIMULATED TFHE / 256-BIT
Wallet Connection Required

Connect your Sepolia wallet to encrypt and submit a ballot commitment.

Homomorphic Tally & Threshold Decryption

Computes C = Compute(Enc(m₁, PK), Enc(m₂, PK), …) and reveals only aggregate tally R

STATE 4 · TALLY
HOMOMORPHIC ACCUMULATOR C_sum (3 encrypted ballots)Encrypted Sum
0x3a16fd76abca7593fae7ab6d30691d71d9ab61d9e4623f808a20a8e5a5e11a4d
Threshold Decryption Locked Until Deadline & Owner Signature

Voting is still active. Fast-forward the deadline to test State 4 (Owner Tally Reveal).