Expand description
Verifiable Credentials in oxilite, on top of oxilite_jsonld.
A credential is stored verbatim under its id, its RDF goes into the named graph of the
same IRI, and its issuer, subject, types and validity window are indexed for lookups
without SPARQL. Structure is checked with ssi_vc (VCDM v1.1 and v2.0); the W3C
credential, security, Data Integrity and DID contexts come bundled with
ssi_json_ld, so credentials convert offline, on D1 too.
Proofs are not verified: storing a credential is not a claim that it is valid.
Use the ssi crates on the JSON returned by get_credential for that.
This crate is sans-IO; the oxilite crate (feature vc) provides Store::credentials().
Structs§
- Credential
Options - Options of a credential handle.
- Metadata
Indexes - Which document metadata columns are indexed (the columns are always filled).
- Presentation
Keys - Keys written by
put_presentation. - Stored
Document - A stored document.
Enums§
- Graph
Strategy - Which graph a document’s default-graph triples go to.
- KeyStrategy
- Where a document’s key comes from.
- Profile
- Data model version of a credential or presentation.
Constants§
- CREDENTIALS_
V1 - The first
@contextof VCDM 1.1. - CREDENTIALS_
V2 - The first
@contextof VCDM 2.0.
Functions§
- bundled_
contexts - The bundled contexts, used before persisted ones.
- credential_
input - Checks a credential’s structure and extracts its metadata.
- presentation_
inputs - Checks a presentation and prepares it, plus (when enabled) each embedded credential as a document of its own. The presentation comes first.
Type Aliases§
- Bundled
Contexts - Context loader of the bundled W3C contexts (credentials v1/v2, security, Data Integrity, cryptosuites, DID v1…).
- Credential
Filter - Credential lookups:
DocumentFilterover credential metadata.