Proof Verification can be only performed with Proof Generation.
How to use?
Follow instructions for Proof Generation, but selectPROOF_VERIFICATION_ON_L1
as result
.
After proof is verified, you can call bool isCairoFactValid(bytes32 fact_hash, bool is_mocked)
function on Satellite contract.
You can also set mockFactHash
to omit actual proof verification on-chain, reducing the cost for testing purposes.
Calculating fact hash
On EVM chains, fact hash is calculated fromprogramHash
and output
array in the following way: