Skip to content

MohammadUsman00/Verify-Chain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

VerifyChain πŸ”

Product Authenticity Infrastructure for the Physical World

Version Status Buildify Stack

"Every other team built a tool for today's businesses. We built the infrastructure tomorrow's law requires."


πŸ“Έ Product Showcase

The Vision The Process
Landing How It Works
Landing β€” Every Product. Provably Real. Scan Any Product. Know It's Real.
The Problem The Verification
The Problem Buyer Verification
Counterfeits are destroying trust globally. Verified Authentic Certificate.
The Dashboard The Detection
Seller Dashboard Counterfeit Detection
Generate Encrypted QR Batches. Not Registered / Fraud Result.
Future Vision Architecture Overview
Vision Platform Overview
The Future of Commerce is Provably Authentic. Scalable Infrastructure for Global Supply Chains.

πŸ›‘ The Problem: A $4.5 Trillion Crisis

Fake products are not a minor inconvenience β€” they are an existential threat to businesses that depend on quality and trust.

  • Global Economic Impact: $4.5 trillion lost to counterfeit goods annually.
  • Regional Devastation: 70% of "Kashmiri saffron" sold online is fake. Real farmers lose income while fraudsters profit.
  • Artisanal Theft: A carpet weaver in Budgam has no way to prove his handwoven carpet is authentic, while mass-produced fakes make the same claim.
  • Lethal Consequences: Pharmaceutical counterfeits kill over 1 million people annually due to lack of verification at the point of sale.

Why Businesses Must Adapt

A business selling premium products β€” saffron, Pashmina, medicine β€” with no way to prove authenticity is one viral scandal away from collapse. The businesses that survive the next decade will be the ones that can prove what they sell is real.


πŸ‡ͺπŸ‡Ί The Regulatory Tailwind: EU Digital Product Passport (DPP)

The EU DPP regulation mandates that every physical product sold in Europe must carry a verifiable digital identity by 2026.

VerifyChain is compliance infrastructure. We don't help businesses adapt to the future β€” we are the infrastructure they are legally required to adopt.


πŸ’‘ What is VerifyChain?

VerifyChain gives every physical product a cryptographically signed digital identity β€” a unique, encrypted QR code that allows anyone to instantly verify:

  • βœ… Authenticity: Is this product real or a replica?
  • βœ… Provenance: Where did it originate?
  • βœ… Chain of Custody: Who handled it, and when?
  • βœ… Integrity: Has this QR been tampered with or duplicated?

No app required. Works on any phone. Verification in under 2 seconds.


πŸ› οΈ Core Features

1. Encrypted QR Identity System

Cryptographically signed QR codes using HMAC-SHA256. The signature is mathematically bound to the product data.

  • Unique per unit or batch.
  • Impossible to duplicate without the private key.
  • Scannable with any smartphone camera.

2. AI-Powered Fraud Detection

Real-time pattern analysis on every scan event. The system flags:

  • Geographic Anomaly: Same QR scanned in two distant locations simultaneously.
  • Velocity Anomaly: Abnormal scan counts (e.g., 100 scans/min).
  • Retail Inconsistency: Patterns inconsistent with legitimate consumer behavior.

3. Full Supply Chain Traceability

End-to-end recording: Farm β†’ Processor β†’ Distributor β†’ Seller β†’ Buyer. Complete chain of custody with timestamps and verified locations.

4. Seller Dashboard & Analytics

  • Register batches and generate printable PDF QR tag sheets.
  • Real-time global scan map.
  • Fraud alerts and batch-level performance analytics.

5. EU DPP Export

Generate regulatory-compliant data exports for EU systems β€” essential for any exporter targeting the European market.


βš™οΈ Technical Implementation

QR Generation Flow

  1. Registration: Seller registers a batch in the dashboard.
  2. Secret Generation: System creates a batch ID and HMAC secret.
  3. Payload Construction: Payload contains bid, uid, pid, and ts.
  4. Signing: Payload is signed using HMAC-SHA256.
  5. Encoding: Signed payload is encoded into a secure token.
  6. QR Rendering: Token is embedded in a URL and rendered as a QR code.

Verification Flow

  1. Scan: User scans the QR code.
  2. Routing: URL routes to the verification engine.
  3. Validation: Supabase Edge Function validates the signature server-side.
  4. Check: Product, seller, and scan data are cross-referenced.
  5. Result: User receives a cryptographic proof of authenticity or a fraud warning.

πŸ—οΈ Architecture & Stack

Stack

  • Frontend: HTML5, Vanilla CSS, Modular ES6+ JavaScript
  • Backend: Node.js + Express
  • Database/Auth: Supabase (PostgreSQL, Realtime)
  • Serverless Logic: Supabase Edge Functions (Deno)
  • AI Engine: Gemini API (Fraud Enrichment) + Rule-based Fallback
  • Deployment: Render Blueprint

Architecture Diagram

[ Physical Product ] -> [ Encrypted QR ] -> [ Smartphone Scan ]
                                                  |
                                                  v
[ Supabase Edge Function ] <-> [ PostgreSQL DB ] <-> [ AI Fraud Engine ]
           |                          |                      |
           v                          v                      v
[ Cryptographic Proof ]    [ Chain of Custody ]    [ Risk Assessment ]

πŸš€ Getting Started

Prerequisites

  • Node.js (v18+)
  • Supabase Account
  • Gemini API Key (Optional, for AI fraud features)

Local Setup

  1. Clone the repository
  2. Install dependencies:
    npm install
  3. Configure Environment: Copy .env.example to .env and fill in your Supabase and API credentials.
  4. Launch Development Server:
    npm start
  5. Access the App: Open http://127.0.0.1:4173

Database Setup

  1. Execute the SQL schema found in supabase/schema.sql within your Supabase SQL Editor.
  2. Deploy the edge function:
    supabase functions deploy verify-qr --no-verify-jwt

πŸ”­ The Vision

VerifyChain is not just anti-counterfeit tooling. It is authenticity and compliance infrastructure for future-proof businesses.

"Future-proof businesses won't just sell products. They'll prove them."


Created for Buildify Kashmir 2026 β€” NIT Srinagar

About

Every product. Provably real. VerifyChain gives physical products a cryptographically signed digital identity scan once, verify instantly. Anti-counterfeit infrastructure for the EU DPP era.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors