generateProof

abstract fun generateProof(zkSystemSpec: ZkSystemSpec, encodedDocument: ByteString, encodedSessionTranscript: ByteString, timestamp: Instant = Clock.System.now()): ZkDocument

Generates a zero-knowledge proof for a given document using the specified zkSystemSpec and session context.

Return

a ZkDocument containing the resulting proof and metadata

Parameters

zkSystemSpec

the system spec indicating which ZK circuit or rules to use

encodedDocument

the encoded mdoc Document CBOR (per ISO 18013-5 section 8.3.2.1.2.2)

encodedSessionTranscript

the session transcript CBOR (used as public context)