The pyeudiw.openid4vp module provides classes and schemas related to OpenID for Verifiable Presentations.
pip install pyeudiw
# Or with SATOSA backend:
pip install pyeudiw[satosa]The openid4vp package contains:
- Schemas and models for Authorization Requests, Presentations, and Response objects
- DCQL (Duckle) query language support for credential requests
- Presentation definitions and credential format handling
The main integration is through the SATOSA OpenID4VP backend. See OPENID4VP-SATOSA-BACKEND.md for:
- Backend configuration
- Endpoints (pre-request, request, response, status)
- Trust evaluation setup
- QR code and UI settings
Presentation verification uses CredentialPresentationHandlers, which load format-specific parsers (e.g. SD-JWT, mdoc):
from pyeudiw.credential_presentation.handler import load_credential_presentation_handlers
from pyeudiw.trust.dynamic import CombinedTrustEvaluator
# Load from backend config
config = {...}
trust_evaluator = CombinedTrustEvaluator.from_config(...)
handlers = load_credential_presentation_handlers(
config["credential_presentation_handlers"],
trust_evaluator,
)- OPENID4VP-SATOSA-BACKEND.md — Full SATOSA backend setup
- TRUST.md — Trust evaluation configuration
- SD-JWT.md — SD-JWT VC format