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§
- Canonical
Mdoc Handover Cbor Encoder - Canonical encoder for the final OpenID4VP 1.0 Appendix B.2.6 structures.
- DcApi
Authorization Response - Digital Credentials API response payload for
response_mode=dc_api. - DcApi
Error - Digital Credentials API binding error.
- DcApi
Protocol - Digital Credentials API protocol identifier for OpenID4VP.
- Digital
Credential GetRequest - One
DigitalCredentialGetRequestentry for OpenID4VP. - Digital
Credential Request Options - Browser
CredentialRequestOptions.digitalpayload. - Encoded
Handover Info - Encoded CBOR handover info produced by an mdoc-aware adapter.
- Encoded
Mdoc Session Transcript - Canonically encoded ISO 18013-5
SessionTranscriptfor OpenID4VP. - Encrypted
DcApi Authorization Response - Digital Credentials API response payload for
response_mode=dc_api.jwt. - Handover
Digest - SHA-256 digest of the encoded handover info.
- JwsJson
General - RFC 7515 JWS JSON General Serialization used by multi-signed requests.
- JwsJson
Signature - One signature entry in RFC 7515 JWS JSON General Serialization.
- Mdoc
Device Response B64 - Base64url encoded ISO 18013-5
DeviceResponseproduced byreallyme-mdoc. - Open
Id4Vp DcApi Handover - Digital Credentials API handover input from OpenID4VP Annex B.
- Open
Id4Vp Redirect Handover - Redirect/direct_post handover input from OpenID4VP Annex B.
Enums§
- DcApi
Error Reason - Stable Digital Credentials API binding error taxonomy.
- DcApi
Request Kind - OpenID4VP request kind encoded into the Digital Credentials API protocol id.
- Digital
Credential GetRequest Data - OpenID4VP request data carried in one Digital Credentials API entry.
- Handover
Digest Input - Union of handover inputs delegated to the mdoc CBOR encoder.
- Handover
Kind - 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.
- OPENI
D4VP_ 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§
- Mdoc
Handover Cbor Encoder - 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
SessionTranscriptCBOR 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
SessionTranscriptCBOR value.