credibil_vc/lib.rs
1//! An API for the issuance and verification of Verifiable Credentials based on
2//! the [OpenID for Verifiable Credential Issuance](https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0.html)
3//! and [OpenID for Verifiable Presentations](https://openid.net/specs/openid-4-verifiable-presentations-1_0.html)
4//! specifications.
5//!
6//! # Feature Flags
7//!
8//! There is no default feature. The following features are available:
9//!
10//! * `issuer` - Enables the issuer API.
11//! * `verifier` - Enables the verifier API.
12
13#[cfg(feature = "issuer")]
14pub mod issuer;
15
16#[cfg(feature = "verifier")]
17pub mod verifier;
18
19mod core;
20mod dif_exch;
21mod iso_mdl;
22mod openid;
23mod status;
24mod w3c_vc;
25
26pub mod test_utils;
27
28/// Re-export top-level provider traits and types
29pub mod provider {
30 pub use crate::openid::provider::{StateStore, Result};
31}
32
33/// Re-export DID resolution
34pub mod did {
35 pub use credibil_did::*;
36}
37
38/// Re-export cryptographic types and functions
39pub mod infosec {
40 pub use credibil_infosec::*;
41}
42
43/// Re-export basic types
44pub use crate::core::{Kind, Quota, urlencode};