Skip to main content

Crate openid4vci_proto_codec

Crate openid4vci_proto_codec 

Source
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§

CanonicalReallyMeZkV1Credential
A structurally valid, canonical custom credential container.

Enums§

OpenId4VciOperationKind
Operation identity a response consumer expects from an untrusted provider.
ProtoCodecError
Fixed errors for generated protobuf byte and JSON helpers.

Constants§

MAX_OPENID4VCI_EMBEDDED_JSON_BYTES
Maximum accepted or emitted JSON document in one protobuf byte field.
MAX_OPENID4VCI_OPERATION_RESPONSE_BYTES
Maximum accepted output from a composed OpenID4VCI platform provider.
MAX_OPENID4VCI_OPERATION_RESPONSE_OVERHEAD_BYTES
Maximum protobuf framing added by the versioned response envelope.
MAX_OPENID4VCI_PROTO_JSON_BYTES
Maximum accepted or emitted protobuf JSON document size.
MAX_OPENID4VCI_PROTO_MESSAGE_BYTES
Maximum accepted or emitted binary protobuf message size.
OPENID4VCI_EMBEDDED_JSON_RECURSION_LIMIT
Maximum nesting depth accepted in an embedded JSON byte field.
OPENID4VCI_PROTO_JSON_RECURSION_LIMIT
Maximum array/object nesting depth accepted by the ProtoJSON decoder.
OPENID4VCI_PROTO_RECURSION_LIMIT
Maximum nesting depth accepted by the protobuf decoder.
OPENID4VCI_PROTO_UNKNOWN_FIELD_LIMIT
Number of unknown protobuf fields accepted at the public boundary.

Traits§

OpenId4VciProtoJson
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§

ProtoCodecResult
Result alias for generated protobuf codec helpers.