Struct proof_of_sql::proof_primitive::dory::DoryCommitment
source · pub struct DoryCommitment(/* private fields */);
Expand description
The Dory commitment type.
Trait Implementations§
source§impl AddAssign for DoryCommitment
impl AddAssign for DoryCommitment
source§fn add_assign(&mut self, rhs: DoryCommitment)
fn add_assign(&mut self, rhs: DoryCommitment)
Performs the
+=
operation. Read moresource§impl CanonicalDeserialize for DoryCommitment
impl CanonicalDeserialize for DoryCommitment
source§fn deserialize_with_mode<R: Read>(
reader: R,
compress: Compress,
validate: Validate,
) -> Result<Self, SerializationError>
fn deserialize_with_mode<R: Read>( reader: R, compress: Compress, validate: Validate, ) -> Result<Self, SerializationError>
The general deserialize method that takes in customization flags.
fn deserialize_compressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_compressed_unchecked<R>(
reader: R,
) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed_unchecked<R>(
reader: R,
) -> Result<Self, SerializationError>where
R: Read,
source§impl CanonicalSerialize for DoryCommitment
impl CanonicalSerialize for DoryCommitment
source§fn serialize_with_mode<W: Write>(
&self,
writer: W,
compress: Compress,
) -> Result<(), SerializationError>
fn serialize_with_mode<W: Write>( &self, writer: W, compress: Compress, ) -> Result<(), SerializationError>
The general serialize method that takes in customization flags.
fn serialized_size(&self, compress: Compress) -> usize
fn serialize_compressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn compressed_size(&self) -> usize
fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn uncompressed_size(&self) -> usize
source§impl Clone for DoryCommitment
impl Clone for DoryCommitment
source§fn clone(&self) -> DoryCommitment
fn clone(&self) -> DoryCommitment
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 Commitment for DoryCommitment
impl Commitment for DoryCommitment
§type Scalar = MontScalar<FrConfig>
type Scalar = MontScalar<FrConfig>
The associated scalar that the commitment is for.
There are multiple possible commitment schemes for a scalar, but only one scalar for any commitment.
§type PublicSetup = DoryProverPublicSetup
type PublicSetup = DoryProverPublicSetup
The public setup for the commitment scheme.
source§fn compute_commitments(
commitments: &mut [Self],
committable_columns: &[CommittableColumn<'_>],
offset: usize,
setup: &Self::PublicSetup,
)
fn compute_commitments( commitments: &mut [Self], committable_columns: &[CommittableColumn<'_>], offset: usize, setup: &Self::PublicSetup, )
Compute the commitments for the given columns.
source§fn fold_commitments(commitments: &[Self], multipliers: &[Self::Scalar]) -> Self
fn fold_commitments(commitments: &[Self], multipliers: &[Self::Scalar]) -> Self
Compute a linear combination of the given commitments:
sum commitment[i] * multiplier[i]
.source§impl Debug for DoryCommitment
impl Debug for DoryCommitment
source§impl Default for DoryCommitment
impl Default for DoryCommitment
The default for GT is the the additive identity, but should be the multiplicative identity.
source§impl<'de> Deserialize<'de> for DoryCommitment
impl<'de> Deserialize<'de> for DoryCommitment
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> Mul<&'a DoryCommitment> for DoryScalar
impl<'a> Mul<&'a DoryCommitment> for DoryScalar
§type Output = DoryCommitment
type Output = DoryCommitment
The resulting type after applying the
*
operator.source§impl Mul<DoryCommitment> for DoryScalar
impl Mul<DoryCommitment> for DoryScalar
§type Output = DoryCommitment
type Output = DoryCommitment
The resulting type after applying the
*
operator.source§impl Neg for DoryCommitment
impl Neg for DoryCommitment
§type Output = DoryCommitment
type Output = DoryCommitment
The resulting type after applying the
-
operator.source§fn neg(self) -> DoryCommitment
fn neg(self) -> DoryCommitment
Performs the unary
-
operation. Read moresource§impl PartialEq for DoryCommitment
impl PartialEq for DoryCommitment
source§fn eq(&self, other: &DoryCommitment) -> bool
fn eq(&self, other: &DoryCommitment) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DoryCommitment
impl Serialize for DoryCommitment
source§impl Sub for DoryCommitment
impl Sub for DoryCommitment
§type Output = DoryCommitment
type Output = DoryCommitment
The resulting type after applying the
-
operator.source§fn sub(self, rhs: DoryCommitment) -> DoryCommitment
fn sub(self, rhs: DoryCommitment) -> DoryCommitment
Performs the
-
operation. Read moresource§impl SubAssign for DoryCommitment
impl SubAssign for DoryCommitment
source§fn sub_assign(&mut self, rhs: DoryCommitment)
fn sub_assign(&mut self, rhs: DoryCommitment)
Performs the
-=
operation. Read moresource§impl TransparentWrapper<PairingOutput<Bls12<Config>>> for DoryCommitment
impl TransparentWrapper<PairingOutput<Bls12<Config>>> for DoryCommitment
source§fn wrap_ref(s: &Inner) -> &Self
fn wrap_ref(s: &Inner) -> &Self
Convert a reference to the inner type into a reference to the wrapper
type.
source§fn wrap_mut(s: &mut Inner) -> &mut Self
fn wrap_mut(s: &mut Inner) -> &mut Self
Convert a mutable reference to the inner type into a mutable reference to
the wrapper type.
source§fn wrap_slice(s: &[Inner]) -> &[Self]where
Self: Sized,
fn wrap_slice(s: &[Inner]) -> &[Self]where
Self: Sized,
Convert a slice to the inner type into a slice to the wrapper type.
source§fn wrap_slice_mut(s: &mut [Inner]) -> &mut [Self]where
Self: Sized,
fn wrap_slice_mut(s: &mut [Inner]) -> &mut [Self]where
Self: Sized,
Convert a mutable slice to the inner type into a mutable slice to the
wrapper type.
source§fn peel_ref(s: &Self) -> &Inner
fn peel_ref(s: &Self) -> &Inner
Convert a reference to the wrapper type into a reference to the inner
type.
source§fn peel_mut(s: &mut Self) -> &mut Inner
fn peel_mut(s: &mut Self) -> &mut Inner
Convert a mutable reference to the wrapper type into a mutable reference
to the inner type.
source§impl Valid for DoryCommitment
impl Valid for DoryCommitment
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>(
batch: impl Iterator<Item = &'a Self> + Send,
) -> Result<(), SerializationError>where
Self: 'a,
impl Copy for DoryCommitment
impl Eq for DoryCommitment
impl StructuralPartialEq for DoryCommitment
Auto Trait Implementations§
impl Freeze for DoryCommitment
impl RefUnwindSafe for DoryCommitment
impl Send for DoryCommitment
impl Sync for DoryCommitment
impl Unpin for DoryCommitment
impl UnwindSafe for DoryCommitment
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
source§impl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
impl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
fn hash<H>(&self) -> GenericArray<u8, <H as OutputSizeUser>::OutputSize>where
H: Digest,
fn hash_uncompressed<H>(
&self,
) -> GenericArray<u8, <H as OutputSizeUser>::OutputSize>where
H: Digest,
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
source§impl<I, T> TransparentWrapperAlloc<I> for T
impl<I, T> TransparentWrapperAlloc<I> for T
source§fn wrap_vec(s: Vec<Inner>) -> Vec<Self>where
Self: Sized,
fn wrap_vec(s: Vec<Inner>) -> Vec<Self>where
Self: Sized,
Convert a vec of the inner type into a vec of the wrapper type.
source§fn wrap_box(s: Box<Inner>) -> Box<Self>
fn wrap_box(s: Box<Inner>) -> Box<Self>
Convert a box to the inner type into a box to the wrapper
type.
source§fn wrap_rc(s: Rc<Inner>) -> Rc<Self>
fn wrap_rc(s: Rc<Inner>) -> Rc<Self>
Convert an
Rc
to the inner type into an Rc
to the wrapper type.source§fn wrap_arc(s: Arc<Inner>) -> Arc<Self>
fn wrap_arc(s: Arc<Inner>) -> Arc<Self>
Convert an
Arc
to the inner type into an Arc
to the wrapper type.source§fn peel_vec(s: Vec<Self>) -> Vec<Inner>where
Self: Sized,
fn peel_vec(s: Vec<Self>) -> Vec<Inner>where
Self: Sized,
Convert a vec of the wrapper type into a vec of the inner type.
source§fn peel_box(s: Box<Self>) -> Box<Inner>
fn peel_box(s: Box<Self>) -> Box<Inner>
Convert a box to the wrapper type into a box to the inner
type.