CircuitResult

data class CircuitResult(val proofData: ProofData, val stateHandle: Long, val contractAddress: String, val entryPoint: String, val zswapLocalStateJson: String, val privateStateJson: String)

Full result from executing a contract circuit in QuickJS.

Captures everything needed to build an UnprovenTransaction:

  • proofData: ZK proof preimage

  • stateHandle: Rust-side handle to the updated contract state

  • contractAddress: address of the contract

  • entryPoint: circuit name (e.g., "post", "takeDown")

  • zswapLocalStateJson: coin inputs/outputs from circuit execution

  • privateStateJson: updated private state

Constructors

Link copied to clipboard
constructor(proofData: ProofData, stateHandle: Long, contractAddress: String, entryPoint: String, zswapLocalStateJson: String, privateStateJson: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard