create Presentation
open suspend override fun createPresentation(challenge: String, audienceId: String, presentationDefinition: PresentationDefinition, fallbackFormatHolder: FormatHolder?, pathAuthorizationValidator: (SubjectCredentialStore.StoreEntry, NormalizedJsonPath) -> Boolean): KmmResult<Holder.PresentationResponseParameters>
Creates an array of VerifiablePresentation and a PresentationSubmission to match the presentationDefinition.
Parameters
fallback Format Holder
: 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
path Authorization Validator
: Provides the user of this library with a way to enforce authorization rules.
suspend fun createPresentation(challenge: String, audienceId: String, presentationDefinitionId: String?, inputDescriptorMatches: List<Pair<InputDescriptor, HolderAgent.CandidateInputMatchContainer>>): KmmResult<Holder.PresentationResponseParameters>