Expand description
Bounded OpenID4VCI protobuf codecs and typed domain conversions.
Generated messages intentionally live in openid4vci-proto. This crate owns
every operation that interprets bytes, JSON, enum values, or message fields
as validated OpenID4VCI domain data.
Modules§
- convert
- Conversions between generated protobuf messages and OpenID4VCI wire types. Protobuf conversion surface.
- map_
error_ reason - Public error/status to protobuf reason-code mappings. Stable OpenID4VCI error-reason mappings.
Structs§
- Canonical
Really MeZk V1Credential - A structurally valid, canonical custom credential container.
Enums§
- Open
Id4Vci Operation Kind - Operation identity a response consumer expects from an untrusted provider.
- Proto
Codec Error - Fixed errors for generated protobuf byte and JSON helpers.
Constants§
- MAX_
OPENI D4VCI_ EMBEDDED_ JSON_ BYTES - Maximum accepted or emitted JSON document in one protobuf byte field.
- MAX_
OPENI D4VCI_ OPERATION_ RESPONSE_ BYTES - Maximum accepted output from a composed OpenID4VCI platform provider.
- MAX_
OPENI D4VCI_ OPERATION_ RESPONSE_ OVERHEAD_ BYTES - Maximum protobuf framing added by the versioned response envelope.
- MAX_
OPENI D4VCI_ PROTO_ JSON_ BYTES - Maximum accepted or emitted protobuf JSON document size.
- MAX_
OPENI D4VCI_ PROTO_ MESSAGE_ BYTES - Maximum accepted or emitted binary protobuf message size.
- OPENI
D4VCI_ EMBEDDED_ JSON_ RECURSION_ LIMIT - Maximum nesting depth accepted in an embedded JSON byte field.
- OPENI
D4VCI_ PROTO_ JSON_ RECURSION_ LIMIT - Maximum array/object nesting depth accepted by the ProtoJSON decoder.
- OPENI
D4VCI_ PROTO_ RECURSION_ LIMIT - Maximum nesting depth accepted by the protobuf decoder.
- OPENI
D4VCI_ PROTO_ UNKNOWN_ FIELD_ LIMIT - Number of unknown protobuf fields accepted at the public boundary.
Traits§
- Open
Id4Vci Proto Json - Generated OpenID4VCI messages approved for the public ProtoJSON boundary.
Functions§
- decode_
operation_ response_ v1 - Decodes and validates provider output for the operation submitted by a caller.
- decode_
proto - Decodes generated OpenID4VCI protobuf bytes into the requested message type.
- decode_
reallyme_ zk_ v1_ credential - Decode one unpadded base64url Buffa credential before SSI trust evaluation.
- encode_
proto - Encodes a generated OpenID4VCI protobuf message into bytes.
- execute_
operation_ json_ v1 - Executes bounded generated ProtoJSON input and returns a canonical binary response.
- execute_
operation_ request - Executes a trusted generated request through the canonical domain boundary.
- execute_
operation_ v1 - Executes bounded binary protobuf input and returns a canonical binary response.
- json_
to_ proto - Deserializes Buffa protobuf JSON into the requested generated message type.
- proto_
to_ json - Serializes a generated OpenID4VCI protobuf message using Buffa protobuf JSON.
Type Aliases§
- Proto
Codec Result - Result alias for generated protobuf codec helpers.