createPresentation

abstract suspend fun createPresentation(challenge: String, audienceId: String, presentationDefinition: PresentationDefinition, fallbackFormatHolder: FormatHolder? = null, pathAuthorizationValidator: (SubjectCredentialStore.StoreEntry, NormalizedJsonPath) -> Boolean = defaultPathAuthorizationValidator): KmmResult<Holder.PresentationResponseParameters>

Creates an array of VerifiablePresentation and a PresentationSubmission to match the presentationDefinition.

Parameters

fallbackFormatHolder

: format holder to be used in case there is no format holder in a given presentation definition and the input descriptor. This will mostly resolve to be the some clientMetadata.vpFormats

pathAuthorizationValidator

: Provides the user of this library with a way to enforce authorization rules.