@context
field of all verifiable credentials. These contain all the additional the vocabulary references needed to semantically disambiguate the keys and values that make up a credential. ssi/contexts/
, which DIDKit queries for contexts. A few considerations, though:ssi/contexts/LICENSES.md
and ssi/contexts/README.md
as needed.ssi/contexts/README.md
with the other W3C documents (they are already covered by W3C license statements).ssi/contexts/Cargo.toml
.contexts/src/lib.rs
using include_str
to load the JSON-LD file and export it as a constant variable.ssi/src/jsonld.rs
lazy_static
block, define the context document as a RemoteDocument
, referencing the context file variable defined in contexts/src/lib.rs and the constant defined for the URL.StaticLoader
, match the context file's URL(s) to the context document.