MedVault

Inspiration

Medical records are among the most sensitive forms of data, yet centralized storage systems remain vulnerable to breaches and misuse.
I wanted to build a solution where patients own their data, control access, and guarantee privacy by design using blockchain technology.

What it does

MedVault is a decentralized application (DApp) that enables patients to securely store and share encrypted medical records.

  • Patients upload their records, which are encrypted and stored on Midnight.
  • Doctors connect with patients through smart contracts acting as trust agreements.
  • Access is entirely patient-controlled, ensuring privacy and transparency.

How I built it

  • Frontend: React 18, TypeScript, Tailwind CSS, Vite, React Router, Hot Toast
  • Backend: Node.js, Express.js, TypeScript, SQLite, JWT, bcrypt
  • Blockchain & Privacy: Midnight SDK, Lace Wallet, Smart Contracts, End-to-End Encryption
  • Dev Tools: npm, ESLint, Prettier, Windsurf IDE with AI-powered development tools

Challenges I ran into

  • Integrating Midnight’s privacy-preserving features into a traditional web stack
  • Managing wallet addresses and transaction signing properly
  • Designing a clean workflow between patient signup, record storage, and doctor-patient smart contracts

Accomplishments that I'm proud of

  • Fully functional record upload with encryption and decentralized storage
  • Smart contract workflow enabling secure doctor-patient connections
  • Seamless use of a real Lace wallet for patient signup
  • Delivering a working prototype in a short time frame with a brand new tech stack

What I learned

  • Gained a deeper understanding of blockchain technology and its potential applications.
  • Explored Midnight’s capabilities and saw how it can simplify privacy-preserving workflows, even without leveraging all of its features yet.
  • Learned how to integrate decentralized technology into a modern web development stack.
  • Realized how powerful and transformative decentralization can be for real-world use cases.

What's next for MedVault

  • Enable individual Lace wallets for every doctor and patient.
  • Develop intelligent doctor matching based on patient history and doctor expertise.
  • Enhance privacy with ZK-SNARKs for medical data verification
  • Offer selective disclosure, giving patients granular control over shared data.
  • Apply data anonymization for safe research and analytics.
  • Launch mobile apps for iOS and Android.
  • Add telemedicine capabilities, integrating secure video consultations.

Built With

Share this project:

Updates

Submission history