StaticfromBuild a Directory from a parsed JSON object matching the published directory schema.
The JSON object to convert into a Directory
A new Directory instance
StaticfromCreate a Directory by fetching issuer metadata (JWKS) and CRLs from the provided issuer base URLs.
For each issuer URL the method attempts to fetch /.well-known/jwks.json
and will then attempt to fetch CRLs for each key at
/.well-known/crl/{kid}.json. Failures to fetch a JWKS will skip that
issuer; failures to fetch a CRL for an individual key will skip that key's
CRL but keep the key. Errors are logged via console.debug and
unexpected exceptions are caught and logged with console.error.
Array of issuer base URLs to fetch (e.g. https://example.com/issuer)
A Directory containing any successfully fetched issuer info
StaticfromFetch a snapshot of the VCI Directory published by The Commons Project and build a Directory from it.
This helper fetches a well-known VCI snapshot JSON file and delegates to
Directory.fromJSON to produce a Directory instance. If the snapshot
cannot be retrieved (non-2xx response) the function throws an Error.
A Directory populated from the VCI snapshot
Directory is a lightweight representation of issuer metadata used by SMART Health Cards code paths. It contains a collection of issuer info objects including the issuer identifier, known JWK keys and optionally Certificate Revocation Lists (CRLs).