feat: implement public credential verification portal (Issue #376) - #483
Merged
Penielka merged 2 commits intoAug 25, 2026
Merged
Conversation
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Closes #376
This PR introduces a public, login-free portal where anyone can verify an issued credential by its ID/hash. It provides an external-facing surface for employers, institutions, and learners to prove a credential is genuine.
Changes Made
contracts/src/credential_registry.rs&contracts/src/lib.rs): Added aget_credential_read_onlyhelper to allow queries without triggering expiration state mutations.backend/src/routes/verify.ts): Implemented a new public/api/v1/verify/:hashendpoint that resolves credentials via the Soroban contract and properly surfaces error states (e.g., Revoked, Expired).backend/src/tests/verify.test.ts): Added comprehensive E2E tests for the verification endpoint to validate behavior against valid, revoked, and unknown credentials.frontend/src/app/verify/[hash]/page.tsx): Built a clean, responsive page to display credential details.frontend/src/components/verify/):CredentialDisplay.tsx: Renders credential metadata and dynamically displays a prominent status badge.QRCodeDisplay.tsx: Generates a shareable QR code pointing to the specific credential portal link.Acceptance Criteria Met
/verify/:hashpage renders credential details without authenticationHow to Test
AETHERMINT_CONTRACT_IDavailable in your backend env.npm test verify.test.tshttp://localhost:3000/verify/1(replace1with a valid mock or real credential ID) to view the portal.