Struct saffron::commitment::Commitment
source · pub struct Commitment<G: CommitmentCurve> {
pub chunks: Vec<PolyComm<G>>,
pub alpha: G::ScalarField,
pub folded: PolyComm<G>,
}
Fields§
§chunks: Vec<PolyComm<G>>
§alpha: G::ScalarField
§folded: PolyComm<G>
Implementations§
source§impl<G: KimchiCurve> Commitment<G>
impl<G: KimchiCurve> Commitment<G>
pub fn from_chunks<EFqSponge>( chunks: Vec<PolyComm<G>>, sponge: &mut EFqSponge ) -> Selfwhere EFqSponge: FqSponge<G::BaseField, G, G::ScalarField>,
pub fn update<EFqSponge>( &self, diff: Vec<PolyComm<G>>, sponge: &mut EFqSponge ) -> Selfwhere EFqSponge: FqSponge<G::BaseField, G, G::ScalarField>,
Trait Implementations§
source§impl<G: Clone + CommitmentCurve> Clone for Commitment<G>where
G::ScalarField: Clone,
impl<G: Clone + CommitmentCurve> Clone for Commitment<G>where G::ScalarField: Clone,
source§fn clone(&self) -> Commitment<G>
fn clone(&self) -> Commitment<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<'de, G: CommitmentCurve> Deserialize<'de> for Commitment<G>where
G::ScalarField: CanonicalDeserialize + CanonicalSerialize,
impl<'de, G: CommitmentCurve> Deserialize<'de> for Commitment<G>where G::ScalarField: CanonicalDeserialize + CanonicalSerialize,
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: PartialEq + CommitmentCurve> PartialEq<Commitment<G>> for Commitment<G>where
G::ScalarField: PartialEq,
impl<G: PartialEq + CommitmentCurve> PartialEq<Commitment<G>> for Commitment<G>where G::ScalarField: PartialEq,
source§fn eq(&self, other: &Commitment<G>) -> bool
fn eq(&self, other: &Commitment<G>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<G: CommitmentCurve> Serialize for Commitment<G>where
G::ScalarField: CanonicalDeserialize + CanonicalSerialize,
impl<G: CommitmentCurve> Serialize for Commitment<G>where G::ScalarField: CanonicalDeserialize + CanonicalSerialize,
impl<G: CommitmentCurve> StructuralPartialEq for Commitment<G>
Auto Trait Implementations§
impl<G> RefUnwindSafe for Commitment<G>where G: RefUnwindSafe, <G as AffineRepr>::ScalarField: RefUnwindSafe,
impl<G> Send for Commitment<G>
impl<G> Sync for Commitment<G>
impl<G> Unpin for Commitment<G>where G: Unpin, <G as AffineRepr>::ScalarField: Unpin,
impl<G> UnwindSafe for Commitment<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