toCbor

suspend fun toCbor(credential: VerifiableCredential): ByteArray

Convert credential to CBOR (RFC 8949) bytes.