ZkDocument

data class ZkDocument(val documentData: ZkDocumentData, val proof: ByteString)

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

Constructors

Link copied to clipboard
constructor(documentData: ZkDocumentData, proof: ByteString)

Types

Link copied to clipboard
object Companion

Properties

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.