Skip to content

resource-viz-pop-tests#4

Merged
OR13 merged 1 commit into
mainfrom
resource-viz-pop-tests
Jul 7, 2026
Merged

resource-viz-pop-tests#4
OR13 merged 1 commit into
mainfrom
resource-viz-pop-tests

Conversation

@OR13

@OR13 OR13 commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Why: show the resource being retrieved, visualize what's marked, and test the sign/verify/present paths.

  • Terminal retrieves the resource — client-side fetches /landmarks/stephansdom.json and shows the live fields (name, coords, protected).
  • Resource visualization — verify page renders a ResourceCard: map marker, PROTECTED badge, coordinates, landmark name (parsed from the GeoJSON).
  • Proof of possessioncreatePossessionProof / verifyPossessionProof: the holder signs a challenge with the cnf key; verified against the emblem's cnf public key.
  • Tests (npm test, node:test + tsx): 9 passing — issue+verify, hash binding, tamper detection, wrong-key rejection, resource-modification detection, and PoP present (valid / wrong key / challenge mismatch).

tsc, ESLint, tests, and next build all green.

🤖 Generated with Claude Code

Why: make the demo show the resource being fetched, visualize what is marked,
and cover the CWT sign/verify/present (cnf proof-of-possession) paths with tests.

- Terminal now client-side fetches /landmarks/stephansdom.json and shows the
  retrieved fields (name, coords, protected).
- Verify page renders a ResourceCard: a map marker, PROTECTED badge,
  coordinates, and landmark name parsed from the GeoJSON.
- Proof of possession: createPossessionProof / verifyPossessionProof — the
  holder signs a challenge with the cnf key; a verifier checks it against the
  emblem's cnf public key.
- Test suite (node:test + tsx, `npm test`): 9 tests over issue+verify, hash
  binding, tamper detection, wrong-key rejection, resource-modification
  detection, and the PoP present flow (valid, wrong key, challenge mismatch).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
emblem-red Ready Ready Preview, Comment Jul 7, 2026 6:24pm

Request Review

@OR13 OR13 merged commit e012cd8 into main Jul 7, 2026
4 checks passed
@OR13 OR13 deleted the resource-viz-pop-tests branch July 7, 2026 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant