Skip to main content

Module commitment

Module commitment 

Source
Expand description

This module implements Dlog-based polynomial commitment schema. The following functionality is implemented

  1. Commit to polynomial with its max degree
  2. Open polynomial commitment batch at the given evaluation point and scaling factor scalar producing the batched opening proof
  3. 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ยง

caml

Structsยง

BatchEvaluationProof
Contains the batch evaluation
BlindedCommitment
A commitment to a polynomial with some blinding factors.
Evaluation
Contains the evaluation of a polynomial commitment at a set of points.
PolyComm
Represent a polynomial commitment when the type is instantiated with a curve.

Traitsยง

CommitmentCurve
A useful trait extending [AffineRepr] for commitments.
EndoCurve
A trait extending CommitmentCurve for endomorphisms.

Functionsยง

absorb_commitment
b_poly
Evaluates the challenge polynomial b(X) at point x.
b_poly_coefficients
Computes the coefficients of the challenge polynomial b(X).
combine_commitments
Populates the parameters scalars and points.
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