Package-level declarations

Types

Link copied to clipboard
class ByteStringWrapper<T>(val value: T, val serialized: ByteArray = byteArrayOf())

Use this class if you'll need to serialize a complex type as a byte string before encoding it, i.e. as it is the case with the protected header in COSE structures.

Link copied to clipboard
class ByteStringWrapperSerializer<T>(dataSerializer: KSerializer<T>) : KSerializer<ByteStringWrapper<T>>

Properties

Link copied to clipboard
val Base16Strict: Base16

Strict Base16 encoder

Link copied to clipboard

CBOR Serializer, preconfigured with COSE-compliant settings. Ignores unknown keys and always uses ByteString encoding.