Module lifecycle

Module lifecycle 

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

IssuanceOptions
Options controlling credential issuance.
IssuedCredential
An issued credential in its serialized format.
PresentationOptions
Options controlling credential presentation.
PresentedCredential
A credential presentation ready to be sent to a verifier.
VerificationOutcome
The outcome of credential verification.

Enums§

RevocationStatus
Status of revocation checking for a credential.

Traits§

CredentialIssuer
Trait for issuing credentials in a specific format.
CredentialPresenter
Trait for creating credential presentations with selective disclosure.
CredentialVerifier
Trait for verifying credentials in a specific format.