pub struct OpeningProof<G: AffineRepr> {
pub lr: Vec<(G, G)>,
pub delta: G,
pub z1: G::ScalarField,
pub z2: G::ScalarField,
pub sg: G,
}
Fields§
§lr: Vec<(G, G)>
Vector of rounds of L & R commitments
delta: G
§z1: G::ScalarField
§z2: G::ScalarField
§sg: G
A final folded commitment base
Implementations§
Source§impl<G: AffineRepr> OpeningProof<G>
impl<G: AffineRepr> OpeningProof<G>
Sourcepub fn prechallenges<EFqSponge: FqSponge<G::BaseField, G, G::ScalarField>>(
&self,
sponge: &mut EFqSponge,
) -> Vec<ScalarChallenge<G::ScalarField>>
pub fn prechallenges<EFqSponge: FqSponge<G::BaseField, G, G::ScalarField>>( &self, sponge: &mut EFqSponge, ) -> Vec<ScalarChallenge<G::ScalarField>>
Computes a log-sized vector of scalar challenges for recombining elements inside the IPA.
Sourcepub fn challenges<EFqSponge: FqSponge<G::BaseField, G, G::ScalarField>>(
&self,
endo_r: &G::ScalarField,
sponge: &mut EFqSponge,
) -> Challenges<G::ScalarField>
pub fn challenges<EFqSponge: FqSponge<G::BaseField, G, G::ScalarField>>( &self, endo_r: &G::ScalarField, sponge: &mut EFqSponge, ) -> Challenges<G::ScalarField>
Same as prechallenges
, but maps scalar challenges using the
provided endomorphism, and computes their inverses.
Trait Implementations§
Source§impl<G: Clone + AffineRepr> Clone for OpeningProof<G>where
G::ScalarField: Clone,
impl<G: Clone + AffineRepr> Clone for OpeningProof<G>where
G::ScalarField: Clone,
Source§fn clone(&self) -> OpeningProof<G>
fn clone(&self) -> OpeningProof<G>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<G: Default + AffineRepr> Default for OpeningProof<G>where
G::ScalarField: Default,
impl<G: Default + AffineRepr> Default for OpeningProof<G>where
G::ScalarField: Default,
Source§fn default() -> OpeningProof<G>
fn default() -> OpeningProof<G>
Returns the “default value” for a type. Read more
Source§impl<'de, G> Deserialize<'de> for OpeningProof<G>where
G: CanonicalDeserialize + CanonicalSerialize + AffineRepr,
impl<'de, G> Deserialize<'de> for OpeningProof<G>where
G: CanonicalDeserialize + CanonicalSerialize + AffineRepr,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<G, CamlF, CamlG> From<CamlOpeningProof<CamlG, CamlF>> for OpeningProof<G>
impl<G, CamlF, CamlG> From<CamlOpeningProof<CamlG, CamlF>> for OpeningProof<G>
Source§fn from(caml: CamlOpeningProof<CamlG, CamlF>) -> Self
fn from(caml: CamlOpeningProof<CamlG, CamlF>) -> Self
Converts to this type from the input type.
Source§impl<G, CamlF, CamlG> From<OpeningProof<G>> for CamlOpeningProof<CamlG, CamlF>
impl<G, CamlF, CamlG> From<OpeningProof<G>> for CamlOpeningProof<CamlG, CamlF>
Source§fn from(opening_proof: OpeningProof<G>) -> Self
fn from(opening_proof: OpeningProof<G>) -> Self
Converts to this type from the input type.
Source§impl<BaseField: PrimeField, G: AffineRepr<BaseField = BaseField> + CommitmentCurve + EndoCurve> OpenProof<G> for OpeningProof<G>
impl<BaseField: PrimeField, G: AffineRepr<BaseField = BaseField> + CommitmentCurve + EndoCurve> OpenProof<G> for OpeningProof<G>
type SRS = SRS<G>
Source§fn open<EFqSponge, RNG, D: EvaluationDomain<<G as AffineRepr>::ScalarField>>(
srs: &Self::SRS,
group_map: &<G as CommitmentCurve>::Map,
plnms: &'_ [(DensePolynomialOrEvaluations<'_, G::ScalarField, D>, PolyComm<G::ScalarField>)],
elm: &[<G as AffineRepr>::ScalarField],
polyscale: <G as AffineRepr>::ScalarField,
evalscale: <G as AffineRepr>::ScalarField,
sponge: EFqSponge,
rng: &mut RNG,
) -> Self
fn open<EFqSponge, RNG, D: EvaluationDomain<<G as AffineRepr>::ScalarField>>( srs: &Self::SRS, group_map: &<G as CommitmentCurve>::Map, plnms: &'_ [(DensePolynomialOrEvaluations<'_, G::ScalarField, D>, PolyComm<G::ScalarField>)], elm: &[<G as AffineRepr>::ScalarField], polyscale: <G as AffineRepr>::ScalarField, evalscale: <G as AffineRepr>::ScalarField, sponge: EFqSponge, rng: &mut RNG, ) -> Self
Create an opening proof for a batch of polynomials. The parameters are
the following: Read more
Source§impl<G: PartialEq + AffineRepr> PartialEq for OpeningProof<G>where
G::ScalarField: PartialEq,
impl<G: PartialEq + AffineRepr> PartialEq for OpeningProof<G>where
G::ScalarField: PartialEq,
Source§impl<G> Serialize for OpeningProof<G>where
G: CanonicalDeserialize + CanonicalSerialize + AffineRepr,
impl<G> Serialize for OpeningProof<G>where
G: CanonicalDeserialize + CanonicalSerialize + AffineRepr,
impl<G: AffineRepr> StructuralPartialEq for OpeningProof<G>
Auto Trait Implementations§
impl<G> Freeze for OpeningProof<G>
impl<G> RefUnwindSafe for OpeningProof<G>where
G: RefUnwindSafe,
<G as AffineRepr>::ScalarField: RefUnwindSafe,
impl<G> Send for OpeningProof<G>
impl<G> Sync for OpeningProof<G>
impl<G> Unpin for OpeningProof<G>
impl<G> UnwindSafe for OpeningProof<G>where
G: UnwindSafe,
<G as AffineRepr>::ScalarField: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more