Trait halo2_proofs::poly::commitment::ParamsProver
source · [−]pub trait ParamsProver<'params, C: CurveAffine>: Params<'params, C> {
type ParamsVerifier: ParamsVerifier<'params, C>;
fn new(k: u32) -> Self;
fn commit(
&self,
poly: &Polynomial<C::ScalarExt, Coeff>,
r: Blind<C::ScalarExt>
) -> C::CurveExt;
fn get_g(&self) -> &[C]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
;
fn verifier_params(&'params self) -> &'params Self::ParamsVerifier;
}
Expand description
Parameters for circuit sysnthesis and prover parameters.
Required Associated Types
sourcetype ParamsVerifier: ParamsVerifier<'params, C>
type ParamsVerifier: ParamsVerifier<'params, C>
Constant verifier parameters.
Required Methods
sourcefn commit(
&self,
poly: &Polynomial<C::ScalarExt, Coeff>,
r: Blind<C::ScalarExt>
) -> C::CurveExt
fn commit(
&self,
poly: &Polynomial<C::ScalarExt, Coeff>,
r: Blind<C::ScalarExt>
) -> C::CurveExt
This computes a commitment to a polynomial described by the provided
slice of coefficients. The commitment may be blinded by the blinding
factor r
.
sourcefn get_g(&self) -> &[C]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
fn get_g(&self) -> &[C]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
Getter for g generators
sourcefn verifier_params(&'params self) -> &'params Self::ParamsVerifier
fn verifier_params(&'params self) -> &'params Self::ParamsVerifier
Returns verification parameters.