toDataItem

Converts this ZkDocumentData instance to a CBOR DataItem representation.

The resulting DataItem will be a CBOR map containing:

  • "zkSystemId": The ZK system specification identifier as a text string

  • "docType": The document type as a text string

  • "timestamp": The timestamp as a tdate w/ no fractional seconds and using Zulu timezone.

  • "issuerSignedItems": An array of issuer-signed data items

  • "deviceSignedItems": An array of device-signed data items

  • "msoX5chain": The X.509 certificate chain (only included if non-null)

Return

A DataItem representing this ZkDocumentData in CBOR format