Skip to content

Validate CID contexts for VCs#20

Open
makew0rld wants to merge 1 commit into
mainfrom
dev-1765-context
Open

Validate CID contexts for VCs#20
makew0rld wants to merge 1 commit into
mainfrom
dev-1765-context

Conversation

@makew0rld
Copy link
Copy Markdown
Contributor

The evidence fields have a JSON-LD schema, it's just referenced by urn:cid. This makes VCs that have that schema (future vcomp VCs will do this) valid. This has no effect on VCs that don't reference urn:cid so it's quite a safe change.

PR code written by Claude, this text written by me

Allows VCs to reference the bundled urn:cid: contexts (e.g. the IG common
context) so their custom evidence terms expand during JSON-LD canonicalization
instead of erroring with "Unknown context". Default-issued VCs are unchanged —
they still ship just credentials/v2 + security/v2; the loader only matters for
VCs that explicitly include a urn:cid context in their @context array.

Adds a verify_vc test covering that case.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@makew0rld makew0rld requested a review from TJbrunk May 14, 2026 21:05
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.

2 participants