Trait halo2_backend::poly::commitment::Params
source · pub trait Params<C: CurveAffine>: Sized + Clone + Debug {
// 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::ScalarExt, LagrangeCoeff>,
r: Blind<C::ScalarExt>
) -> C::CurveExt;
fn write<W: Write>(&self, writer: &mut W) -> Result<()>;
fn read<R: Read>(reader: &mut R) -> Result<Self>;
}
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::ScalarExt, LagrangeCoeff>,
r: Blind<C::ScalarExt>
) -> C::CurveExt
fn commit_lagrange( &self, engine: &impl MsmAccel<C>, poly: &Polynomial<C::ScalarExt, LagrangeCoeff>, r: Blind<C::ScalarExt> ) -> C::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.