proveTransaction

fun proveTransaction(unprovenTxHex: String, keysDir: String): String?

Prove a transaction locally using cached proving keys.

Input/output formats are identical to the proof server:

  • Input: hex-encoded (Transaction, HashMap) tuple (same as POST /prove-tx body)

  • Output: hex-encoded proven Transaction (same as /prove-tx response)

Return

Proven transaction hex, or null on failure

Parameters

unprovenTxHex

Same format currently sent to proof server

keysDir

Absolute path to directory with cached proving keys