halo2_ecc::fields::fp

Type Alias BaseFieldChip

Source
pub type BaseFieldChip<'range, C> = FpChip<'range, <C as CurveAffine>::ScalarExt, <C as CurveAffine>::Base>;

Aliased Type§

struct BaseFieldChip<'range, C> {
    pub range: &'range RangeChip<<C as CurveAffine>::ScalarExt>,
    pub limb_bits: usize,
    pub num_limbs: usize,
    pub num_limbs_bits: usize,
    pub num_limbs_log2_ceil: usize,
    pub limb_bases: Vec<<C as CurveAffine>::ScalarExt>,
    pub limb_base_big: BigInt,
    pub limb_mask: BigUint,
    pub p: BigInt,
    pub p_limbs: Vec<<C as CurveAffine>::ScalarExt>,
    pub p_native: <C as CurveAffine>::ScalarExt,
    pub native_modulus: BigUint,
    /* private fields */
}

Fields§

§range: &'range RangeChip<<C as CurveAffine>::ScalarExt>§limb_bits: usize§num_limbs: usize§num_limbs_bits: usize§num_limbs_log2_ceil: usize§limb_bases: Vec<<C as CurveAffine>::ScalarExt>§limb_base_big: BigInt§limb_mask: BigUint§p: BigInt§p_limbs: Vec<<C as CurveAffine>::ScalarExt>§p_native: <C as CurveAffine>::ScalarExt§native_modulus: BigUint