V1 (MediChain) can be found at: MediChain Repository
Myriad is a decentralized platform designed to address critical challenges in healthcare data management and governance. It empowers patients with secure control over their medical records using blockchain and gives them the ability to participate in healthcare governance through Decentralized Autonomous Organizations (DAOs). Myriad leverages decentralized storage (IPFS) and secure encryption to protect patient data, while enabling stakeholders to vote on system improvements.
This repository houses the core smart contract logic developed using Foundry.
- Decentralized Data Management: Patients securely control access to their medical data, which is stored using IPFS with end-to-end encryption (4096-bit RSA).
- Governance with DAO: Patients, doctors, clinics, and other entities participate in a decentralized governance system to vote on proposals related to system improvements.
- Blockchain-based Voting: Weighted voting mechanisms allow for fair decision-making, ensuring transparency and accountability.
- Secure Data Sharing: Patients can share medical data with healthcare providers through encrypted QR codes, ensuring data privacy and security.
- Smart Contracts: Solidity
- Development Framework: Foundry
- Blockchain: Ethereum (Sepolia Testnet)
- Storage: IPFS for decentralized file storage
- Wallet Integration: Metamask
-
Install Foundry by running:
curl -L https://foundry.paradigm.xyz | bash foundryup
To build the smart contracts, run:
forge build
To execute the test suite:
forge test
To deploy the smart contracts, use the following command with your RPC URL and private key:
forge script script/Contract.s.sol:ContractScript --rpc-url <your_rpc_url> --private-key <your_private_key>
You can use Anvil to spin up a local Ethereum node:
anvil
• Data Management with IPFS: Patient records are stored in encrypted form on IPFS, with hashes recorded on the blockchain.
• DAO Governance: Myriad utilizes a Decentralized Autonomous Organization (DAO) for healthcare governance, where participants vote on system policies and improvements using weighted voting mechanisms.
• Secure Sharing: Medical data can be securely shared using QR codes, ensuring only authorized access.
For gas analysis and optimization:
forge snapshot
• Formatting: Run forge fmt to format your Solidity code.
• Help: View help options:
forge --help
anvil --help
cast --help
We welcome contributions from the open-source community! Please follow these steps:
- Fork the repository.
- Create a new branch (git checkout -b feature/new-feature).
- Commit your changes (git commit -m 'Add new feature').
- Push to the branch (git push origin feature/new-feature).
- Open a pull request.
This project is distributed under the GPL-3.0 License. See the LICENSE file for details.
- Call Me: Aditya Singh
- Twitter: @saditya9211
- LinkedIn: linkedin.com/in/saditya9211
- ETH Address:
0x1EDAFE36Fb88eE4683A9A9525c200bE5Ab8A94F3