Private DAO

Private DAO governance with private credentials and verifiable voting on Midnight.

Repo

About

## Wave 1 submission

Wave 1 establishes a working end-to-end foundation for Private DAO, a privacy-aware governance application built on Midnight.

WHAT I BUILT

  • A Compact governance contract with 3 compiling circuits: createProposal, voteYes, and voteNo.
  • Proposal creation and publicly verifiable YES/NO aggregate results.
  • Midnight private-state integration for a 32-byte voter credential.
  • A Compact witness that supplies the private credential to the voting circuit without storing the credential in the public contract ledger.
  • Proposal-specific vote nullifiers derived with persistentHash(voterSecret, proposalId).
  • Contract-level duplicate-vote prevention using an on-chain usedNullifiers set.
  • Persistent private state: restarting the application restores the same private credential rather than generating a new voting identity.
  • A working Midnight.js wallet/deployment stack with DUST handling, proof generation, indexer integration, and local Midnight network support.
  • A connected React web interface backed by the real Midnight application stack, not mocked governance data.
  • An interactive CLI for direct contract interaction and debugging.
  • Automated end-to-end validation of deployed contract state.

VALIDATION

The implementation has been tested against a running local Midnight development network.

Tested flow:

1. Create a governance proposal. 2. Cast a YES vote successfully. 3. Verify public state shows YES 1 / NO 0. 4. Attempt to vote NO using the same persisted private credential. 5. Compact rejects the transaction with: "credential already voted on this proposal" 6. Verify the rejected transaction does not modify the tally. 7. Restart the application and attempt another vote. 8. The same credential is rejected again, demonstrating persistence across sessions.

A fresh clone of the public repository has also been tested with npm install, TypeScript build, and Compact compilation of all 3 circuits.

PRIVACY SCOPE

Wave 1 deliberately makes a narrow, testable privacy claim: the underlying voter credential remains in private application state while a proposal-specific derived nullifier enables credential-reuse prevention.

This version does NOT yet claim one-human-one-vote, authorized membership proofs, or a secret ballot. Those are explicit later-wave milestones.

DELIVERABLES

GitHub:

https://github.com/Fuuaad05/midnight-private-dao

Demo video:

https://youtu.be/FRWzETJ7l3k?si=tOPkDsDUcGJea4Xk

The repository is public, includes the Compact source, setup/testing documentation, and Apache-2.0 licensing.

From the public Akindo product 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.