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")Content copied to clipboard
Return
CBOR-encoded bytes