Expand description
This module implements Dlog-based polynomial commitment schema. The following functionality is implemented
- Commit to polynomial with its max degree
- Open polynomial commitment batch at the given evaluation point and scaling factor scalar producing the batched opening proof
- Verify batch of batched opening proofs
Re-exportsยง
use alloc::vec;๐use alloc::vec;๐use alloc::vec::Vec;๐use ark_ec::models::short_weierstrass::Affine as SWJAffine;๐use ark_ec::short_weierstrass::SWCurveConfig;๐use ark_ec::AffineRepr;๐use ark_ec::CurveGroup;๐use ark_ec::VariableBaseMSM;๐use ark_ff::BigInteger;๐use ark_ff::Field;๐use ark_ff::One;๐use ark_ff::PrimeField;๐use ark_ff::Zero;๐use ark_poly::univariate::DensePolynomial;๐use ark_serialize::CanonicalDeserialize;๐use ark_serialize::CanonicalSerialize;๐use core::iter::Iterator;๐use core::marker::PhantomData;๐use core::ops::Add;๐use core::ops::AddAssign;๐use core::ops::Sub;๐use groupmap::BWParameters;๐use groupmap::GroupMap;๐use mina_poseidon::sponge::ScalarChallenge;๐use mina_poseidon::FqSponge;๐use o1_utils::field_helpers::product;๐use o1_utils::ExtendedDensePolynomial as _;๐use serde::de::Visitor;๐use serde::Deserialize;๐use serde::Deserialize;๐use serde::Serialize;๐use serde::Serialize;๐use serde_with::de::DeserializeAsWrap;๐use serde_with::ser::SerializeAsWrap;๐use serde_with::serde_as;๐use serde_with::DeserializeAs;๐use serde_with::SerializeAs;๐use rayon::prelude::*;๐
Modulesยง
Structsยง
- Batch
Evaluation Proof - Contains the batch evaluation
- Blinded
Commitment - A commitment to a polynomial with some blinding factors.
- Evaluation
- Contains the evaluation of a polynomial commitment at a set of points.
- Poly
Comm - Represent a polynomial commitment when the type is instantiated with a curve.
Traitsยง
- Commitment
Curve - A useful trait extending [
AffineRepr] for commitments. - Endo
Curve - A trait extending
CommitmentCurvefor endomorphisms.
Functionsยง
- absorb_
commitment - b_poly
- Evaluates the challenge polynomial
b(X)at pointx. - b_
poly_ coefficients - Computes the coefficients of the challenge polynomial
b(X). - combine_
commitments - Populates the parameters
scalarsandpoints. - combined_
inner_ product - Computes the linearization of evaluations.
- shift_
scalar - Inside the circuit, we have a specialized scalar multiplication which computes either
- squeeze_
challenge - squeeze_
prechallenge