Last updated 7 months ago
Building a standardized, modular SDK for commit–reveal voting on Midnight, complete with CLI tools, tests, and docs—ensuring scalability, future-proof updates, and seamless onboarding.
This is the total amount allocated to Midnight privacy Voting SDK.
Please provide your proposal title
Midnight privacy Voting SDK
Enter the amount of funding you are requesting in ADA
92738
Please specify how many months you expect your project to last
6
Please indicate if your proposal has been auto-translated
No
Original Language
en
What is the problem you want to solve?
Supporting links
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
License and Additional Information
Apache 2.0
Please choose the most relevant theme and tag related to the outcomes of your proposal
Developer Tools
Mention your open source license and describe your open source license rationale.
Apache 2.0 promotes open use, modification, and redistribution, fostering transparency and collaboration — core values of Project Catalyst. Its patent grants protect contributors and users, reducing legal risks in blockchain projects and supporting ecosystem stability. Allowing integration into both proprietary and open-source projects, Apache 2.0 enables sustainable SDK and app development within Cardano’s developer community. Widely adopted by major blockchain projects, it builds trust, facilitates partnerships, and attracts diverse contributors to Catalyst-funded initiatives
How do you make sure your source code is accessible to the public from project start, and people are informed?
We release our source code publicly from the start under the Apache 2.0 license, promoting transparency and collaboration. It’s hosted on public repos with clear docs and updates to keep the community informed, aligning with Project Catalyst values.
How will you provide high quality documentation?
We create clear, detailed technical documentation covering architecture, logic flow, and data structures. The docs are regularly updated alongside code changes and include examples to help developers understand and use the system effectively. This ensures accessibility and supports community adoption and contribution.
Please describe your proposed solution and how it addresses the problem
Lack of a standardized SDK for implementing commit–reveal voting on Midnight
Building DAO applications with strong privacy is a core goal of the Midnight ecosystem.
One of the most critical components of these DAO systems is the anonymous voting mechanism, often implemented using the commit–reveal voting model.
Although our team has developed a feasible prototype simulating voting logic and testing scenarios with Midnight’s testnet, a significant gap remains:
This forces each development team to "start from scratch," rewriting voting logic and environment simulations, facing high risks when the Midnight testnet changes. This issue not only slows product development but also hinders the widespread adoption of private voting mechanisms within the Cardano & Midnight ecosystem.
📌 Summary of key issues:
For more details: Please read here https://vcc.gitbook.io/m9dao-project/proposal/2nd-stage-sdk-dev/technical-details
Building a Standardized Modular SDK for Commit–Reveal Voting on Midnight
This proposal focuses on productizing the research outcomes from our 1st stage by delivering a developer-ready SDK for private voting on Midnight.
While 1st stage (Research & Prototype) validated the technical feasibility of commit–reveal voting through a working prototype and internal simulation, it was never intended to be reused directly in production environments. The prototype was purpose-built for testing hypotheses, not for integration into other projects.
The 2nd stage bridges this gap by transforming the prototype logic into a standardized, reusable SDK that other development teams can plug into their DAO/dApp projects without rewriting core voting logic from scratch.
Core Objectives
Modularize components (logic, CLI tools, testing environment, documentation) to maximize maintainability and scalability.

SDK Main Components
vote-core (Voting Logic)
vote-cli (Command-line & Automation)
vote-test-env (Simulation & Testing)
vote-docs (Technical Documentation)

Key Difference from Research phase:
Research phase: Experimental prototype to test feasibility → internal use, not modular, no standard API, no reusable test harness.
SDK dev phase: Developer-facing SDK with stable API, reusable modules, formal test harness, and integration documentation for ecosystem adoption.
Technical Approach & Design
Please define the positive impact your project will have on the wider Cardano community
Impact & Benefits for Cardano Ecosystem
1. Accelerates DAO Development on Midnight & Cardano
2. Establishes a Technical Standard for Private Voting
3. Boosts Ecosystem Security & Reliability
4. Enhances Developer Experience & Onboarding
5. Future-Proof & Adaptable to Protocol Changes
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?
Team Capability
Our team consists of experienced blockchain developers, solution architects, and DAO specialists who have previously built a working commit–reveal prototype on Midnight’s testnet. With expertise in Rust, zero-knowledge proofs, and DAO governance, we have the technical capacity to deliver a production-ready SDK.
Preparation Work
Prior to this proposal, we conducted preliminary research on solution design, reviewed relevant ZK frameworks, and validated the commit–reveal logic through internal simulations. We have also drafted the implementation roadmap and identified key milestones to ensure smooth execution.
Check our preparation: https://vcc.gitbook.io/m9dao-project/proposal/2nd-stage-sdk-dev/technical-details
Transparency & Open Source
The entire SDK, documentation, and integration samples will be released under an open-source license on GitHub, ensuring transparency, community contribution, and long-term ecosystem adoption.
Milestone Title
SDK Architecture Standardization
Milestone Outputs
Acceptance Criteria
Evidence of Completion
Delivery Month
1
Cost
18229
Progress
20 %
Milestone Title
SDK Feature Development
Milestone Outputs
Acceptance Criteria
Evidence of Completion
Delivery Month
3
Cost
31068
Progress
50 %
Milestone Title
Documentation & Sample Integration Kit
Milestone Outputs
Acceptance Criteria
Evidence of Completion
Delivery Month
5
Cost
23095
Progress
80 %
Milestone Title
Public Release & Packaging
Milestone Outputs
Acceptance Criteria
Evidence of Completion
Delivery Month
6
Cost
20346
Progress
100 %
Please provide a cost breakdown of the proposed work and resources
Total: 92,738 ADA
ADA rate ~ 0.8$
Milestone 1 – SDK Architecture Standardization
Description: Refactor prototype SDK module, define trait/interface, Architecture Standardization.
Roles n' Hours:
Cost: 18,229 ADA
Milestone 2 – Core SDK Feature Development
Description: buillding commit/reveal modules, epoch simulation, unit tests.
Roles n' Hours:
Cost: 31,068 ADA
Milestone 3 – Documentation and Sample Integration
Description: Creating API doc, demo app, integration guide.
Roles n' Hours:
Cost: 23,095 ADA
Milestone 4 – Public Release and Packaging
Description: QA, benchmark, open-source release.
Roles n' Hours:
Cost: 20,346 ADA
How does the cost of the project represent value for the Cardano ecosystem?
This SDK delivers a cost-effective, production-grade foundation for integrating anonymous voting into DAO infrastructures on Cardano, powered by the Midnight privacy stack.
By modularizing complex components such as commit–reveal voting, time-locked sessions, and zero-knowledge proof handling, the SDK drastically reduces technical overhead for ecosystem builders.
The project is fully open-source and designed for reusability, ensuring that other teams can build upon it without reinventing the wheel. Based on typical market development rates, it is estimated to save 30–50% of development cost and time for future DAO-related applications.
The team behind the SDK consists of experienced Rust developers and privacy researchers with a proven track record in blockchain R&D.
The deliverables follow best practices in software engineering: clean code, robust test coverage, formal documentation, and production-ready packaging. This ensures long-term maintainability and real-world applicability across multiple use cases within the Cardano ecosystem.
Terms and Conditions:
Yes
Do Trung Nhan
Role: Project lead
Experience: IT engineer with 10+ years of experience in complex software projects with high user traffic. 2 years of hands-on experience in Cardano smart contract development using Plutus, Aiken, and Haskell. Skilled in smart contract development, testing, and blockchain transaction integration.
Pham Cong Hai
Role: Tech lead
Experience: 3+ years of experience in Vue.js, Nuxt 3, Rutst, TypeScript, and JavaScript. Skilled in backend frameworks like NestJS and ExpressJS, with experience in UI development using Tailwind CSS. Currently a Frontend Web Developer at tabtab.me – a real estate platform powered by AI. Graduated from Hanoi University of Science and Technology.
VCC team
Role: Project co-manager
An experienced Catalyst-funded team from Vietnam with a proven track record of delivering high-quality projects for the Cardano ecosystem. Our members bring expertise in blockchain development, DAO governance, community building, content creation, and technical documentation.
Have successfully completed multiple Catalyst proposals, reaching tens of thousands of community members through educational content, multilingual resources, and practical blockchain tools. Our mission is to connect, educate, and empower the Vietnamese and global Cardano community.