PHARMACHAIN

INSPIRATION

THE GLOBAL PROBLEM An estimated 4% to 5% of medicines globally are counterfeit, while as many as 50% to 65% of fake drugs remain completely undetected in vulnerable pharmaceutical supply chains.

SYSTEMIC FLAWS Traditional pharmaceutical tracking relies heavily on centralized systems and manual paper registers. This creates critical visibility gaps, prevents public verification, and leaves supply-chain data vulnerable to tampering and insider manipulation.

OUR GOAL We built PharmaChain, an end-to-end, tamper-proof pharmaceutical tracking system that enables everyone, from regulatory authorities to everyday patients, to verify drug authenticity instantly.

WHAT IT DOES

PharmaChain is an enterprise-grade blockchain platform built on Hyperledger Fabric that secures every stage of a medicine’s journey, from manufacturing to retail dispensing.

3-LEVEL QR SERIALIZATION Maps medicine provenance across Master Box → Carton → Strip levels, maintaining a complete audit trail even when bulk packaging is opened and distributed.

IOT COLD-CHAIN MONITORING Integrates transit temperature sensors that automatically detect and flag thermally compromised batches, preventing spoiled medicines from reaching patients.

STATE-LOCK ANTI-COUNTERFEITING Automatically deactivates a medicine’s QR code after retail sale, preventing counterfeiters from reusing or cloning authentic packaging identities.

CDSCO REGULATORY DASHBOARD Provides field inspectors with a dedicated dashboard and a one-click Global Recall feature to instantly freeze compromised batches across the network.

ROLE-BASED IDENTITY VERIFICATION Enforces secure participation through digital signatures, government database cross-referencing, OTP-based transfer confirmations, and role-specific dashboards.

HOW WE BUILT IT

BLOCKCHAIN & CRYPTOGRAPHY Built on Hyperledger Fabric, using Chaincode for automated rule enforcement, Fabric CA for identity management, SHA-256 for document fingerprinting, and ECDSA for secure digital signatures.

STORAGE & BACKEND Powered by Node.js and the Fabric SDK Gateway, with IPFS for decentralized certificate storage, MongoDB for off-chain event logging, and Redis for caching.

FRONTEND & VISUALIZATION Developed using React.js and Chart.js to provide visual analytics dashboards for manufacturers, distributors, pharmacists, and inspectors. Dynamic QR serialization was implemented using the qrcode npm package.

HARDWARE INTEGRATION Designed to integrate with IoT transit temperature sensors and NFC-based tamper-detection tags attached to physical medicine packaging.

CHALLENGES WE FACED

HIERARCHICAL DATA ARCHITECTURE Structuring the 3-level tracking system so that opening a Master Box or Carton at wholesaler and pharmacy nodes did not break the immutable parent-child relationship recorded on the blockchain.

ACCESS CONTROL & KEY MANAGEMENT Implementing granular Role-Based Access Control while using temporary, self-destructing access keys to reduce the risks associated with unauthorized key theft and network tampering.

HYBRID DATA SYNCHRONIZATION Balancing fast off-chain operations through MongoDB and Redis with immutable on-chain transactions through Hyperledger Fabric, while keeping QR verification nearly instant for retail users.

ACCOMPLISHMENTS WE ARE PROUD OF

END-TO-END LIFECYCLE PROTOTYPE Fully implemented a working prototype covering manufacturer packaging, logistics transit, pharmacist receiving, and patient QR verification.

STATE-LOCK MECHANISM Successfully developed a mechanism that invalidates a medicine’s QR code after sale, helping prevent the reuse of authentic packaging for counterfeit distribution.

AUTOMATED REGULATORY RECALL Designed a CDSCO inspector dashboard capable of triggering nationwide batch recalls through blockchain-based smart contracts.

WHAT WE LEARNED

ENTERPRISE BLOCKCHAIN DEVELOPMENT Gained practical experience in configuring Hyperledger Fabric networks, developing permissioned Chaincode, and managing digital identities through Fabric CA.

PHYSICAL-TO-DIGITAL INTEGRATION Learned how to bridge physical IoT telemetry, including temperature monitoring and tamper detection, with decentralized blockchain architecture.

PHARMACEUTICAL SUPPLY-CHAIN SYSTEMS Developed a deeper understanding of pharmaceutical regulation, supply-chain serialization, and the practical requirements of drug traceability.

WHAT’S NEXT FOR PHARMACHAIN

SMART CONTRACT ESCROW PAYMENTS Automate financial settlements through smart contracts, releasing payments only when IoT-verified delivery conditions are satisfied and no cold-chain violations are detected.

AI-BASED PHARMACOVIGILANCE Implement AI models that analyze adverse drug reaction reports, identify potentially dangerous medicine lots, and flag high-risk manufacturers.

GOVERNMENT INTEGRATION Scale PharmaChain through a public-private SaaS and government licensing model, bringing blockchain-powered pharmaceutical traceability closer to nationwide regulatory adoption.

From the factory floor to the patient’s hand, every movement leaves a footprint. PharmaChain treats the medicine supply chain not merely as a sequence of transactions, but as a chain of trust.

Built With

Share this project:

Updates

Submission history