Skip to main content

Crate oxilite_vc

Crate oxilite_vc 

Source
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§

CredentialOptions
Options of a credential handle.
MetadataIndexes
Which document metadata columns are indexed (the columns are always filled).
PresentationKeys
Keys written by put_presentation.
StoredDocument
A stored document.

Enums§

GraphStrategy
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 @context of VCDM 1.1.
CREDENTIALS_V2
The first @context of 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§

BundledContexts
Context loader of the bundled W3C contexts (credentials v1/v2, security, Data Integrity, cryptosuites, DID v1…).
CredentialFilter
Credential lookups: DocumentFilter over credential metadata.