Compiling & Proving
Interact with the proving service for your Brevis app.
Last updated
Interact with the proving service for your Brevis app.
Last updated
We recommend to host your circuit as a separate process as it can take up much more computing resource than typical web servers.
The fastest way to spin up a prover is to use the prover service module in the Go SDK. prover.NewService
automatically compiles your circuit and sets up proving/verifying keys if your circuit changes or if it's your first time compiling. Read more about .
Note that this step is not needed if your application is partnered with a Brevis prover that serves off-chain requests.
If you receive ERROR_INVALID_INPUT, check your data against to see if any data exceeds the limits.
Call BrevisRequest.sendRequest()
with the id acquired from brevisRes
and the fee (in native token).
Since Brevis calls your app contract's when the final proof is submitted, you can listen to your app contract's event. Or, you could use the built-in function to wait for the final transaction submission.