Expand description
Shared types for the OpenID for Verifiable Credentials (OID4VC) protocol family.
This crate provides common types used across SIOPv2, OpenID4VP, and OpenID4VCI:
ResponseType— protocol response types (id_token, vp_token, code)ResponseMode— delivery modes (fragment, direct_post)SubjectSyntaxType— subject identifier types (JWK Thumbprint, DID)ClientMetadata— Relying Party registration metadataDisplayProperties— UI rendering propertiescompute_jwk_thumbprint— RFC 7638 JWK Thumbprint computation
Modules§
- eddsa
- EdDSA (Ed25519) signer and verifier for production JWT operations. EdDSA (Ed25519) JWT signer and verifier.
- es256
- ES256 (ECDSA P-256) signer and verifier for production JWT operations. ES256 (ECDSA P-256) JWT signer and verifier.
- jwt
- Shared JWT (JSON Web Token) infrastructure for OID4VC protocols.
- nonce
- In-memory nonce replay-prevention helper (single-process deployments). Replay prevention for OID4VC nonces.
Structs§
- Client
Metadata - Client (RP) metadata fields shared across OID4VC protocols.
- Display
Properties - Display properties for UI rendering (shared across OID4VCI, OpenID4VP).
- Logo
Properties - Logo properties for display.
Enums§
- OAuth
Error - Standard OAuth 2.0 error codes used across OID4VC.
- Response
Mode - OAuth 2.0 response delivery modes.
- Response
Type - OAuth 2.0 response types used across OID4VC protocols.
- Subject
Syntax Type - Subject syntax types for identifying credential holders.
Functions§
- compute_
jwk_ thumbprint - Compute a JWK Thumbprint per RFC 7638.