PharmaTrace
Securing the chain of care.
The problem PharmaTrace solves
The core problem this project solves is the lack of trust and transparency in the pharmaceutical supply chain, where counterfeit or tampered medicines can easily enter circulation due to fragmented, centralized record-keeping. In the current system, consumers and even distributors have no reliable way to independently verify whether a medicine is genuine. By anchoring verification data on the Ethereum blockchain, this project creates a tamper-proof source of truth for medicine authenticity. Each QR code links a physical product to immutable on-chain records, enabling instant, trustless verification by anyone without relying on manufacturers, vendors, or regulators as intermediaries. This directly addresses counterfeiting, data manipulation, and opacity—replacing blind trust with cryptographic proof and transparent smart contract logic.
Challenges we ran into
Here are the key challenges we ran into during the project, framed clearly for an Ethereum-track evaluation:
Scalability and Gas Costs
Writing data for thousands of medicine bottles directly on Ethereum quickly raised concerns around gas fees and transaction limits. We had to carefully decide what truly belongs on-chain versus what should stay off-chain (analytics, dashboards, metadata), while still preserving verifiability.
On-chain vs Off-chain Data Design
Designing the smart contract to store only cryptographic hashes instead of full product details was a major challenge. This required rethinking the data model so Ethereum is used as a source of truth, not a data warehouse, while still enabling meaningful verification.
QR Code Granularity
We debated between batch-level and bottle-level QR codes. Batch-level codes are cheaper and simpler, but reduce consumer-level trust. Bottle-level codes improve verification but significantly increase on-chain interactions and backend complexity.
Smart Contract Upgradability vs Immutability
Ethereum smart contracts are immutable by design, but real-world supply chains evolve. Balancing future-proofing (via upgrade patterns or versioning) without compromising trust and simplicity was a non-trivial design decision.
Wallet & Transaction UX
Expecting manufacturers or distributors to sign large numbers of transactions with wallets introduces friction. Designing a workflow that keeps Ethereum’s security guarantees while remaining usable for non-crypto-native users was a practical challenge.
Blockchain–Backend Synchronization
Keeping the backend database perfectly in sync with on-chain events (for analytics and dashboards) required reliable event indexing and error handling, especially when transactions are pending, reverted, or delayed.
Security & Trust Assumptions
Ensuring that only authorized manufacturers can mint or register medicine batches on-chain—and preventing misuse of the contract—required careful access control and threat modeling.
Tracks Applied (1)
Ethereum Track
ETHIndia