/// Circuits and gadgets shared across the different folding schemes. use ark_ec::{AffineRepr, CurveGroup}; use ark_ff::Field; pub mod nonnative; pub mod sum_check; pub mod utils; /// CF1 represents the ConstraintField used for the main folding circuit which is over E1::Fr, where /// E1 is the main curve where we do the folding. pub type CF1 = <::Affine as AffineRepr>::ScalarField; /// CF2 represents the ConstraintField used for the CycleFold circuit which is over E2::Fr=E1::Fq, /// where E2 is the auxiliary curve (from [CycleFold](https://eprint.iacr.org/2023/1192.pdf) /// approach) where we check the folding of the commitments (elliptic curve points). pub type CF2 = <::BaseField as Field>::BasePrimeField;