pub type ParamsVerifierKZG<C> = ParamsKZG<C>;
Expand description
KZG multi-open verification parameters
Aliased Type§
struct ParamsVerifierKZG<C> { /* private fields */ }
Implementations
Source§impl<E: Engine + Debug> ParamsKZG<E>
impl<E: Engine + Debug> ParamsKZG<E>
Sourcepub fn setup<R: RngCore>(k: u32, rng: R) -> Self
pub fn setup<R: RngCore>(k: u32, rng: R) -> Self
Initializes parameters for the curve, draws toxic secret from given rng. MUST NOT be used in production.
Sourcepub fn from_parts(
&self,
k: u32,
g: Vec<E::G1Affine>,
g_lagrange: Option<Vec<E::G1Affine>>,
g2: E::G2Affine,
s_g2: E::G2Affine,
) -> Self
pub fn from_parts( &self, k: u32, g: Vec<E::G1Affine>, g_lagrange: Option<Vec<E::G1Affine>>, g2: E::G2Affine, s_g2: E::G2Affine, ) -> Self
Initializes parameters for the curve through existing parameters k, g, g_lagrange (optional), g2, s_g2
Sourcepub fn write_custom<W: Write>(
&self,
writer: &mut W,
format: SerdeFormat,
) -> Result<()>
pub fn write_custom<W: Write>( &self, writer: &mut W, format: SerdeFormat, ) -> Result<()>
Writes parameters to buffer
Sourcepub fn read_custom<R: Read>(reader: &mut R, format: SerdeFormat) -> Result<Self>
pub fn read_custom<R: Read>(reader: &mut R, format: SerdeFormat) -> Result<Self>
Reads params from a buffer.
Trait Implementations
Source§impl<'params, E: Engine + Debug> Params<'params, <E as Engine>::G1Affine> for ParamsKZG<E>
impl<'params, E: Engine + Debug> Params<'params, <E as Engine>::G1Affine> for ParamsKZG<E>
Source§fn empty_msm(&'params self) -> MSMKZG<E>
fn empty_msm(&'params self) -> MSMKZG<E>
Generates an empty multiscalar multiplication struct using the
appropriate params.
Source§fn commit_lagrange(
&self,
poly: &Polynomial<E::Fr, LagrangeCoeff>,
_: Blind<E::Fr>,
) -> E::G1
fn commit_lagrange( &self, poly: &Polynomial<E::Fr, LagrangeCoeff>, _: Blind<E::Fr>, ) -> E::G1
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
.Source§impl<'params, E: Engine + Debug> ParamsProver<'params, <E as Engine>::G1Affine> for ParamsKZG<E>
impl<'params, E: Engine + Debug> ParamsProver<'params, <E as Engine>::G1Affine> for ParamsKZG<E>
Source§type ParamsVerifier = ParamsKZG<E>
type ParamsVerifier = ParamsKZG<E>
Constant verifier parameters.
Source§fn verifier_params(&'params self) -> &'params Self::ParamsVerifier
fn verifier_params(&'params self) -> &'params Self::ParamsVerifier
Returns verification parameters.