Last updated 5 months ago
AI needs high-quality data, but strict privacy rules block sharing. Training is opaque, compliance is hard to verify, users lack control, and impeding collaborations among institutions.
Enable encrypted AI training with zero-knowledge proofs, enforcing consent and compliance via Compact contracts so institutions can collaborate without exposing sensitive data
Please provide your proposal title
Zero-Knowledge AI Data Vault
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?
AI needs high-quality data, but strict privacy rules block sharing. Training is opaque, compliance is hard to verify, users lack control, and impeding collaborations among institutions.
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
Please provide here more information on the open source status of your project outputs
All code, UI, tests, documentation, and demo materials will be released under MIT License and hosted publicly
Please choose the most relevant theme and tag related to the outcomes of your proposal
AI
What is useful about your DApp within one of the specified industry or enterprise verticals?
src/contracts/DataVault.compact.ts → store encrypted datasetssrc/contracts/ZKTraining.compact.ts → train models & generate ZKPssrc/api/dataBridge.ts → entrypoints: uploadEncryptedData(), trainModel(), verifyProof()src/ui/ → demo UI for uploading datasets, triggering training, and verifying ZKPs
npm run test:encrypt # Tests data encryption module
npm run test:trainZKP # Tests training pipeline with ZK proofs
npm run test:audit # Tests audit verification workflow
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.
DataVault.compact.ts
Functions:
storeEncryptedData(data: EncryptedDataset) → Store encrypted datasets securely
retrieveEncryptedData(datasetId: string) → Retrieve encrypted dataset for AI training
ZKTraining.compact.ts
Functions:
trainModelZKP(datasetId: string, modelParams: ModelConfig) → Train AI model on encrypted data
verifyCompliance(trainingProof: ZKProof) → Generate and validate zero-knowledge proof of policy compliance
Proofs:
User logs in via Lace (Midnight) wallet
Upload encrypted dataset → stored in DataVault.compact.ts
Trigger AI training → ZKTraining.compact.ts performs computation on encrypted data
Display results + ZKP verification in the UI for audit or compliance purposes
src/api/dataBridge.ts
uploadEncryptedData() → Connects UI upload to DataVault.compact.ts
trainModel() → Triggers training on encrypted datasets
verifyProof() → Retrieves and verifies ZKP from ZKTraining.compact.ts
npm run test:encrypt # Verify encryption of datasets
npm run test:trainZKP # Test AI training pipeline with ZKPs
npm run test:audit # Validate audit / compliance verification workflow
How 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)?
Clear Repo Structure:
/src/contracts → Compact contracts for encrypted data storage and ZK training
/src/api → Functions connecting UI to contracts (uploadEncryptedData(), trainModel(), verifyProof())
/src/ui → Demo interface showing dataset upload, AI training, and ZKP verification
/test → Unit and integration tests demonstrating contract behavior
/docs → Tutorials, API references, and workflow guides
Comprehensive Documentation:
Step-by-step instructions for uploading datasets, training models, and verifying ZKPs
Examples of API calls and contract interactions
Guidance on extending PoC to other AI models or datasets
Tutorials and Examples:
End-to-end demo showing privacy-preserving AI workflow
How to generate and verify zero-knowledge proofs
Integration with Lace (Midnight) wallet for authentication
Extension Points:
Add new AI models for encrypted training
Extend ZKP logic for more compliance scenarios
Explore additional privacy-preserving patterns using Compact
Learning Outcomes for Developers:
Practical understanding of privacy-preserving AI on Midnight
Experience integrating Compact contracts and zero-knowledge proofs
Template for building reusable, privacy-first DApps
Please describe your proposed solution and how it addresses the problem
DataVault.compact.ts) and AI training (ZKTraining.compact.ts).Please define the positive impact your project will have on Midnight ecosystem
Demonstrates practical privacy-preserving AI workflows on Midnight using Compact contracts.
Provides a reusable open-source PoC for developers, accelerating adoption of Midnight technology.
Enables regulated institutions to collaborate on AI models without violating privacy laws, showcasing Midnight’s real-world utility.
Strengthens Midnight’s positioning as a platform for responsible, auditable AI development.
Quantitative Metrics:
GitHub repository activity: forks, stars, issues, pull requests
Number of PoC remixes or extensions by other developers
Test suite usage and contributions from the community
Qualitative Metrics:
Developer feedback via tutorials and walkthroughs
Adoption stories or references from enterprise or academic partners
Requests for new features or privacy patterns inspired by the PoC
Public GitHub repository containing all Compact contracts, API, UI, tests, and documentation
Step-by-step tutorials and README to guide developers through the PoC workflow
Demo videos and walkthroughs to demonstrate end-to-end encrypted AI training with ZKPs
Open channels for developer engagement, including issues, discussions, and community contributions
Presentations at Midnight ecosystem events or hackathons to encourage adoption and collaboration
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?
The ZK-AIDV project team brings proven expertise in blockchain development, zero-knowledge proofs (ZKPs), AI integration, and front-end engineering. Our ability to deliver high-quality outcomes is reinforced by the successful completion of previous funded projects, such as:
This prior success demonstrates our technical competence, reliability, and ability to manage funded projects effectively.
Feasibility Validation
The feasibility of ZK-AIDV will be validated through a structured, multi-step approach:
Trust & Accountability
Our experience managing funded projects demonstrates that we can responsibly manage resources. For ZK-AIDV, we will maintain this high standard through:
Combining prior experience, structured planning, transparent processes, and technical expertise positions the team to deliver ZK-AIDV reliably, on time, and with proper stewardship of funds.
Please provide a cost breakdown of the proposed work and resources
Total Requested Amount: $10,000 USD
This allocation ensures that the majority of funds are spent directly on project delivery, with a portion allocated to infrastructure, materials, and optional enhancements, maintaining responsible and transparent use of the grant.
How does the cost of the project represent value for the Midnight ecosystem?
The ZK-AIDV project represents a high-value use of the $10,000 grant because it directly advances privacy-preserving AI on the Midnight platform, creating reusable building blocks for developers and accelerating the adoption of secure, compliant AI workflows.
By funding ZK-AIDV, Midnight gains a reusable, open-source, privacy-preserving AI PoC that demonstrates the platform’s strengths, encourages developer adoption, and provides a concrete foundation for future innovation in regulated AI applications.
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 Zero-Knowledge AI Data Vault (ZK-AIDV) project will be delivered by a focused team of two skilled professionals, combining expertise in blockchain development, zero-knowledge proofs, AI integration, front-end development, and project management. Both team members are fully committed to delivering the project within the 3-month timeline.
Anokye James Yaw – Project Lead & Blockchain Developer
Paa Kojo Effah Annan – Front-End Developer & QA Lead