Skip to content

About

??? Enterprise Blockchain Academic Certificate Verification & Cryptographic Fraud Detection Engine. Zero-PII on EVM, sub-second SHA-256 byte consensus, dynamic QR codes, and explainable risk analysis.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

19 Commits

Folders and files

Repository files navigation

CertiChain Shield Logo

CertiChain ๐Ÿ›ก๏ธ

Decentralized Academic Credential Verification & Anti-Fraud Cryptographic Engine

Zero-PII On-Chain โ€ข Sub-Second Verification โ€ข EVM Smart Contracts โ€ข SHA-256 Byte Invariance โ€ข Explainable Fraud Risk Engine

Live Demo Download APK CI Status Tests License

Solidity ZK Proofs AI Forensics Firebase Capacitor TypeScript React


โšก Quick Links


๐ŸŽจ Interactive Platform Showcase

CertiChain UI Verification Console


๐Ÿ’ฅ The Problem & The CertiChain Solution

Academic credential forgery is a multi-billion-dollar global crisis. From counterfeit diplomas to unauthorized registrar grade tampering, legacy verification methods are slow, vulnerable to central database compromises, and require weeks of manual phone/email registrar confirmations.

Feature / Metric Legacy Verification (Postal/Email) Centralized Web2 Portals ๐Ÿ›ก๏ธ CertiChain Web3 Protocol
Verification Speed 2 to 4 Weeks 3 to 5 Business Days < 1.0 Second (Sub-second)
Tamper Resistance Vulnerable to physical forgery Vulnerable to DB injection & rogue admins Cryptographically Impossible (Avalanche Effect)
Data Privacy (GDPR/FERPA) PII transmitted over unencrypted mail Full student PII stored on centralized DB 100% Zero PII On-Chain (Mathematical Proofs Only)
Single Point of Failure Physical archive records Centralized web servers & RDS Decentralized EVM State Root
Fraud Scoring None (Manual human judgment) Basic Boolean match Explainable Multi-Vector Risk Engine (0-100)

๐Ÿ—๏ธ 4-Stage Architecture Pipeline

CertiChain Platform Architecture Flow

flowchart LR
    A["๐Ÿ›๏ธ University Registrar\n(Uploads Official PDF)"] --> B["๐Ÿ”’ SHA-256 Byte Engine\n(Avalanche Invariance)"]
    B --> C["โ›“๏ธ EVM Smart Contract\n(CertificateRegistry.sol)"]
    C --> D["๐Ÿ“ฑ Dynamic QR Code Engine\n(Embedded in Credential)"]
    D --> E["๐Ÿ›ก๏ธ Employer / Verifier Scan\n(Sub-Second Consensus)"]
    E --> F{"Outcome Evaluation"}
    F -->|Raw Hash Match & Active| G["โœ… VERIFIED (Risk: 0/100)"]
    F -->|1-Byte Alteration Detected| H["โš ๏ธ TAMPERED (Risk: 96/100)"]
    F -->|Revoked by Institution| I["โ›” REVOKED (Risk: 100/100)"]
Loading

๐ŸŒŸ Core Protocol Innovations & Unique Groundbreaking Features

1. ๐Ÿ”ฎ Zero-Knowledge (ZK-SNARK) Selective Disclosure & Grade Privacy Engine

(Unique Feature โ€” Not present in existing credential verifiers)
Students can cryptographically prove achievementsโ€”such as GPA >= 3.5 [Dean's List], Degree Conferred in Good Standing, or ABET STEM Accreditedโ€”to prospective employers without revealing their raw grades, class rank, or full transcript.

  • Under the Hood: Generates Groth16 zk-SNARK cryptographic witness proofs (ฯ€_a, ฯ€_b, ฯ€_c) verifiable on-chain in O(1) time and constant gas, preserving absolute FERPA & GDPR student privacy.

2. ๐Ÿ”ฌ Real-Time AI Forensic Document Tamper Heatmap Scanner

(Unique Feature โ€” Automated Multi-Layer Raster Diagnostics)
Before touching the blockchain, uploaded PDF diplomas are analyzed through a multi-pass forensic computer vision canvas:

  • Error Level Analysis (ELA): Recompresses images to uncover compression artifact variances in modified grade numbers.
  • Micro-Typography Kerning Variance: Detects font glyph misalignments from post-render text injection tools.
  • Pixel Discontinuity Overlays: Visualized live via an interactive forensic raster canvas with real-time anomaly hotspots.

3. ๐Ÿ” Real Firebase Authentication & Immutable Firestore Verification Ledger

  • Strict Real Identity: New student and university accounts undergo real authentication using Firebase Auth (Email/Password & Google SSO OAuth) with encrypted user profiles stored in Cloud Firestore.
  • Fast Demo Access: 1-click Demo credentials (admin@certichain.io, issuer@mit.edu, anjan@student.mit.edu) are available strictly on the Login console for rapid evaluation.
  • Persistent Verification Ledger: Every verification event writes to an indexed Firestore audit collection, allowing verifiers to search past audits and generate printable, tamper-evident Official Verification Certificates.

4. ๐Ÿ”’ Byte-Level SHA-256 Avalanche Protection

CertiChain reads the raw binary byte array of issued certificate PDFs rather than rendered text. Modifying even a single pixel, punctuation mark, or grade digit produces an entirely unrecognizable 64-character hexadecimal digest, instantly triggering the fraud engine.

5. ๐Ÿ›ก๏ธ Absolute Zero-PII On-Chain (GDPR & FERPA Compliant)

Public blockchains must never store sensitive student records. CertiChain writes only:

  • bytes32 certKey = keccak256(abi.encodePacked(institutionCode, certificateId))
  • bytes32 documentHash = sha256(raw_pdf_bytes)
  • address issuerWallet = Authorized registrar address
  • uint256 blockTimestamp = Block timestamp

Student names, degrees, and academic transcripts remain strictly in private encrypted off-chain storage.

6. ๐Ÿ“Š Explainable Fraud Risk Assessment Engine

Rather than returning a vague error, CertiChain evaluates incoming documents against a deterministic, explainable risk scoring matrix:

  • 0 - 15 (MINIMAL): Perfect byte hash match, active on-chain status, authorized registrar signature.
  • 16 - 45 (LOW): Verified record, issued over 5 years ago, confirmed archived registrar.
  • 46 - 79 (ELEVATED): Timestamp discrepancies, unconfirmed block inclusion.
  • 80 - 100 (CRITICAL / TAMPERED): Document hash divergence, revoked status, or unauthorized issuer address.

๐Ÿ“ฑ Mobile-First Architecture & Android APK

CertiChain is engineered with a mobile-first philosophy:

  • Standalone PWA & Native Capacitor Shell: Runs in edge mobile browsers and as a native Android APK (io.certichain.app).
  • Tactile Bottom Navigation: Glassmorphic floating bar with 48x48px touch targets for instantaneous one-thumb navigation (Home, Verify, History, Dashboard).
  • Dark Obsidian Cyberpunk Styling: Low power consumption on OLED displays with high-contrast WCAG AA typography.
  • Offline Proof Caching: Local proof verification state preserved across unstable mobile networks.

Download the latest Android APK package directly from the GitHub Releases page.


๐ŸŽฏ 1-Minute Live Demo (Try It Now)

  1. Open https://certichain-platform.vercel.app.
  2. In the Live Verification Console, click the "Fill Genuine Demo" pill or paste:
    CERT-2026-000123
    
  3. Click "Verify on Chain โšก".
  4. Experience instant sub-second verification, celebration confetti, and full cryptographic audit proof (SHA-256 match, EVM transaction hash, and zero fraud score).

๐Ÿ”‘ Demo Stakeholder Accounts (Fast-Fill Available)

Role Email Password Scope
Super Admin admin@certichain.io AdminSecret2026! Accreditation, institution onboarding, chain metrics
MIT Issuer issuer@mit.edu Password123! Issues & revokes certificates for MIT
Stanford Issuer issuer@stanford.edu Password123! Issues & revokes certificates for Stanford
Student anjan@student.mit.edu Password123! Credential wallet & authorized PDF download
Public Verifier No account required N/A Public verification via /verify

๐Ÿ’ป Local Development Setup

Prerequisites

  • Node.js >= 20.0.0
  • npm >= 10.0.0
  • Git

Quickstart

# 1. Clone repository
git clone https://github.com/codexanjan/certichain.git
cd certichain

# 2. Install workspace dependencies
npm install

# 3. Start local Hardhat EVM blockchain (Terminal 1)
npm run node:chain

# 4. Deploy smart contract to local chain (Terminal 2)
npm run deploy:contract

# 5. Initialize database & seed demo credentials
npm run db:migrate
npm run db:seed

# 6. Start full stack development server (Terminal 3)
npm run dev

Platform URLs:

  • Frontend App: http://localhost:5173
  • Backend API: http://localhost:5000/api/v1
  • Socket.IO Hub: http://localhost:5000

๐Ÿงช Comprehensive Automated Test Suites

# Run all tests across smart contracts and backend
npm test
  • Smart Contract Test Suite (blockchain/test/CertificateRegistry.test.ts):
    • 17/17 tests passing (Deployment, role authorization, registration, duplicate collision rejection, verification helper, revocation, event emission).
  • Backend API & Cryptography Test Suite (backend/tests/):
    • 20/20 tests passing (SHA-256 byte consistency, avalanche effect validation, fraud risk scoring, JWT sessions, tamper detection, RBAC 403 enforcement).
  • Total Coverage: 37 / 37 passing automated tests (100% success rate).

๐Ÿค Contributing

Contributions are warmly welcomed! Please check out CONTRIBUTING.md to get started.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feat/AmazingFeature)
  3. Commit your Changes (git commit -m 'feat: Add some AmazingFeature')
  4. Push to the Branch (git push origin feat/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“„ License

Distributed under the MIT License. See LICENSE for more information.


๐Ÿ‘ค Author & Maintainer

Anjan Shetty


๐Ÿท๏ธ Keywords & Hashtags (SEO)

#blockchain #web3 #ethereum #solidity #hardhat #smartcontracts #react #typescript #tailwindcss #vite #cryptography #sha256 #frauddetection #academiccredentials #edtech #zeropii #gdpr #ferpa #verification #opensource

About

??? Enterprise Blockchain Academic Certificate Verification & Cryptographic Fraud Detection Engine. Zero-PII on EVM, sub-second SHA-256 byte consensus, dynamic QR codes, and explainable risk analysis.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages