Skip to main content

Crate reallyme_openid4vp_types

Crate reallyme_openid4vp_types 

Source
Expand description

OpenID4VP 1.0 final protocol types.

Serde implementations in this crate exist only for bounded internal protocol parsing. They are not stable SDK DTO contracts. Cross-language and SDK boundaries must use the generated reallyme-openid4vp-proto messages and reallyme-openid4vp-proto-codec ProtoJSON helpers.

Structs§

AuthorizationRequestObject
OpenID4VP Authorization Request Object.
AuthorizationResponse
OpenID4VP Authorization Response.
CanonicalDnsName
Canonical A-label DNS name produced by strict UTS #46/IDNA processing.
ClientIdentifier
Parsed Client Identifier with its final-spec prefix.
ClientMetadata
Raw verifier metadata carried inline or resolved by client identifier rules.
EndpointIdentityError
Stable endpoint and DNS validation failure.
HttpStatusCode
HTTP status code used in RFC 9457 problem details.
OpenId4vpTypeError
Error returned by OpenID4VP protocol type helpers.
ProblemDetails
RFC 9457 Problem Details object.
ProblemDetailsExt
Extension member carrying the stable protocol error code.
ProblemInstance
RFC 9457 problem instance URI.
ProblemTitle
RFC 9457 problem title.
ProblemType
RFC 9457 problem type URI.
TransactionData
Transaction data object from OpenID4VP 1.0 final.
TransactionDataHash
Fixed-size transaction data digest.
ValidatedHttpsEndpoint
Audited, canonicalized HTTPS endpoint identity.
VerifierInfoEntry
Profile-defined attestation carried inside the signed verifier_info array.

Enums§

CanonicalEndpointHost
Canonical endpoint host with IP literals represented semantically.
ClientIdentifierPrefix
OpenID4VP 1.0 final Client Identifier Prefix.
EndpointIdentityErrorReason
Stable endpoint and DNS validation failure reasons.
OpenId4vpTypeErrorReason
Stable OpenID4VP type error taxonomy.
PresentationValue
Presentation value carried in a vp_token entry.
ProblemKind
Stable OpenID4VP problem taxonomy for RFC 9457 mapping.
RequestObjectJwtKind
RFC 9101 compact Request Object serialization kind.
RequestUriMethod
Request Object retrieval method for request_uri.
ResponseMode
OpenID4VP response mode.
ResponseType
OpenID4VP response type.
TransactionDataHashAlgorithm
Transaction data hash algorithm.

Constants§

JSON_MEDIA_TYPE
JSON response media type.
MAX_AUTHORIZATION_RESPONSE_JSON_BYTES
Maximum canonical JSON bytes accepted for an Authorization Response.
MAX_DNS_NAME_BYTES
Maximum accepted DNS name length, excluding a root-label trailing dot.
MAX_HTTPS_ENDPOINT_BYTES
Maximum accepted HTTPS endpoint length at the protocol boundary.
MAX_TRANSACTION_DATA_JSON_BYTES
Maximum decoded JSON accepted for one transaction-data value.
MAX_TRANSACTION_DATA_JSON_DEPTH
Maximum JSON nesting canonicalized by this crate’s transaction-data helper.
MAX_VERIFIER_INFO_DATA_BYTES
Maximum conservative encoded JSON size admitted for one attestation payload.
MAX_VERIFIER_INFO_ENTRIES
Maximum number of attestations admitted in one request.
PROBLEM_JSON_MEDIA_TYPE
RFC 9457 media type for JSON problem details.
REQUEST_OBJECT_MEDIA_TYPE
RFC 9101 media type for OAuth authorization request JWTs.
VERIFIER_ATTESTATION_MEDIA_TYPE
OpenID4VP media type for Verifier Attestation JWTs.

Functions§

canonical_authorization_response_bytes
Serialize a trusted, typed Authorization Response as bounded canonical JSON.
canonical_presentation_json_bytes
Canonicalize one trusted JSON-native presentation value.
canonical_transaction_data_bytes
Build deterministic JSON bytes for OpenID4VP transaction data hashing.
classify_request_object_jwt
Classify a compact RFC 9101 Request Object JWT before JOSE processing.
decode_transaction_data_string
Decode one final-spec base64url transaction data string.
encoded_transaction_data_string
Encode a transaction data object as the final-spec base64url string.
validate_oauth_binding_value
Validate the ASCII URL-safe syntax required for nonce and state by OpenID4VP 1.0 Section 5.2, without normalizing the opaque value.

Type Aliases§

VpToken
Final OpenID4VP vp_token shape keyed by DCQL Credential Query id.