Skip to main content

Crate reallyme_openid4vp_dc_api

Crate reallyme_openid4vp_dc_api 

Source
Expand description

OpenID4VP bindings for the W3C Digital Credentials API and ISO 18013-7 Annex B.

The W3C Digital Credentials API is an Editor’s Draft, so wire details here are deliberately small, typed, and isolated behind this crate. OpenID4VP profile and transport crates should depend on these models rather than duplicating draft-specific strings.

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 OpenID4VP protobuf messages and generated ProtoJSON.

Structs§

CanonicalMdocHandoverCborEncoder
Canonical encoder for the final OpenID4VP 1.0 Appendix B.2.6 structures.
DcApiAuthorizationResponse
Digital Credentials API response payload for response_mode=dc_api.
DcApiError
Digital Credentials API binding error.
DcApiProtocol
Digital Credentials API protocol identifier for OpenID4VP.
DigitalCredentialGetRequest
One DigitalCredentialGetRequest entry for OpenID4VP.
DigitalCredentialRequestOptions
Browser CredentialRequestOptions.digital payload.
EncodedHandoverInfo
Encoded CBOR handover info produced by an mdoc-aware adapter.
EncodedMdocSessionTranscript
Canonically encoded ISO 18013-5 SessionTranscript for OpenID4VP.
EncryptedDcApiAuthorizationResponse
Digital Credentials API response payload for response_mode=dc_api.jwt.
HandoverDigest
SHA-256 digest of the encoded handover info.
JwsJsonGeneral
RFC 7515 JWS JSON General Serialization used by multi-signed requests.
JwsJsonSignature
One signature entry in RFC 7515 JWS JSON General Serialization.
MdocDeviceResponseB64
Base64url encoded ISO 18013-5 DeviceResponse produced by reallyme-mdoc.
OpenId4VpDcApiHandover
Digital Credentials API handover input from OpenID4VP Annex B.
OpenId4VpRedirectHandover
Redirect/direct_post handover input from OpenID4VP Annex B.

Enums§

DcApiErrorReason
Stable Digital Credentials API binding error taxonomy.
DcApiRequestKind
OpenID4VP request kind encoded into the Digital Credentials API protocol id.
DigitalCredentialGetRequestData
OpenID4VP request data carried in one Digital Credentials API entry.
HandoverDigestInput
Union of handover inputs delegated to the mdoc CBOR encoder.
HandoverKind
Handover variant used when constructing the ISO 18013-7 SessionTranscript.

Constants§

MAX_JWS_JSON_GENERAL_BYTES
Maximum encoded JWS JSON General Serialization payload accepted by the model.
MAX_JWS_JSON_SIGNATURES
Maximum signatures accepted in one JWS JSON General Serialization value.
MAX_MDOC_HANDOVER_TEXT_BYTES
Maximum UTF-8 bytes accepted for one mdoc handover text parameter.
OPENID4VP_PROTOCOL_PREFIX
OpenID4VP protocol identifier prefix used in Digital Credentials API requests.
SHA256_DIGEST_BYTES
Length of SHA-256 digests used by ISO/IEC 18013-7 Annex B handover inputs.

Traits§

MdocHandoverCborEncoder
Adapter boundary for OpenID4VP handover-info CBOR construction.

Functions§

build_dc_api_handover_digest
Build the Digital Credentials API handover digest for an ISO mdoc response.
build_dc_api_session_transcript
Build the complete Digital Credentials API SessionTranscript CBOR value.
build_redirect_handover_digest
Build the redirect/direct_post handover digest for an ISO mdoc response.
build_redirect_session_transcript
Build the complete redirect/direct_post SessionTranscript CBOR value.