createPresentation

abstract suspend fun createPresentation(challenge: String, audienceId: String, attributeTypes: Collection<String>? = null, requestedClaims: Collection<String>? = null): Holder.CreatePresentationResult?

Creates a VerifiablePresentation serialized as a JWT for all the credentials we have stored, that match the attributeTypes (if specified). Optionally filters by requestedClaims (e.g. in ISO case).

May return null if no valid credentials (i.e. non-revoked, matching attribute name) are available.


abstract suspend fun createPresentation(validCredentials: List<String>, challenge: String, audienceId: String): Holder.CreatePresentationResult?

Creates a VerifiablePresentation with the given validCredentials.

Note: The caller is responsible that only valid credentials are passed to this function!