VerifiablePresentation

VerifiablePresentation is a tamper-evident presentation encoded in such a way that authorship of the data can be trusted after a process of cryptographic verification. W3C Verifiable Credentials Data Model.

It provides functionalities to sign, verify, and create presentations, offering a concise API to work with JWT representations of verifiable presentations and ensuring that the signatures and claims within those JWTs can be validated.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val vpDataModel: <Error class: unknown class>

The vpDataModel instance representing the core data model of a verifiable presentation.

Functions

Link copied to clipboard
fun sign(bearerDid: BearerDid, assertionMethodId: String? = null): String

Sign a verifiable presentation using a specified decentralized identifier (bearerDid) with the private key that pairs with the public key identified by assertionMethodId.

Link copied to clipboard
open override fun toString(): String

Converts the current object to its JSON representation.