Building medX was all about bringing together the right technologies and tools to create a smooth, decentralized healthcare experience. Here's a straightforward look at how we did it:
Technologies and Tools Used
-
Backend: Node.js
- What it does: Handles all the server-side logic, APIs, and interactions with the blockchain.
- How we used it: We utilized Node.js to manage the backend, ensuring efficient handling of requests, data processing, and secure communication with the blockchain.
-
Frontend: Next.js
- What it does: Powers the user interface, allowing users to interact with medX in a smooth and responsive way.
- How we used it: Next.js was chosen for its server-side rendering capabilities, making the frontend fast, scalable, and SEO-friendly.
-
Smart Accounts (Alchemy)
- What it does: Patients and healthcare providers create and manage their profiles securely, without needing centralized systems.
- How we used it: We used Alchemy’s tools to make the process of setting up and managing accounts easy and secure.
-
CCIP MultiHop Router
- What it does: Allows patients to pay on one blockchain, and doctors to receive the payment on another.
- How we used it: We created custom code that routes payments through the CCIP MultiHop router, making sure transactions work smoothly, even if they're happening on different blockchains.
-
Ethereum Account Service (EAS)
- What it does: Keeps medical records and prescriptions safe on the blockchain.
- How we used it: We utilized EAS's private data schema to generate relevant zkProofs, ensuring that patient records maintain privacy while securely storing medical data on-chain.
-
SendUserOps and Gas Sponsorship (Alchemy)
- What it does: Simplifies transactions and covers gas fees (the cost of transactions on the blockchain).
- How we used it: We used this to make sure users don’t have to worry about transaction costs, making the platform more user-friendly.
-
World ID Verification
- What it does: Verifies the identity of healthcare providers.
- How we used it: When doctors and healthcare providers join the platform, we make sure they are who they say they are using World ID verification.
Partner Technologies
-
Alchemy
- Why it’s important: Alchemy provided the tools that made account management and transaction handling easier, allowing us to focus on building the core features of medX.
-
CCIP (Cross-Chain Interoperability Protocol)
- Why it’s important: This allowed us to create a system where payments can happen across different blockchains, making it easier for users to transact in the cryptocurrency they prefer.
-
Blockscout
- Why it’s important: We used Blockscout to verify payments, ensuring that all transactions on the platform are transparent and secure.
-
Contracts on Base, Optimism, and Celo
- Why it’s important: By deploying contracts on these blockchains, medX can operate on multiple networks, ensuring scalability, efficiency, and security.
Hacky Solutions and Notable Mentions
-
Custom Cross-Chain Logic
- We created custom logic to handle payments that move across different blockchains, making sure transactions don’t fail or get delayed.
-
Creating the CCIP MultiHop Router for Chainlink
- We were directly involved in developing the CCIP MultiHop router, a key feature that enables seamless cross-chain payments, ensuring that users can transact on their preferred blockchains without issues.
-
Gas Optimization
- We worked hard to minimize transaction costs while keeping the platform easy to use, making sure users don’t get stuck with high fees.
-
World ID Integration
- Verifying the identities of healthcare providers was crucial. We integrated World ID to make sure that only verified professionals are part of medX, building trust within the platform.
-
zkProof for Privacy in Medical Records
- We used EAS's private data schema to generate zkProofs, ensuring that patient records maintain privacy while securely storing medical data on-chain.