Skip to main content

Crate openid4vci_issuer

Crate openid4vci_issuer 

Source
Expand description

Transport-agnostic OpenID4VCI issuer endpoint engine.

The functions in this crate accept already-parsed wire objects and injected traits for storage, proof verification, and credential issuance. HTTP headers, bearer-token validation, request routing, and TLS live in adapters.

Re-exports§

pub use encode::encode_immediate_response;
pub use encode::encode_immediate_response_with_verified_proofs;
pub use encode::expected_credential_count;
pub use encode::validate_issued_credential_count;
pub use encode::validate_issued_credential_count_with_verified_proofs;
pub use encode::validate_response_credential_count;
pub use encode::validate_response_credential_count_with_verified_proofs;
pub use encode::CommonRootCredentialEncoder;
pub use encode::CommonRootIssuanceRequestBinding;
pub use encode::CommonRootIssuedCredential;
pub use encode::CommonRootProofBinding;
pub use encode::CredentialEncoder;
pub use encode::IssuanceStatusEvidence;
pub use encode::IssuedCredential;
pub use encode::PassThroughCredentialEncoder;
pub use encode::COMMON_ROOT_POSEIDON2_HASH_SUITE;
pub use encode::COMMON_ROOT_PROFILE;
pub use encode::COMMON_ROOT_SHA256_HASH_SUITE;
pub use encode::REALLYME_ZK_V1_FORMAT;
pub use encrypt::decrypt_credential_request_json;
pub use encrypt::require_encrypted_request_for_response_encryption;
pub use encrypt::select_response_encryption_parameters;
pub use encrypt::validate_response_encryption_parameters;
pub use encrypt::CredentialRequestDecryptor;
pub use encrypt::CredentialRequestInput;
pub use encrypt::CredentialRequestJson;
pub use encrypt::CredentialResponseBody;
pub use encrypt::CredentialResponseEncryptor;
pub use encrypt::DecryptedCredentialRequestJson;
pub use encrypt::DeferredCredentialRequestInput;
pub use encrypt::EncryptedCredentialResponse;
pub use encrypt::DEFAULT_MAX_CREDENTIAL_REQUEST_JSON_BYTES;
pub use encrypt::DEFAULT_MAX_ENCRYPTED_RESPONSE_BYTES;
pub use endpoint::handle_credential_request;
pub use endpoint::handle_credential_request_body;
pub use endpoint::handle_deferred_credential_request_body;
pub use endpoint::handle_nonce_request;
pub use endpoint::handle_notification_request;
pub use endpoint::preflight_credential_request;
pub use endpoint::CredentialIssuer;
pub use endpoint::CredentialRequestPreflight;
pub use endpoint::DeferredIssuer;
pub use endpoint::DeferredResolution;
pub use endpoint::IssuanceOutcome;
pub use endpoint::NotificationHandler;
pub use error::IssuerError;
pub use error::IssuerResult;
pub use error::IssuerStatus;
pub use metadata::IssuerMetadataSigner;
pub use metadata::SignedIssuerMetadataJwt;
pub use metadata::MAX_SIGNED_ISSUER_METADATA_JWT_BYTES;
pub use nonce::AuthenticatedNonceManager;
pub use nonce::NonceCapacitySnapshot;
pub use nonce::NonceManager;
pub use nonce::MAX_NONCE_TTL_SECONDS;
pub use proof::validate_common_proof_claims;
pub use proof::CompactProofJwtParser;
pub use proof::ConfirmationJwk;
pub use proof::CredentialRequestProfile;
pub use proof::KeyAttestationLocalPolicy;
pub use proof::KeyAttestationPolicy;
pub use proof::ProofAlgorithm;
pub use proof::ProofKind;
pub use proof::ProofVerificationContext;
pub use proof::ProofVerifier;
pub use proof::UnverifiedProofClaims;
pub use proof::VerifiedProof;
pub use proof::VerifiedProofSet;
pub use proof::DEFAULT_MAX_PROOF_JWT_BYTES;
pub use proof::PROOF_JWT_TYP;
pub use store::DeferredIssuance;
pub use store::DeferredStore;
pub use store::InMemoryDeferredStore;
pub use store::InMemoryNotificationStore;
pub use store::NotificationRecord;
pub use store::NotificationStore;
pub use verify_attestation::KeyAttestationProofVerifier;

Modules§

encode
Credential encoding boundaries for issuer engines.
encrypt
Credential response encryption boundary.
endpoint
Pure endpoint functions for issuer flows.
error
Typed issuer engine errors.
metadata
Signed Credential Issuer Metadata provider boundary.
nonce
Authenticated, stateless issuance nonces with bounded replay tracking.
proof
Credential proof parsing and verification.
store
Storage trait boundaries for issuer adapters.
verify_attestation
Issuer proof verifier for the OpenID4VCI attestation proof type.

Structs§

CredentialEndpointConfig
Runtime policy for one advertised credential configuration.
IssuanceAuthorization
Validated authorization material that binds issuance to the approved subject/grant without exposing the bearer access token to an issuer.
OsNotificationIdGenerator
Operating-system CSPRNG-backed notification identifier generator.
OsTransactionIdGenerator
Operating-system CSPRNG-backed deferred-transaction identifier generator.
ProofTypeEndpointPolicy
Runtime proof policy selected by the proof type actually submitted.

Traits§

NotificationIdGenerator
Generates unpredictable notification identifiers.
TransactionIdGenerator
Generates unpredictable deferred-transaction identifiers.