`StepCircuit` trait
Check Step Circuit first.
Also, due to the support of the halo2 ecosystem, you can learn more Circuit development from the halo2 book.
Trait
const ARITY: usize
- Each step of `IVC` structhas an input and an output (z_in
,z_out
), this parameter determines the size of this input.type Config
- This type stores information about which columns and challenges we need for the circuit.fn configure
- The function should create Config, as well as create all gates. Gadgets and chips from halo2 can be reused in this method.fn synthesize_step
- Directly synthesize the witness, at this stage the PLONKish table must be filled in usingLayouter
.fn process_step
(optional for implementation) - This function must do the sameF(z_in) -> z_out
assynthesize_step
. Due to some restrictions, we must supply as one of the public inputs (instance column) inside the folding scheme a hash that depends onz_out
. By default, this method is done through thesynthesize_step
call, however, if the synthesis is long, it is possible to optimize it through a manual implementation in the off-circuit mode.
Last updated