Expand description
Data loading and witness generation
Structs§
- Iriscode
Circuit AuxData - Auxiliary input data for the Worldcoin iriscode circuit.
- Iriscode
Circuit Input Data - Input data for the Worldcoin iriscode circuit.
Functions§
- build_
iriscode_ circuit_ auxiliary_ data - build_
iriscode_ circuit_ data - Build an instance of IriscodeCircuitInputData from the given image, RH multiplicand, thresholds and wiring data, by deriving the iris code.
- wirings_
to_ reroutings - Wirings are a Vec of 4-tuples of u16s; each tuple maps a coordinate of the source matrix to a coordinate of
the destination matrix. This function returns the corresponding Vec of 2-tuples of
usize, which are the re-routings of the 1d MLEs.
Input order is
(src_row_idx, src_col_idx, dest_row_idx, dest_col_idx). Output order is(dest_idx, src_idx)(to match [remainder::layer::identity_gate::IdentityGate]).