Last updated 5 months ago
Token-based governance fails by prioritizing capital over expertise (plutocracy). Merit-based voting requires secure, private proof of qualifications (VCs), impossible without programmable privacy.
Merito Compact DApp uses Midnight to enable verified-identity, merit-based governance. It privately links user DIDs, proves VCs, and calculates weighted votes via ZK-proofs without public disclosure.
Please provide your proposal title
Private Meritocratic DAO Voting Framework
Please specify how many months you expect your project to last
3
Please indicate if your proposal has been auto-translated
No
Original Language
en
What is the problem you want to solve?
Token-based governance fails by prioritizing capital over expertise (plutocracy). Merit-based voting requires secure, private proof of qualifications (VCs), impossible without programmable privacy.
Does your project have any dependencies on other organizations, technical or otherwise?
No
Describe any dependencies or write 'No dependencies'
No dependencies
Will your project's outputs be fully open source?
Yes
Please provide here more information on the open source status of your project outputs
open source (Apache 2.0)
Please choose the most relevant theme and tag related to the outcomes of your proposal
Governance
What is useful about your DApp within one of the specified industry or enterprise verticals?
The Merito Compact DApp delivers essential utility within the Decentralized Finance (DeFi) and Governance vertical, specifically for DAO Treasury and Risk Management. It addresses the critical need to shift decision-making from token-weight to expertise-weight, securely and privately.
Utility in DeFi/DAO Governance
The primary utility of Merito is the implementation of Privacy-Preserving Meritocracy for high-stakes governance decisions.
Core Problem Solved in DeFi
Plutocracy and Risk: Current DeFi DAOs rely on token-weighted voting, allowing "whales" to vote on complex treasury withdrawal or collateral ratio changes without proving they possess any relevant financial, legal, or architectural expertise. This introduces systemic risk.
Merito Solution: Merito uses Midnight's Private State to enable the creation of Expert-Only Voting Committees where eligibility is based on verifiable credentials, not coin count, thus increasing decision quality and reducing systemic risk.
Technical Utility and Output
Expert Gatekeeping: The DApp allows a DAO to define a strict, privacy-enhanced prerequisite for voting on critical actions.
Example Governance Category: DAO-Treasury-Withdrawal
Required VCs (Example): Proof of a Master's Degree in Financial Engineering (off-chain VC) AND Proof of a Cardano DRep Badge (on-chain VC).
Verifiable Expertise (Zero-Knowledge Proofs): The voter generates a ZKP proving they meet all criteria without revealing their name, specific degree, or wallet balance. They only prove the result: "I am eligible, and my vote weight is 2x."
Concrete Developer Outputs
The utility is provided as a reusable technical framework, not a final user product.
compact_contract::vote_weight_engine::verify_and_calculate(proof_input: ZKProof, category_id: u64) -> Result
merito_sdk.proof.generateMeritProof(userCredentials: Array
npm run test:sdk -- --module=proofgen (Tests the successful generation of a ZKP given simulated VC inputs).
Architecture
The core mechanism is shown below:
What exactly will you build? List the Compact contract(s) and key functions/proofs, the demo UI flow, Lace (Midnight) wallet integration, and your basic test plan.
The Merito Compact DApp is necessary to advance governance beyond token-weighting by providing a set of indispensable data-protection patterns that are impossible on public-by-default blockchains.
We will build the Merito Compact DApp, a focused Proof-of-Concept (PoC) comprising the core contract, a reusable SDK, and a demonstration UI.
1. Compact Contract(s) and Key Functions
We will implement a single, core Compact Contract for maximum efficiency.
verify_and_cast_vote(proof_input: ZKProof, proposal_id: u64) -> Result
- **Purpose**: Takes the ZK proof generated locally by the user. Verifies the proof's integrity and its assertions regarding unique identity and weighted score ($W$). If verified, the DAO contract is updated with the final weighted vote of $W$.
2. Demo UI Flow & Wallet Integration
The user interface will be a browser-based PoC built with TypeScript/React, demonstrating the end-to-end privacy-preserving flow.
verify_and_cast_vote entrypoint on the Compact Contract for verification.3. Basic Test Plan
The basic test plan focuses on the two critical components where correctness is paramount:
verify_and_cast_vote function with both valid and invalid mock ZK proofs to ensure the contract correctly accepts proofs that pass all three assertions (Identity, VCs, and Calculation) and rejects those that fail even one.npm test -- --suite=proof_generationHow will other developers learn from and reuse your repo? Describe repo structure, README contents, docs/tutorials, test instructions, and extension points. Which developer personas benefit, and how will you gauge impact (forks, stars, issues, remixes)?
The Merito Compact DApp is designed as a code-first, privacy-enhancing reference implementation specifically engineered to accelerate development on Midnight by providing essential, reusable building blocks.
1. Developer Value and Personas
The Merito project directly benefits key developer personas by solving complex privacy challenges and offering functional tooling.
Identified Developer Personas:
Attraction and Measurable Signals:
2. Repository Reuse and Learning
The repository structure and documentation are meticulously designed to ensure immediate utility and learning opportunities for the community.
Repository Structure (merito-dao-poc/):
README Contents (The First Entrypoint):
Docs/Tutorials (Deep Dive Learning):
Test Instructions (Verification and Extension):
3. Extension Points (How to Rebuild)
The project is architected for maximum modularity and reusability:
Please describe your proposed solution and how it addresses the problem
The Merito Compact DApp is an open-source Reference DApp designed to solve the critical challenges of plutocracy and Sybil attacks in decentralized governance. It provides a foundational framework for implementing merit-based (shāyesteh-sālārī) voting, where a voter's influence is weighted not by token balance, but by their privately verifiable expertise, qualifications, and unique identity.
Merito operates entirely on the Midnight Blockchain, leveraging its core architecture specifically the Private State and the Compact Contract language to enable verifiable computation over private data.
The primary technical innovation of Merito is the secure and private execution of three critical tasks that are impossible on a public blockchain:
The Merito framework is composed of three interconnected components:
1-
2-
3-
The DApp flow is designed to ensure the user's private data never leaves their local machine and is only ever attested to by a ZK-proof generated within the Private State environment.
A. Private Identity Verification (Sybil Resistance)
B. VC Management and Governance Metadata Retrieval
Finance Degree, VC: Financial Decision Making Badge).C. ZK Proof Generation and Voting (Selective Disclosure)
1-
2-
3-
In line with the Project Catalyst requirement for reusable tooling, Merito will deliver highly valuable open-source components:
Merito thus serves not only as a functional governance tool but as a crucial Reference DApp that elevates the entire ecosystem by demonstrating how programmable privacy unlocks the next generation of decentralized, equitable, and expert-driven governance systems.
Please define the positive impact your project will have on Midnight ecosystem
The success of the Merito Compact DApp will bring significant value to the Midnight ecosystem by establishing a foundational and reusable solution for governance that is technically impossible on public-by-default blockchains.
Focus of the impact measurement shift to early validation and foundational developer interest rather than long-term adoption metrics.
Key Impact Goals
The successful completion of the Merito Compact DApp within three months will be measured by its technical quality, its utility as a Reference DApp, and the immediate interest it generates within the developer community.
The outputs of this project will be shared proactively and transparently to maximize utility for the entire Midnight developer community and ecosystem partners.
All final code, including the Merito Compact Contract and the TypeScript SDK, will be immediately pushed to a dedicated GitHub repository under the Apache 2.0 License. This ensures maximum reusability and commercial adoption potential.
We will publish a detailed technical tutorials and blog posts explaining the implementation of the core privacy patterns:
How to build a ZK circuit for VC verification.
The mechanism for Private State Sybil-Resistance (DID-to-ID linking).
Integrating the Merito SDK into a third-party DAO front-end.
Workshops and Engagement:
We will offer at least one live technical presentation or workshop focused on using the Merito framework. This will be shared with the Midnight Foundation for promotion to their community channels.
Active participation in the Midnight Discord/Forum to provide direct support, answer questions, and solicit feedback on the Merito codebase.
What is your capability to deliver your project with high levels of trust and accountability? How do you intend to validate if your approach is feasible?
Our team is uniquely suited to deliver a governance-focused Reference DApp due to our ongoing and self-funded commitment to solving real-world governance challenges:
Fund Management and Accountability
We understand that trust and transparency in financial management are paramount for Project Catalyst. While this is our first funded Catalyst proposal, we commit to delivering the project and managing the budget with the highest level of fiduciary responsibility.
Fund Management Process
Our process ensures every dollar of the requested $USDM is accounted for and directly tied to project delivery:
Milestone Verification for Trust
Funding will be released strictly upon the verifiable completion of each of the three defined milestones, providing the community and the Midnight Foundation with clear, auditable proof of work.
This rigorous process ensures the requested funds are disbursed only in exchange for tangible, fully completed, open-source deliverables.
Please provide a cost breakdown of the proposed work and resources
The $9,000 USDM budget is precisely calculated to cover the full-time dedication of both the Software Architect and the Software Engineer for three months, ensuring rapid and focused delivery of the high-complexity Compact DApp.
Cost Breakdown by Milestone (Equal Distribution)
Funding is distributed equally across the three milestones, with each payment covering the monthly cost of the two full-time team members.
1. M1: Foundation: Core Logic and Identity Linking
Deliverables Focus: Compact Contract V1, Private Identity Prototype, Initial Repo.
Personnel Cost: Covers full-time cost for Omid Ajourlou and Sadegh Ghoroghi.
Cost (USDM): $3,000
Percentage: 33.33%
Progress: 40%
2. M2: Integration: ZK Proofing and SDK Tooling
Deliverables Focus: ZK Proof Module, TypeScript SDK V1, Testnet Deployment.
Personnel Cost: Covers full-time cost for Omid Ajourlou and Sadegh Ghoroghi.
Cost (USDM): $3,000
Percentage: 33.33%
Progress: 80%
3. M3: Final Delivery, Demonstration, and Close-out
Deliverables Focus: Final PoC Video, Complete Testing Suite, Final Documentation, Report.
Personnel Cost: Covers full-time cost for Omid Ajourlou and Sadegh Ghoroghi.
Cost (USDM): $3,000
Percentage: 33.33%
Progress: 100%
Fund Management Summary
How does the cost of the project represent value for the Midnight ecosystem?
The Merito Compact DApp represents an exceptionally strong use of funds ($9,000 USDM) because it directly funds the creation of a foundational governance primitive that is technically impossible on public ledgers and provides immediate, reusable tooling for the Midnight developer community.
The project offers maximum utility and high Return on Investment (ROI) by leveraging the unique capabilities of the Midnight architecture to solve a critical, high-value problem in Web3 governance.
The $9,000 USDM budget directly purchases three months of dedicated, specialized labor necessary to deliver these critical assets:
Unlocking Meritocracy: Merito provides the first auditable, privacy-preserving framework to transition DAOs from token-weighted plutocracy to merit-based governance. This raises the quality and trustworthiness of decision-making for future Midnight-based protocols and enterprises.
Essential Reference Architecture: The DApp serves as the essential blueprint for complex privacy patterns, teaching developers how to combine core features:
Private Identity Linking: The pattern for Sybil-resistance using the Private State is critical for any unique-user-required service.
ZK-Proof Logic: A working, documented example of generating ZK-proofs over multiple private inputs (VCs) and running complex calculations (the Meritocratic Formula) that are verified by a Compact Contract.
Reusable Tooling: The project's main deliverables are modular and immediately reusable: the open-source TypeScript SDK and the MeritoWeightingEngine Compact Contract. This reduces the future development time and cost for all builders on the Midnight network.
The cost of $9,000 USDM for this project represents an extraordinary value proposition for the Midnight ecosystem, given the complexity of the required ZK/privacy engineering:
High ROI on Personnel: The budget funds two specialized individuals (Software Architect and Software Engineer) for a full, focused three-month commitment ($3,000 USDM per month). This is an extremely low cost for specialized blockchain engineering talent required to deliver a secure, production-grade reference DApp.
Focused Scope: The tight, 3-month timeline and fixed budget force a high-velocity, code-first PoC approach. Funds are not wasted on marketing, unnecessary features, or long-term operational overhead, but are channeled directly into functional software and reusable code.
Foundational Investment: By solving a core, foundational problem (governance/identity) with a reusable pattern, the Merito DApp enables dozens of future projects and saves the ecosystem significant collective development time and costs. This single $9,000 investment accelerates the entire Midnight development landscape.
I confirm that the proposal clearly provides a basic prototype reference application for one of the areas of interest.
Yes
I confirm that the proposal clearly defines which part of the developer journey it improves and how it makes building on Midnight easier and more productive.
Yes
I confirm that the proposal explicitly states the chosen permissive open-source license (e.g., MIT, Apache 2.0) and commits to a public code repository.
Yes
I confirm that the team provides evidence of their technical ability and experience in creating developer tools or high-quality technical content (e.g., GitHub, portfolio).
Yes
I confirm that a plan for creating and maintaining clear, comprehensive documentation is a core part of the proposal's scope.
Yes
I confirm that the budget and timeline (3 months) are realistic for delivering the proposed tool or resource.
Yes
I Agree
Yes
The Merito Compact DApp project will be executed by a focused, two-person team with specialized expertise in blockchain governance architecture, systems design, and software engineering. We have the required internal capacity for the entire scope of the 3-month project and do not require additional recruitment.
External Engagement and Support
As this is a code-first Reference DApp focused on core protocol demonstration, we are not reliant on formal third-party collaborations for development. However, we have taken steps to ensure we can access necessary technical support: