toCbor

Convert credential to CBOR format.

Serializes the credential to compact binary CBOR format. CBOR provides more efficient encoding than JSON.

Example:

val cbor = credential.toCbor()
println("CBOR size: ${cbor.size} bytes")

Return

CBOR-encoded bytes