CredenZ-AI
Proof of Skill. Trustless Hiring
The problem CredenZ-AI solves
Skill credentials today are broken and easily faked.
When someone completes a course or earns a certificate, they get a PDF or an image. That file can be:
- Screenshot-edited
- Shared by anyone
- Never independently verifiable by an employer or event organizer
CredenZ-AI solves this by turning certificates into tamper-proof, on-chain skill credentials.
Here's what it makes easier:
-
For job seekers & students — Upload your certificate (PDF or image), let AI extract the skill and score automatically, and generate a verifiable Web3 credential tied to your wallet identity. No manual form-filling, no forgery risk.
-
For hackathon organizers — Quickly verify that participants have the skills they claim, without manually cross-checking certificates from different platforms (Coursera, NPTEL, Google, etc.).
-
For employers & recruiters — Instead of trusting a PDF anyone could fake, verify a candidate's credential directly on-chain using their wallet address. The credential is public, immutable, and linked to a real score.
-
For developers building on Web3 identity — CredenZ-AI demonstrates a practical pipeline: AI extraction → credential creation → on-chain storage → ZK-proof-ready verification, which can be plugged into larger identity or DAO systems.
In short: CredenZ-AI bridges the gap between traditional paper certificates and trustless, blockchain-verified skill proof — making credential verification faster, safer, and universally accessible.
Challenges I ran into
1. OCR Accuracy on Real-World Certificates
Problem: Tesseract.js, when run on certificate images with decorative fonts, colored backgrounds, or low contrast text, returned garbled or incomplete text. The skill name and score fields were often wrong or missing entirely.
Fix: I added a preprocessing step where the image is analyzed for text regions before OCR. I also wrote custom regex patterns and keyword matching logic on top of the raw OCR output to intelligently extract fields like skill, score, issuer, and issueDate — even when the raw text was messy. A confidence score is returned so the frontend can warn the user if extraction quality is low.
2. PDF Parsing Inconsistencies
Problem: pdf-parse works well for text-based PDFs, but certificate PDFs from platforms like Coursera are often image-embedded — meaning the PDF contains a scanned image, not selectable text. The parser returned empty strings for these.
Fix: I added a detection layer: if pdf-parse returns little or no text (below a character threshold), the backend automatically falls back to converting the PDF page to an image buffer and running Tesseract OCR on it instead.
3. ESM Module Compatibility in the Backend
Problem: The backend uses "type": "module" in package.json to support ES module imports (import instead of require). Several packages — especially pdf-parse — were written for CommonJS and threw errors like require is not defined or __dirname is not defined.
Fix: Used import { fileURLToPath } from 'url' to manually reconstruct __dirname, and used dynamic import() where static imports caused issues. This kept the codebase fully ESM without downgrading to CommonJS.
4. Wallet Network Auto-Switching
Problem: Users connected with MetaMask but were on Ethereum Mainnet or another chain. Calling the contract on Polygon Amoy would silently fail or throw confusing RPC errors.
Fix: Implemented ensurePolygonAmoyNetwork() which checks the connected chain ID, and if it doesn't match Polygon Amoy (0x13882), it triggers wallet_switchEthereumChain. If the user doesn't have Amoy added at all (error code 4902), it automatically calls wallet_addEthereumChain to add it — all before any contract interaction happens.
5. ZK Proof Integration Complexity
Problem: Real zero-knowledge proof libraries like snarkjs + circom require circuit compilation, proving keys, and WASM files — far too complex to integrate during a hackathon timeframe.
Fix: Built a working proof commitment system using a hash-based stub (zkProof.js) that follows the same interface a real ZK system would use. This kept the architecture ZK-ready without blocking the demo. The system is designed so the stub can be swapped for a real snarkjs integration post-hackathon with minimal refactoring.
Cheer Project
Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.