create

fun create(type: String? = null, holder: String, vcJwts: Iterable<String>, additionalData: Map<String, Any>? = null): VerifiablePresentation

Create a VerifiablePresentation based on the provided parameters.

Return

A VerifiablePresentation instance.

Example:

    val vp = VerifiablePresentation.create(
vcJwts = vcJwts,
holder = holderDid.uri,
type = "PresentationSubmission",
additionalData = mapOf("presentation_submission" to presentationSubmission)
)

Parameters

type

The type of the presentation, as a String.

holder

The holder URI of the presentation, as a String.

vcJwts

The credentials used in the presentation, as a String.

additionalData

The presentation data, as a generic mapping Map.