createPresentationFromCredentials

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

Return

A PresentationSubmission object.

Parameters

vcJwts

Iterable of VCs in JWT format to validate.

presentationDefinition

The Presentation Definition V2 object against which VCs are validated.

Throws

if the presentation definition contains submission requirements.

if no VC corresponds to an input descriptor or if a VC's index is not found.

PresentationExchangeError

If the number of input descriptors matched is less than required.