Skip to content
VCred

VCred

Decentralised Academic Credentials System.

Created on 27th March 2026

•

VCred

VCred

Decentralised Academic Credentials System.

The problem VCred solves

Academic credential fraud is a global crisis. Millions of forged degrees and fake certificates flood the job market every year — costing employers billions, shutting out deserving candidates, and eroding trust in institutions. Traditional verification (calling registrars, email confirmations, paid background checks) is slow, expensive, and still fallible.

VCred eliminates this problem at the root — replacing a trust-on-paper system with a trust-in-math system.


For Institutions — Stop Issuing Forgeable Documents

Paper and PDF certificates are operationally fragile. They get lost, tampered with, or outright fabricated. VCred replaces this with a one-click, cryptographically anchored issuance workflow — no blockchain expertise required.

  • Log in with Google (no crypto wallet needed — account abstraction handles it)
  • Upload a CSV of graduates, pick a certificate design template
  • Mint a tamper-proof credential batch on Ethereum in minutes
  • Retain the power to revoke credentials if issued in error — the verification portal reflects revocations instantly

For Students — Own Your Credentials Forever

A PDF sent over email is trivially faked. A Soulbound NFT anchored to your wallet address is not. VCred gives students permanent, self-sovereign ownership of their academic achievements.

  • Credentials live in your wallet — not locked inside a university portal
  • Share a QR code or link on LinkedIn, job applications, or freelance profiles
  • Your degree cannot be transferred, sold, or tampered with — ever
  • Verifiers can confirm authenticity without contacting your university

For Employers — Instant, Free, Mathematically Certain Verification

Traditional credential checks take days and cost money per check. With VCred, verification is free, instant, and requires zero trust in any third party.

  • Scan the QR code on any VCred certificate
  • The portal reconstructs the credential hash and checks it against the on-chain Merkle Root
  • A forgery is detectable in seconds, not weeks
  • Works for anyone, anywhere — no account or subscription needed

For Privacy — Verifiable Without Exposing Personal Data

Unlike naive "put everything on the blockchain" approaches, VCred never exposes student PII (names, grades, IDs) on a public ledger.

  • Only an aggregated Merkle Root hash is stored on-chain
  • Individual encrypted records are pinned to IPFS — off-chain and private
  • The system is cryptographically verifiable and GDPR-friendly
  • Gas costs are dramatically reduced since only one hash hits the chain per batch

The Bottom Line

The Old WayThe VCred Way
PDF certificates — easily fakedSoulbound NFTs — cryptographically bound
Verification takes days & costs moneyInstant, free, scan-and-verify
PII stored in university databasesPII stays off-chain, privacy preserved
No revocation mechanismInstitutions can revoke in real time
Requires crypto knowledge to issueGoogle login + CSV — that's it

Challenges we ran into

Building VCred pushed us into some genuinely uncharted territory — here are the hardest walls we hit and how we broke through them.


🔗 Privy + Wagmi v2 + Viem — The Triple Integration Nightmare

The single most time-consuming challenge was getting Privy's embedded wallets to play nicely with Wagmi v2 and Viem simultaneously. Privy's SDK had subtle version mismatches with Wagmi v2's new connector API - hooks like useWalletClient and usePublicClient would return undefined intermittently, causing silent failures during contract writes.

The fix wasn't a single patch — it required carefully pinning exact dependency versions across privy, wagmi, viem, and @alchemy/aa-*, wrapping all contract interactions in custom hooks that validated connector readiness before firing, and replacing direct useContractWrite calls with Viem's walletClient.writeContract pattern for far more control over error states. This took nearly two full days of debugging before the stack felt stable.


🌳 Merkle Tree Consistency Between Client and Contract

Our privacy model depends entirely on the Merkle Root computed client-side matching exactly what the smart contract later verifies against. Early on, we had a subtle but catastrophic bug: the leaf hashing order on the frontend (keccak256(abi.encodePacked(name, cgpa, batch))) didn't match the Solidity contract's encoding.

JavaScript's ethers.solidityPackedKeccak256 and Solidity's keccak256(abi.encodePacked(...)) are supposed to be equivalent — but we had a type mismatch: one field was passed as a JavaScript "number" instead of a "string", causing the packed bytes to differ silently. The Merkle proof would generate without error but fail verification every single time. The breakthrough came from logging raw hex-encoded leaves on both sides and diffing them byte-by-byte until the divergence was obvious. After that, we enforced strict string coercion on all leaf fields before hashing — no implicit type casting anywhere in the pipeline.


📄 PDF Generation at High Fidelity — html2canvas vs jsPDF

We wanted certificates to look genuinely beautiful as downloadable PDFs — not like a browser screenshot stapled to a page. The standard html2canvas → jsPDF pipeline was our first approach, but it produced blurry, low-DPI output that looked unprofessional for an academic credential.

The fix was a two-part upgrade — scaling the canvas render to window.devicePixelRatio * 3 before passing it to jsPDF to force a high-resolution raster, and isolating the certificate DOM node into a fixed off-screen container at exact A4 proportions before capture so layout reflow didn't corrupt the design. Getting font rendering consistent across browsers (especially for the elegant script template) required replacing system fonts with embedded Base64 web fonts loaded before canvas capture triggered.


⛽ Gas Optimization — From "Too Expensive" to "One Hash Per Batch"

Our first contract design stored individual student credential hashes on-chain — one transaction per student. For a batch of 200 graduates, this was completely unusable in terms of gas cost and UX.

The architectural pivot to Merkle Trees solved this: regardless of batch size, only the single 32-byte root hash hits the chain. But this required rebuilding the entire verification flow — the smart contract now only stores roots, and all proof validation logic moved to the frontend using merkletreejs. This pivot also unlocked the privacy benefit as a side effect — student data never had to touch the chain in the first place.


🔐 Soulbound Enforcement — Overriding OpenZeppelin's ERC-721

Making tokens truly non-transferable required overriding the _update hook in OpenZeppelin's ERC-721 contract (v5 changed the transfer internals significantly from v4). Simply reverting on transferFrom wasn't enough — approvals also had to be blocked to prevent indirect transfer exploits. The final implementation overrides both transferFrom and approve to revert with a custom SoulboundToken() error, while still allowing the institution to revoke (burn) tokens through a separate access-controlled function — a nuance that took careful thinking to get right without breaking the revocation feature.

Tracks Applied (1)

EDUCATION

Discussion

Builders also viewed

See more projects on Devfolio