toDataItem

Converts this ZkDocument instance to a CBOR DataItem representation.

The resulting DataItem will be a CBOR map containing two entries:

  • "proof": The proof as a CBOR byte string

  • "zkDocumentData": The document data serialized to its CBOR representation

Return

A DataItem representing this ZkDocument in CBOR format