Blockchain Certificate Verification
Issue, verify and revoke academic certificates with tamper-evident proofs anchored on Polygon — and a public QR page that verifies without a login.
Developer, team project · 3 people · 2025 – 2026 · Team-developed final year project


Overview
A team-built, full-stack platform where institutions issue certificates, holders share them, and anyone can confirm they are genuine. Records live in Firebase, metadata on IPFS, and hashes or Merkle batch roots on the Polygon Amoy testnet.
- Role
- Developer, team project
- Team
- 3 people
- Timeline
- 2025 – 2026
- Status
- Live demo
Stack
- React 19
- Vite
- Firebase Functions
- Firestore
- Firebase Auth
- Solidity 0.8.24
- Hardhat
- ethers.js
- Polygon Amoy
- Pinata / IPFS
- pdf-lib
- SendGrid
Challenge
Verifying a certificate usually means emails, phone calls or database lookups — and a PDF on its own proves nothing about who issued it.
Slow checks
Employers wait on people to confirm a credential.
Easy to forge
Files can be edited without leaving a trace.
Bulk and revocation
Institutions issue in batches and must be able to revoke.
What it does
- 01Role-based access for admins, teachers, students and public verifiers
- 02Single and bulk issuance, with bulk batches anchored as one Merkle root
- 03Canonical hashing to detect tampering across Firestore, IPFS and chain
- 04Public verification at /verify/:id with QR codes
- 05PDF certificates and email delivery
- 06Revocation of single certificates and whole batches
Architecture
Clients
React + Vite appIssuer, student, admin
Public verify page/verify/:id · no login
Backend
Firebase FunctionsWrites · chain tx · IPFS · email
Firestore + AuthRecords and roles
Trust layer
CertificateRegistry.solPolygon Amoy
Pinata / IPFSCertificate metadata
From the project's documented architecture. Privileged writes and blockchain transactions run server-side in Firebase Functions.
Screens
Engineering decisions
Gas cost of bulk issuance
One transaction per certificate is slow and expensive.
Decision
Anchor a single Merkle root per batch; each certificate verifies with its proof against that root.
Tampering across three stores
The same certificate exists in Firestore, on IPFS and on-chain.
Decision
Compute a canonical certificate hash so any mismatch between the three is detectable.
Revocation must be final
A revoked credential must never be silently rewritten.
Decision
The contract rejects revoking a missing batch and rejects a second revocation.
Outcome
End to end
Issuance, batch processing, verification and revocation work as one system.
Deployed demo
Frontend on Vercel against the Polygon Amoy testnet.
Verification without accounts
Anyone with the QR link can check integrity.
Technical details
Technical detailsMy contributions · Code excerpt from the public repository
My contributions
Built by a three-person team. These areas come from my own commits to the shared repository:
- On-chain batch root anchoring and Merkle verification
- Smart-contract hardening and blockchain transaction retries
- IPFS metadata upload, PDF generation and certificate email delivery
- Bulk issuance with CSV upload
- Organisation admin and teacher management
- README, QA checklist and production preflight documentation
Batch revocation guards
function revokeBatch( string calldata batchId) external onlyAuthorizedIssuer { if (bytes(batchId).length == 0) revert EmptyBatchId(); BatchRecord storage batch = batches[batchId]; // Never create or mutate a missing batch during revocation. if (batch.issuedAt == 0) revert BatchNotFound(); // Revocation is irreversible, so a second revoke must not rewrite state. if (batch.revoked) revert BatchAlreadyRevoked(); uint256 revokedAt = block.timestamp; batch.revoked = true; batch.revokedAt = revokedAt; emit BatchRevoked(batchId, msg.sender, revokedAt);}Screenshots use test data. Names, email addresses and internal IDs have been redacted.
