Expand description
Unified credential lifecycle traits.
These traits define the common operations across all credential formats: issuance, verification, and presentation. Each format crate (baseid-vc, baseid-sd-jwt, baseid-mdl, baseid-bbs) provides its own implementation.
The trait design is forward-compatible with zero-knowledge proofs:
DisclosureSelection supports predicates from day one, even though
only BBS+ and AnonCreds implementations will support them. Formats
that don’t support predicates return Err(UnsupportedPredicate).
Structs§
- Issuance
Options - Options controlling credential issuance.
- Issued
Credential - An issued credential in its serialized format.
- Presentation
Options - Options controlling credential presentation.
- Presented
Credential - A credential presentation ready to be sent to a verifier.
- Verification
Outcome - The outcome of credential verification.
Enums§
- Revocation
Status - Status of revocation checking for a credential.
Traits§
- Credential
Issuer - Trait for issuing credentials in a specific format.
- Credential
Presenter - Trait for creating credential presentations with selective disclosure.
- Credential
Verifier - Trait for verifying credentials in a specific format.