PresentationExchange

The PresentationExchange object provides functions for working with Verifiable Credentials and Presentation Definitions during a presentation exchange process.

Functions

Link copied to clipboard

Creates a Presentation Submission in which the list of Verifiable Credentials JWTs (VCs) fulfills the given Presentation Definition. Presentation Definition.

Link copied to clipboard

Validates a list of Verifiable Credentials (VCs) against a specified Presentation Definition.

Link copied to clipboard
fun selectCredentials(vcJwts: Iterable<String>, presentationDefinition: PresentationDefinitionV2): List<String>

Selects credentials that satisfy a given presentation definition.

Link copied to clipboard
fun validateDefinition(presentationDefinition: PresentationDefinitionV2)

Validates whether an object is usable as a presentation definition or not.

Link copied to clipboard
fun validateSubmission(presentationSubmission: PresentationSubmission)

Validates whether an object is usable as a presentation submission or not.