-
Notifications
You must be signed in to change notification settings - Fork 123
Description
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?