Last updated 6 months ago
privacy utility tradeoff in dementia patient, without fearing leak of their data to public
A private memory game that tracks cognitive performance and uses Midnight + ZK proofs to share only approved summary trends with caregivers.
Please provide your proposal title
Midnight dapp BrainFit Game
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?
privacy utility tradeoff in dementia patient, without fearing leak of their data to public
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
BrainFit deliverables will be fully open-source and released under the MIT License.
Please choose the most relevant theme and tag related to the outcomes of your proposal
Healthcare
What is useful about your DApp within one of the specified industry or enterprise verticals?
Midnight BrainFit provides a privacy-preserving cognitive therapy tool for dementia patients and their caregivers. Today, most dementia apps store patient data on centralized servers, creating fear of:
Midnight BrainFit solves this by bringing healthcare + privacy together.
This makes it a safe digital therapy tool for vulnerable patients.
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.
Compact Contracts
Contract: BrainFitCompact
Key functions :
Demo ui flow
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)?
Developers benefit by learning:
Developer Personas
Repo Structure
/contracts
/frontend
Next.js game UI
Lace wallet integration
/tests
contract unit tests
E2E tests
/README.md
Project overview
Architecture
How to run locally
How ZK privacy is implemented
How to extend (custom games, more analytics)
Docs & Tutorials
Impact Measurement
Please describe your proposed solution and how it addresses the problem
Dementia apps leak patient information or store cognitive data in insecure places. This breaks trust for patients and caregivers.
Midnight BrainFit uses privacy-by-design principles:
Please define the positive impact your project will have on Midnight ecosystem
This project will help push Midnight as the go-to chain for sensitive data applications.
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?
I'm a ful-stack developer with hands on experience in web3, blockchain and open source tools. I've been contributing to open source projects. Recently I've been building projects on cardano ecosystem, which made me get intrigued to midnight. I can deliver all core components ;- smart contracts, the game interface, API layer, and wallet integration - using TypeScript, React, and contract engineering best practices.
https://www.linkedin.com/in/daniel-mwihoti-3aaa652b9/
Please provide a cost breakdown of the proposed work and resources
BrainFit smart contract development & ZK proofs - $USDM 3,000 - Full Minokawa (Compact) contract suite for Midnight BrainFit, encrypted game state, ZK trend proofs, permission system, 100% unit + integration tests, testnet deployment, technical documentation.
Contract API, CLI Tool & Frontend Design – $USDM 3,000 - I will develop the TypeScript contract API, a CLI tool for interacting with the contract and submitting gameplay results from the terminal, and the initial frontend design, landing page, and UX flows.
Web Frontend, Lace Wallet Integration & Deployment – $USDM 4,000 - I will deliver a polished, browser-based BrainFit interface with full Lace (Midnight) wallet integration, UI wiring to the contract API, and the final product deployment.
How does the cost of the project represent value for the Midnight ecosystem?
The main cost of this project is development time: turning the BrainFit concept into production-grade Midnight ZK circuits, writing clean Minokawa contracts, integrating Lace wallet, and producing crystal-clear tutorials.Hosting costs are minimal
What the ecosystem gets from my work goes beyond a single app. By the end of the project, Midnight gains:
In short, this budget isn’t just about building BrainFit :- it’s about creating a reusable template and teaching tool that lowers the barrier for future Midnight developers, accelerates the ecosystem, and helps others understand what “private but provable” actually looks like in a real-world health application.
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
Daniel Mwihoti Lead Developer
Daniel is a full-stack software developer with experience building blockchain applications and contributing to open-source projects. He will be responsible for leading the development of all core components, including smart contracts, the game interface, backend services, and wallet integrations.
Peter Maina - UI/x developer
Peter is an experienced frontend developer, he will be responsible in designing game skeleton and design also making sure the experience feels simple and joyful for elderly users and caregivers.