A decentralized healthcare system leveraging Web3 technology to enhance access, secure medical data, and foster trust. Features include blockchain-based medical records, transparent credential verification, and token-gated video consultations.
Prize Pool
Prize Pool
Project Overview: MedLIT is a cutting-edge decentralized healthcare system designed to address critical issues in the traditional healthcare sector, such as accessibility, security, and trust. Leveraging Web3 technology, MedLIT transforms the patient-doctor relationship by ensuring secure, transparent, and efficient healthcare services. This project integrates various blockchain and decentralized technologies to create a seamless and patient-centric healthcare ecosystem.
Key Features:
Accessibility and Convenience:
Decentralized Platform: A user-friendly platform allowing patients to easily connect with healthcare professionals for consultations. 24/7 Access: Provides round-the-clock access to medical services, reducing waiting times and increasing the convenience of healthcare delivery.
Decentralized Storage of Medical Records:
Blockchain-based Storage: Medical records are stored on a blockchain, ensuring tamper-proof record-keeping. Security and Accessibility: Patient data is secure and easily accessible to authorized users, reducing the risk of unauthorized access or manipulation.
Security and Integrity of Health Data:
Encryption Protocols: Robust encryption and strict access controls protect sensitive patient information. System Audits: Regular audits ensure the highest level of data security and integrity.
Trust and Verification of Medical Professionals:
Credential Verification: Blockchain technology is used to verify the credentials of healthcare providers, enhancing transparency and trust. Reputation System: A reputation system for healthcare professionals is implemented to further ensure accountability.
Token-Gated Decentralized Video Communication:
Secure Consultations: Token-gated video communication using Huddle enables secure and private virtual consultations between patients and doctors. Authentication Integration: Utilizes Rainbow Kit for seamless Web3 wallet authentication (e.g., MetaMask) and ParticleAuth for traditional methods (e.g., Google account).
Motivation for Decentralization:
Empowering Patients: Patients gain ownership and control over their medical records, treatment histories, and diagnostic reports stored securely on a blockchain. Immutability of Records: Blockchain ensures that once information is recorded, it cannot be altered or deleted, maintaining the integrity and reliability of medical records. Transparency and Trust: Decentralized systems introduce transparency through distributed ledgers, fostering trust among all stakeholders in the healthcare ecosystem.
Transformative Landscape:
Patient-Centric Approach: MedLIT places patients at the center, offering a secure and personalized healthcare management system. Interoperability: Facilitates seamless data exchange across different healthcare entities, enhancing coordinated and effective care.
Technical Implementation:
Smart Contracts: Written in Solidity and deployed on the Filecoin Calibration testnet and Sepolia testnet. Frontend: Developed using Next.js and TypeScript, interacting with smart contracts through ethers.js. Hosting: The Next.js dApp is hosted on Fleek’s decentralized execution environment, using the Fleek CLI for seamless deployment. Data Storage: Utilizes Lighthouse as an IPFS gateway for resource storage. Encryption: Uses Lit actions to encrypt/decrypt doctor and patient files, with auth sigs and session sigs generated via LitJsSDK. PKP and capacity credits are minted on the Manzano network using LitContracts.
Technological Stack:
Smart Contracts:
Solidity: We wrote our smart contracts in Solidity, deploying them on the Filecoin Calibration testnet and Sepolia testnet. These contracts handle key functions such as storing medical records, verifying credentials, and managing access controls.
Frontend Development:
Next.js: Our frontend is built using Next.js, a React framework that enables server-side rendering and static site generation. This ensures fast load times and a seamless user experience. TypeScript: We used TypeScript to add type safety to our JavaScript code, which helps catch errors early in the development process and improves code maintainability.
Blockchain Integration:
Ethers.js: We used Ethers.js to interact with our smart contracts on the frontend. This library allows us to easily connect to the Ethereum network, call contract methods, and handle transactions.
Decentralized Storage:
Lighthouse (IPFS Gateway): We used Lighthouse as an IPFS gateway for decentralized storage of medical records. IPFS ensures that data is stored securely and is accessible in a decentralized manner.
Hosting:
Fleek: Our Next.js dApp is hosted on Fleek’s decentralized execution environment. Fleek provides seamless deployment and hosting services for Web3 applications, ensuring high availability and reliability.
Authentication and Authorization:
RainbowKit: For Web3 wallet authentication, we integrated RainbowKit, which supports popular wallets like MetaMask. This integration allows users to securely access the platform using their crypto wallets without needing additional credentials. ParticleAuth: For users preferring traditional authentication methods, we incorporated ParticleAuth, enabling login via Google accounts or phone numbers. This ensures accessibility for users who may not be familiar with Web3 wallets.
Video Communication:
Huddle: We implemented token-gated video communication using Huddle. This ensures secure and private virtual consultations between patients and doctors, with access restricted to authorized participants.
Encryption:
Lit Protocol: We used Lit actions to encrypt and decrypt doctor and patient files. Auth sigs and session sigs were generated using LitJsSDK, ensuring that data is only accessible to authorized parties. PKP and Capacity Credits: Minted on the Manzano network using LitContracts, these elements help manage encrypted data and ensure secure communication.
Development Process:
Planning and Design:
We began with a detailed planning phase, outlining the core features and user flows of the decentralized healthcare system. Wireframes and mockups were created to visualize the user interface and experience.
Smart Contract Development:
We wrote and tested our smart contracts in Solidity, ensuring that they could handle all required functions, such as storing medical records, verifying credentials, and managing permissions. Extensive testing was conducted on testnets to ensure reliability and security.
Frontend Integration:
The Next.js frontend was developed in parallel, with components designed to interact seamlessly with the smart contracts via Ethers.js. TypeScript was used to ensure robust and error-free code.
Decentralized Storage:
Lighthouse was integrated to store medical records securely and accessibly in a decentralized manner.
Hosting:
We deployed our Next.js dApp on Fleek, ensuring a decentralized and reliable hosting environment.
Authentication Integration:
RainbowKit and ParticleAuth were integrated to provide both Web3 wallet and traditional authentication options, enhancing user convenience and accessibility.
Video Communication:
Huddle was implemented for secure video communication, ensuring that only authorized users could access video consultations.
Encryption & Decryption:
Using Lit Protocol, we ensured that all sensitive data is encrypted at source and decrypted for display, with access controlled through smart contracts and session signatures, enhancing the security and privacy of medical records and communications.