roundTripCbor

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

Useful for testing that CBOR transformation preserves all credential data.

Example:

val recovered = credential.roundTripCbor()
assertEquals(credential.id, recovered.id)

Return

Credential recovered from CBOR transformation