ZkDocument

data class ZkDocument(val documentData: ZkDocumentData, val proof: ByteString, val docRequestIds: List<Int>? = null)

Represents a document that contains a zero-knowledge (ZK) proof.

Constructors

Link copied to clipboard
constructor(documentData: ZkDocumentData, proof: ByteString, docRequestIds: List<Int>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Optional list of DocRequest indices in DeviceRequest.docRequests that this document responds to, or null if not specified.

Link copied to clipboard

The structured data of the document.

Link copied to clipboard
val proof: ByteString

The ZK proof that attests to the integrity and validity of the document data.

Functions

Link copied to clipboard

Converts this ZkDocument instance to a CBOR DataItem representation.