Using Python/Garaga CLI
Using the garaga calldata
command from the CLI, you can generate the calldata needed to verify a proof for the verify_groth16_proof_[curve_name]
.
First, ensure that:
Your circuit is compiled and the verification key
verification_key.json
is createdThe public input file
public.json
and the associated proofproof.json
are created
The call the following command by replacing the parameters with your data:
starkli
usage
starkli
usageUsing the command option --format starkli
, you can directly pipe the generated calldata to starkli
to invoke a transaction on your deployed contract.
The proof must be the last parameter of your contract's method.
Cairo code usage
Use the command option --format array
to generate calldata in array format to be used in your smart-contract tests.
Last updated