Identifier

data class Identifier(val value: ByteArray)(source)

Identifier = bstr

This only works correctly if the cbor serializer uses alwaysUseByteString = true which holds for coseCompliantSerializer.

The @ByteString annotation is currently only cosmetic because a custom serializer cannot not honor it due to how it's wired in the backend.

We cannot use ByteArray directly because of Kotlin's way of handling equality and kotlinx's handling of @ByteString

Constructors

Link copied to clipboard
constructor(value: ByteArray)

Types

Link copied to clipboard
object TransformingSerializer : TransformingSerializerTemplate<Identifier, ByteArray>

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int