IssuerSignedItem

data class IssuerSignedItem(val dataItem: DataItem)

A data structure representing IssuerSignedItem in ISO/IEC 18013-5:2021.

This is stored as a DataItem to preserve the order since the result of calculateDigest depends on the exact bytes generated by the issuer. Since ISO/IEC 18013-5:2021 Clause 8.1 puts requirements on integers and lengths, the only variable thing is map order meaning it's sufficient to use a DataItem instead of the exact bytes from the issuer.

Individual components can be retrieved using the digestId, random, dataElementIdentifier, and dataElementValue properties.

Constructors

Link copied to clipboard
constructor(dataItem: DataItem)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Data element identifier.

Link copied to clipboard

Data element value.

Link copied to clipboard

a DataItem which is a map with keys digestID, random, elementIdentifier, and elementValue as defined in ISO/IEC 18013-5:2021.

Link copied to clipboard

The Digest ID.

Link copied to clipboard
val random: ByteString

Random value.

Functions

Link copied to clipboard
suspend fun calculateDigest(algorithm: Algorithm): ByteString

Calculates the digest of IssuerSignedItemBytes.