Skip to main content

Module openid4vp

Module openid4vp 

Source
Expand description

OpenID for Verifiable Presentations (OpenID4VP) and Credential Issuance.

Provides the infrastructure for issuing, storing, and presenting Verifiable Credentials using the W3C data model and the OpenID protocol suite.

Experimental: Core data types and request/response structures are defined. DID resolution supports did:key: (Ed25519, P-256) and did:web: methods. JWS proof verification is implemented for EdDSA and ES256 algorithms.

Structs§

DescriptorMap
Maps an Input Descriptor to a credential location in the VP Token.
DidDocument
Minimal DID Document following the W3C DID Core specification.
FieldConstraint
A single field filter (JSONPath + optional JSON Schema filter).
InputConstraints
Constraint filters on a credential’s JSON structure.
InputDescriptor
Describes a single credential input requirement.
OpenId4vpConfig
OpenId4vpService
PresentationDefinition
A Presentation Definition per DIF Presentation Exchange v2.
PresentationSubmission
A Presentation Submission per DIF Presentation Exchange v2.
VerificationMethod
A verification method within a DID Document.

Functions§

resolve_did
Resolve a DID to its DID Document.
simple_presentation_definition
Build a minimal Presentation Definition requiring a single credential type.
validate_submission
Validate that a Presentation Submission matches a Presentation Definition.