Skip to main content

Crate reallyme_openid4vp_wallet

Crate reallyme_openid4vp_wallet 

Source
Expand description

Wallet-side OpenID4VP request verification and response construction boundary.

Structs§

BoundedX509CertificateChain
Structurally validated, bounded x5c certificate chain in leaf-first order.
RequestTransportPolicy
Policy for pure transport parsing and pre-verification size checks.
TransactionDataPresentationVerificationContext
Exact proof-verification context for one transaction-bound presentation.
TrustedX509RequestObjectSigner
Trusted result returned by the host’s Request Object certificate evaluator.
UnsignedDcApiTimeHint
Unauthenticated timing parameters supplied by an unsigned DC API requester.
VerifiedClientIdentifierBinding
Atomic trust-adapter receipt binding a DID or federation subject to the exact Request Object verification key.
VerifiedClientMetadataReference
Fresh, trusted verifier metadata resolved outside the pure wallet parser.
VerifiedPlatformOrigin
Browser-platform receipt for the origin invoking the Digital Credentials API.
VerifiedRequestObject
Atomic output from verification of one exact signed Request Object.
VerifiedUnsignedDcApiRequest
Opaque receipt for an unsigned request delivered by the browser Digital Credentials API security boundary.
VerifiedVerifierAttestation
Wallet-trusted verifier attestation evidence extracted from the Request Object.
VerifiedWalletRequest
Verified signed wallet request with parsed OpenID4VP claims.
VerifiedX509CertificateBinding
Opaque signer-bound receipt created only by the Request Object pipeline.
VerifiedX509RequestSigner
Authenticated request signer provenance from the verified X.509 path.
WalletClientIdentifierPolicy
Wallet capability policy for final-spec Client Identifier Prefix modes.
WalletError
Wallet-side OpenID4VP error.
WalletPreparedPersonaRequest
One selected claim and the exact live transcript to be signed by the prepared public persona or the reserved one-time private token key.
WalletRequestTrustEvidence
Host-supplied trust evidence for wallet Request Object validation.
WalletSelectedPresentation
One selected presentation for one verified DCQL Credential Query id.
WalletSelectedPresentationSet
Selected presentations for one verified authorization request.
WalletTransactionDataPolicy
Wallet allowlist for application-defined transaction-data types.
X509TrustDecisionContext
Non-PII evidence identifying the trust policy decision used for a signer.

Enums§

AuthorizationRequestTransport
Wallet authorization request transport classification.
WalletErrorReason
Stable wallet error taxonomy.
WalletInvocationContext
Authenticated transport context for signed wallet Request Objects.
X509RequestObjectTrustDecision
Definitive or indeterminate X.509 trust result from the host evaluator.
X509RequestObjectTrustPurpose
Trust purpose required for OpenID4VP X.509 Request Object signers.
X509TrustIndeterminateReason
Fixed reasons for indeterminate X.509 trust.
X509TrustRejectionReason
Fixed reasons for definitive X.509 rejection.

Constants§

MAX_MULTISIGNED_REQUEST_OBJECT_BYTES
Maximum accepted JWS JSON General Serialization input.
MAX_MULTISIGNED_REQUEST_OBJECT_SIGNATURES
Maximum signatures accepted from one JWS JSON General Serialization input.
MAX_X509_CERTIFICATE_DER_BYTES
Maximum DER length of one certificate in a Request Object x5c chain.
MAX_X509_CHAIN_CERTIFICATES
Maximum number of certificates permitted in a Request Object x5c chain.
MAX_X509_CHAIN_DER_BYTES
Maximum aggregate DER length of a Request Object x5c chain.
MAX_X509_DNS_SAN_BYTES
Maximum aggregate encoded length of retained DNS SAN identities. This independent cap prevents future changes from making the trust boundary unbounded.
MAX_X509_DNS_SAN_NAMES
Maximum number of DNS SAN identities retained from the leaf certificate.

Traits§

MultiSignedRequestObjectSignatureVerifier
Verifier for one signature selected from a multi-signed Request Object.
RequestObjectSignatureVerifier
Wallet-side Request Object verifier.
TransactionDataPresentationVerifier
Trusted format adapter that authenticates transaction-data proof binding.
WalletAuthorizationRequest
Opaque authorization-request receipt accepted by wallet disclosure APIs.
WalletCommonCredentialRootPresentation
Validated nine-proof common-credential-root presentation exposed to OpenID4VP.
WalletCommonCredentialRootProof
One validated common-credential-root proof package exposed to the wallet wire adapter.
ZkPersonaCredentialEvidencePresentationProvider
Application provider for a selected prepared persona credential.

Functions§

build_authorization_response
Build a protocol-valid response from presentations selected for a verified request.
parse_authorization_request_transport
Parse an OpenID4VP authorization request into a transport classification.
prepare_consent_data
Prepare wallet consent data by evaluating the request DCQL query.
prepare_zk_prepared_persona_request
Project a signed or browser-authenticated OpenID4VP request into the exact prepared-persona claim and live-authentication inputs.
prepare_zk_prepared_persona_response
Produce a prepared persona response from an authenticated OpenID4VP request.
prepare_zk_prepared_persona_unsigned_dc_api_request
Project a browser-authenticated unsigned DC API request into the prepared transcript. Its time hint is untrusted; the verifier must match it to its independently retained request session before accepting the presentation.
prepare_zk_prepared_persona_unsigned_dc_api_response
Produce an unsigned DC API prepared response using the browser-origin security context and a verifier-retained time hint.
prepare_zk_presentation
Validate an externally produced ZK envelope for inclusion in a response.
prepare_zk_presentation_from_bundle
Encode an API-owned proof bundle for one authenticated DCQL request.
prepare_zk_presentation_from_common_credential_root
Encode a validated common-credential-root presentation for one authenticated DCQL request.
prepare_zk_presentation_from_status_qualified_bundle
Encode a direct/private claim together with issuer-signed validity and authenticated current-status evidence for the selected credential.
validate_client_metadata_reference_binding
Validate metadata-by-reference evidence against a Request Object.
validate_response_endpoint_binding
Validate X.509 client identity and wallet-side response endpoint bindings.
validate_transport_client_id_binding
Enforce that a transport-level client_id matches signed Request Object claims.
validate_unsigned_dc_api_request
Validate an unsigned Digital Credentials API request with fail-closed defaults.
validate_unsigned_dc_api_request_with_transaction_data_policy
Validate an unsigned DC API request with supported transaction-data types.
validate_verifier_attestation_binding
Validate request claims against previously verified verifier attestation evidence.
validate_wallet_request_object
Validate wallet-enforced OpenID4VP Request Object claims.
validate_wallet_request_object_with_evidence
Validate wallet-enforced OpenID4VP Request Object claims with trust evidence.
validate_wallet_request_object_with_evidence_and_transaction_data_policy
Validate wallet claims, trust evidence, and application transaction semantics.
validate_wallet_request_object_with_transaction_data_policy
Validate a Request Object with an explicit transaction-data allowlist.
validate_wallet_request_object_with_trust
Validate wallet-enforced OpenID4VP Request Object claims with trust evidence.
verify_multisigned_request_object
Verify an OpenID4VP multi-signed Request Object.
verify_multisigned_request_object_with_transaction_data_policy
Verify a multi-signed Request Object with an explicit transaction-data allowlist.
verify_request_transport
Verify a by-value Request Object transport and enforce transport bindings.
verify_request_transport_with_transaction_data_policy
Verify request transport bindings with an explicit transaction-data allowlist.
verify_signed_request_object
Verify and validate a signed Request Object for wallet processing.
verify_signed_request_object_with_transaction_data_policy
Verify a signed Request Object with an explicit transaction-data allowlist.