Created a decentralized Blood Bank smart contract on Ethereum, enabling secure patient registration and transparent blood transactions.
Raktdhaara is a decentralized application (DApp) developed on the Ethereum blockchain. It aims to create a secure and transparent blood bank system, facilitating efficient patient registration and tracking of blood transactions between donors and recipients.
- Patient Registration: Hospitals can register new patients on the blockchain, capturing their essential information such as name, age, blood group, contact details, home address, and Aadhar card number.
- Blood Transactions: The smart contract records blood transactions, including the timestamp, sender, and receiver addresses, enabling easy traceability of blood resources.
- Efficient Data Retrieval: Patient records are efficiently retrieved using a mapping that associates Aadhar card numbers with patient record indices, ensuring fast data access.
- Access Control: Access control mechanisms restrict critical functions to authorized hospitals (contract owner), ensuring data integrity and security.
- Solidity
- Ethereum Blockchain
- Remix IDE (for development and testing)
- Ganache (local development blockchain)
- Clone the repository:'(https://github.com/sakshikasera/Raktdhaara-main.git)'
- Change directory:
cd blood-bank
- Install dependencies: To install the Solidity compiler, you can use npm [Node Package Manager] (npm install -g solc)
- Deploy the smart contract to the Ethereum network using Remix IDE or any Ethereum-compatible wallet.
- Hospitals (contract owner) can use their Ethereum address to register new patients and record blood transactions.
- Patients can interact with the contract through a compatible wallet to access their information and transaction history.
Contributions to the Blood Bank Smart Contract project are welcome! If you would like to contribute, follow these steps:
- Fork the project.
- Create a new branch:
git checkout -b feature/new-feature
- Make your changes and commit them:
git commit -m "Add a new feature"
- Push to the branch:
git push origin feature/new-feature
- Submit a pull request with a detailed description of your changes.
This project is licensed under the MIT License - see the LICENSE file for details.
For any questions or further discussions, feel free to contact me at [[email protected]] or connect with me on LinkedIn.