Trace-Chain
Scan ,Verify ,Trust.
The problem Trace-Chain solves
π¨ The Problem MedTrace Solves
The pharmaceutical supply chain today suffers from lack of transparency, weak verification mechanisms, and fragmented accountability, leading to serious risks for both businesses and patients.
β Key Problems
-
Counterfeit Medicines
Fake or substandard drugs enter the market due to poor tracking, putting lives at risk. -
No Easy Verification for Patients
Consumers have no reliable way to check if a medicine is genuine before using it. -
Lack of Traceability
It is difficult to track a drugβs journey from manufacturer to retailer, making recalls and audits inefficient. -
Unauthorized Actions in Supply Chain
Without strict role enforcement, unauthorized entities can manipulate or transfer ownership of batches. -
Centralized Data Risks
Traditional systems rely on centralized databases that can be altered, hacked, or mismanaged.
π‘ How MedTrace Solves This
MedTrace makes the pharmaceutical supply chain secure, transparent, and trustless using blockchain technology.
β What People Can Use It For
-
Manufacturers
Securely create and register drug batches on-chain, ensuring authenticity from the source. -
Distributors & Retailers
Track and verify the origin and ownership of medicines before accepting or selling them. -
Patients / Consumers
Scan QR codes to instantly verify whether a medicine is genuine and view its complete history. -
Regulators & Authorities
Audit the supply chain in real-time with immutable records, improving compliance and accountability.
π How It Makes Things Safer & Easier
- Instant Verification β No need to rely on trust; data is publicly verifiable on-chain
- Tamper-Proof Records β Once recorded, data cannot be altered
- Role-Based Security β Only authorized participants can perform critical actions
- End-to-End Visibility β Every step of the drug journey is traceable
- Reduced Fraud & Errors β Eliminates manual loopholes and fake entries
Challenges we ran into
β‘ Challenges I Ran Into
Building MedTrace involved solving real-world security and blockchain integration challenges. Two major hurdles stood out:
π 1. Implementing Secure 2-Step Email Verification
Problem:
Initially, user registration was too straightforward, which posed a risk of fake or unauthorized accounts entering the system.
Challenge:
Designing a secure and seamless 2-step email verification flow without compromising user experience.
Solution:
- Implemented an email-based OTP verification system
- Users must verify their email before interacting with role-based features
- Added backend validation to ensure only verified users can proceed
Outcome:
This significantly improved platform security and ensured only legitimate participants (manufacturers, distributors, etc.) could access the system.
π 2. Signing & Verifying QR Codes Using JWT
Problem:
QR codes initially stored plain data, making them vulnerable to tampering or duplication.
Challenge:
Ensuring that QR codes are secure, verifiable, and cannot be forged.
Solution:
- Used JWT (JSON Web Tokens) to sign QR data
- Each QR contains a signed token instead of raw information
- On scanning, the backend verifies the tokenβs authenticity before showing batch details
const token = jwt.sign({ batchId }, SECRET_KEY);
const decoded = jwt.verify(token, SECRET_KEY);
Outcome:
- Prevented QR code tampering
- Enabled trustless verification of medicine batches
- Strengthened the integrity of the entire system
Tracks Applied (1)
Healthcare
Technologies used
