createPresentation

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

Creates a VerifiablePresentation serialized as a JWT for all the credentials we have stored, that match the attributeNames or attributeTypes (if specified).

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!