SessionTranscriptSerializer

Encodes a SessionTranscript as the CBOR array [DeviceEngagementBytes / null, EReaderKeyBytes / null, Handover], and decodes its handover as the kind its first two elements allow:

A transcript decoded from its canonical encoding, as ISO/IEC 18013-5 requires, re-encodes to the same bytes. Encoding does not depend on encodeDefaults. CBOR only.

Types

Link copied to clipboard
Link copied to clipboard
sealed class Subtype<T : SessionTranscript> : KSerializer<T>

Serializes one subtype of SessionTranscript, for its static type, e.g. encodeToByteArray(transcript).

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): SessionTranscript
Link copied to clipboard
open override fun serialize(encoder: Encoder, value: SessionTranscript)