Package-level declarations

Types

Link copied to clipboard

Credential transformer for format conversion.

Functions

Link copied to clipboard

Convert CBOR bytes to credential.

Link copied to clipboard

Convert JWT string to credential.

suspend fun String.fromJwt(allowUnsecured: Boolean): VerifiableCredential

Convert JWT string to credential, accepting unsecured (alg: none) JWTs only when allowUnsecured is true.

Link copied to clipboard

Round-trip transformation: credential -> CBOR -> credential.

Link copied to clipboard

Round-trip transformation: credential -> JSON-LD -> credential.

Link copied to clipboard

Round-trip transformation: credential -> JWT -> credential.

Link copied to clipboard

Convert credential to CBOR format.

Link copied to clipboard
suspend fun JsonObject.toCredential(): VerifiableCredential

Convert JSON-LD object to credential.

Link copied to clipboard
suspend fun VerifiableCredential.toJsonLd(): JsonObject

Convert credential to JSON-LD format.

Link copied to clipboard

Convert credential to JWT format.