createPresentation

open suspend override fun createPresentation(challenge: String, audienceId: String, attributeNames: List<String>?, attributeTypes: List<String>?): 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.


open suspend override 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!