Trait halo2_proofs::poly::commitment::Params
source · pub trait Params<C>: Sized + Clone + Debugwhere
C: CurveAffine,{
// Required methods
fn k(&self) -> u32;
fn n(&self) -> u64;
fn downsize(&mut self, k: u32);
fn commit_lagrange(
&self,
engine: &impl MsmAccel<C>,
poly: &Polynomial<<C as CurveAffine>::ScalarExt, LagrangeCoeff>,
r: Blind<<C as CurveAffine>::ScalarExt>
) -> <C as CurveAffine>::CurveExt;
fn write<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write;
fn read<R>(reader: &mut R) -> Result<Self, Error>
where R: Read;
}
Expand description
Common for Verifier and Prover.
Parameters for circuit synthesis and prover parameters.
Required Methods§
sourcefn commit_lagrange(
&self,
engine: &impl MsmAccel<C>,
poly: &Polynomial<<C as CurveAffine>::ScalarExt, LagrangeCoeff>,
r: Blind<<C as CurveAffine>::ScalarExt>
) -> <C as CurveAffine>::CurveExt
fn commit_lagrange( &self, engine: &impl MsmAccel<C>, poly: &Polynomial<<C as CurveAffine>::ScalarExt, LagrangeCoeff>, r: Blind<<C as CurveAffine>::ScalarExt> ) -> <C as CurveAffine>::CurveExt
This commits to a polynomial using its evaluations over the $2^k$ size
evaluation domain. The commitment will be blinded by the blinding factor
r
.
Object Safety§
This trait is not object safe.