Companion

object Companion

Functions

Link copied to clipboard
suspend fun computeHandover(encodedReaderEngagement: ByteArray): DataItem

Computes the ReaderQrHandover (bstr SHA-256 digest of ReaderEngagementBytes, i.e., #6.24(bstr .cbor ReaderEngagement)) according to ISO/IEC 18013-5 Second Edition clause 12.7.1.

Link copied to clipboard

Parses CBOR compliant with the CDDL for ReaderEngagement according to ISO/IEC 18013-5.

fun fromDataItem(dataItem: DataItem, engagementType: MdocEngagementType?): ReaderEngagement

Parses CBOR compliant with the CDDL for ReaderEngagement according to ISO/IEC 18013-5, optionally enforcing context-specific constraints for engagementType.