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 Web Application: https://certichain-platform.vercel.app
- ๐ฑ Android APK Download: Releases / CertiChain-Mobile-v1.0.0.apk
- ๐ Global Edge Mirror: https://certichain-seven.vercel.app
- ๐ System Architecture: docs/ARCHITECTURE.md
- ๐ Security & Cryptography: docs/SECURITY.md
- ๐ Interactive Viva Guide: docs/VIVA.md
- ๐ Smart Contract Specs: docs/SMART-CONTRACT.md
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) |
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)"]
(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.
(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.
- 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.
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.
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 addressuint256 blockTimestamp= Block timestamp
Student names, degrees, and academic transcripts remain strictly in private encrypted off-chain storage.
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.
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.
- Open https://certichain-platform.vercel.app.
- In the Live Verification Console, click the "Fill Genuine Demo" pill or paste:
CERT-2026-000123 - Click "Verify on Chain โก".
- Experience instant sub-second verification, celebration confetti, and full cryptographic audit proof (SHA-256 match, EVM transaction hash, and zero fraud score).
| Role | 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 |
- Node.js >= 20.0.0
- npm >= 10.0.0
- Git
# 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 devPlatform URLs:
- Frontend App:
http://localhost:5173 - Backend API:
http://localhost:5000/api/v1 - Socket.IO Hub:
http://localhost:5000
# 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).
Contributions are warmly welcomed! Please check out CONTRIBUTING.md to get started.
- Fork the Project
- Create your Feature Branch (
git checkout -b feat/AmazingFeature) - Commit your Changes (
git commit -m 'feat: Add some AmazingFeature') - Push to the Branch (
git push origin feat/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Anjan Shetty
- GitHub: @codexanjan
- Live Project: certichain-platform.vercel.app
#blockchain #web3 #ethereum #solidity #hardhat #smartcontracts #react #typescript #tailwindcss #vite #cryptography #sha256 #frauddetection #academiccredentials #edtech #zeropii #gdpr #ferpa #verification #opensource