Skip to content
P

PharmaChain

PharmaChain : Verify once. Trust forever.

Created on 28th February 2026

•

P

PharmaChain

PharmaChain : Verify once. Trust forever.

The problem PharmaChain solves

Counterfeit medicines are a silent public-health crisis. Fake, expired, or improperly stored drugs enter the market every day, causing treatment failure, drug resistance, and even death. Existing systems are fragmented, opaque, and trust-based, leaving patients, pharmacies, and regulators vulnerable.
PharmaChain solves this by creating a single source of truth for every medicine

image

image from manufacturing to consumption.
The Core Problems Today

  1. Counterfeit Drugs Are Hard to Detect
    Fake medicines visually look identical to genuine ones
    QR codes can be copied or reused
    Consumers have no way to verify authenticity instantly
  2. Broken Supply Chain Transparency
    Manufacturers, distributors, and retailers use separate systems
    Records can be altered or deleted
    No end-to-end traceability
  3. Unsafe Storage & Cold-Chain Failures
    Vaccines and biologics require strict temperature control
    Temperature breaches are often unreported
    Patients unknowingly consume ineffective drugs
  4. No Consumer Trust or Incentive
    Verification is not consumer-friendly
    Reporting fakes gives no reward
    Trust depends entirely on the seller
  5. Manual & Reactive Enforcement
    Regulators act after damage is done
    Recalls are slow and poorly communicated
    Counterfeit hotspots are discovered too late

Challenges we ran into

Complex batch lifecycle on blockchain
Multiple states (transfer, inspection, split, recall) caused invalid or conflicting states.
Solution: Designed an enum-based state machine with strict role + state guards and on-chain lineage tracking.
Scratch code reuse & QR cloning risk
One-time codes could be replayed or scanned simultaneously.
Solution: Stored only hashed scratch codes on-chain; first scan activates ownership, second scan auto-flags counterfeit.
Real-time updates without heavy infra
WebSockets were overkill and unstable for hackathon setup.
Solution: Used Server-Sent Events (SSE) with auto-reconnect for lightweight, scalable live updates.
AI hallucinations in medical data
Gemini sometimes produced unsafe or overly confident medical advice.
Solution: Restricted AI to assistive insights only, cross-checked with local medicine DB, and kept all decisions deterministic.
Trust score manipulation risk
Simple scoring could be gamed with fake scans or delays.
Solution: Built a weighted, multi-signal trust score recalculated on every event, with inspector actions overriding scores.
Cold-chain data integrity
Temperature logs are easy to spoof and costly to store on-chain.
Solution: Stored logs off-chain, anchored hashes on-chain, and penalized missing or anomalous data.
Authentication reliability
OTP emails faced delays and resend abuse.
Solution: Implemented short-lived OTPs, rate limits, and session-based JWT after verification.
Local development instability
Running blockchain, backend, and frontend together caused desyncs.
Solution: Created a single deploy-and-seed script for a reproducible dev environment.

Tracks Applied (1)

Ethereum Track

PharmaChain fits squarely into the Ethereum track because it uses Ethereum not as a database, but as a trustless executi...Read More
ETHIndia

ETHIndia

Discussion

Builders also viewed

See more projects on Devfolio