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§
- Authorization
Request Object - OpenID4VP Authorization Request Object.
- Authorization
Response - OpenID4VP Authorization Response.
- Canonical
DnsName - Canonical A-label DNS name produced by strict UTS #46/IDNA processing.
- Client
Identifier - Parsed Client Identifier with its final-spec prefix.
- Client
Metadata - Raw verifier metadata carried inline or resolved by client identifier rules.
- Endpoint
Identity Error - Stable endpoint and DNS validation failure.
- Http
Status Code - HTTP status code used in RFC 9457 problem details.
- Open
Id4vp Type Error - Error returned by OpenID4VP protocol type helpers.
- Problem
Details - RFC 9457 Problem Details object.
- Problem
Details Ext - Extension member carrying the stable protocol error code.
- Problem
Instance - RFC 9457 problem instance URI.
- Problem
Title - RFC 9457 problem title.
- Problem
Type - RFC 9457 problem type URI.
- Transaction
Data - Transaction data object from OpenID4VP 1.0 final.
- Transaction
Data Hash - Fixed-size transaction data digest.
- Validated
Https Endpoint - Audited, canonicalized HTTPS endpoint identity.
- Verifier
Info Entry - Profile-defined attestation carried inside the signed
verifier_infoarray.
Enums§
- Canonical
Endpoint Host - Canonical endpoint host with IP literals represented semantically.
- Client
Identifier Prefix - OpenID4VP 1.0 final Client Identifier Prefix.
- Endpoint
Identity Error Reason - Stable endpoint and DNS validation failure reasons.
- Open
Id4vp Type Error Reason - Stable OpenID4VP type error taxonomy.
- Presentation
Value - Presentation value carried in a
vp_tokenentry. - Problem
Kind - Stable OpenID4VP problem taxonomy for RFC 9457 mapping.
- Request
Object JwtKind - RFC 9101 compact Request Object serialization kind.
- Request
UriMethod - Request Object retrieval method for
request_uri. - Response
Mode - OpenID4VP response mode.
- Response
Type - OpenID4VP response type.
- Transaction
Data Hash Algorithm - 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_tokenshape keyed by DCQL Credential Query id.