Log
Added on-chain certification to widigg, once a static learning service, as its second feature. Answer every whitepaper quiz question correctly and a learning-completion badge is issued as a real NFT.
- The contract is
WhitepaperBadge(ERC-721, OpenZeppelin). Deployed to Base mainnet and source-verified on both Basescan and Sourcify. Badge image (SVG) and metadata are stored fully on-chain - To prevent forged issuance, quiz answers are never exposed to the client. The server grades and issues an EIP-712 voucher signature, and the contract mints only with that signature. "Mint without taking the quiz" is structurally impossible
- The wallet connects via MetaMask. Issuance is written to Firestore only via a server-only path, and client writes are blocked. A shareable OG card was added too
- As an extra, price alerts notify via browser web push when a target price is hit
- The wallet/Firebase modules were ported and reused from another project (project-EF). project-EF had only an NFT-platform skeleton
Judgment
Key point
The reason for an NFT on a learning service is to prove the fact of "completed" in a tamper-proof way. A server-DB record is something we could alter at will, but an on-chain badge is not. That trust collapses if anyone can mint, though. So signature-based server verification was the heart of this feature. I split roles between on-chain (proof of ownership) and off-chain (fast lookup and verification). The contract handles only issuance and ownership, while grading and eligibility stay on the server.
More time went into the reality of free tiers than into code. Gas is paid by the learner as a "course-completion fee," but I chose the low-cost Base (L2). The 15-minute alert check exceeded Vercel's free "once-daily" cron limit, so I routed it through GitHub Actions. That same cron limit was the silent cause of failing deploys. It became visible only after clearing the dashboard filter that hid the failures.
Charted Ahead
- Add four whitepapers (Chainlink · Uniswap · Aave · Cosmos). They are queued on the AI generation pipeline
- Run the Sepolia testnet in parallel while watching mainnet stabilize