Skip to content

Enhance Context Validation #1529

@msporny

Description

@msporny

From w3c/vc-data-integrity#272 (comment), @decentralgabe wrote:

Add normative language to the DI specification requiring implementers to rigorously validate @context values. This should include:
a) Checking against a list of trusted contexts
b) Verifying the integrity of context contents using cryptographic hashes
c) Rejecting or transforming documents with untrusted contexts before processing

From https://github.com/w3c/vc-data-model/pull/1524/files#r1669382600, @TallTed wrote:

Applications MAY use JSON-LD compaction algorithms to transform a document that uses an unknown JSON-LD context to one that does not, so the new document's terms will match expectations.

Some additional detail might be needed, with the addition of that sentence. I think this, because I don't know (and I haven't been able to figure it out, after more than a few minutes reading the linked page and others. I had thought I had a good grasp of JSON-LD mechanics, but this makes me wonder!) how the suggested transformation would work. Maybe add some more-descriptive, psuedo-algorithmic language here, with fewer low-level details than the linked page?

Metadata

Metadata

Assignees

Labels

CR1This item was processed during CR1normativeThe PR is a normative change to the CR specificationpr exists

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions