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
Source§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.
Source§type PublicSetup<'a> = DoryProverPublicSetup<'a>
type PublicSetup<'a> = DoryProverPublicSetup<'a>
The public setup for the commitment scheme.
Source§fn compute_commitments(
committable_columns: &[CommittableColumn<'_>],
offset: usize,
setup: &Self::PublicSetup<'_>,
) -> Vec<Self>
fn compute_commitments( committable_columns: &[CommittableColumn<'_>], offset: usize, setup: &Self::PublicSetup<'_>, ) -> Vec<Self>
Compute the commitments for the given columns. Read more
Source§fn append_to_transcript(&self, transcript: &mut impl Transcript)
fn append_to_transcript(&self, transcript: &mut impl Transcript)
Appends the commitment to the given transcript. Read more
Source§impl Debug for DoryCommitment
impl Debug for DoryCommitment
Source§impl Default for DoryCommitment
The default for GT is the the additive identity, but should be the multiplicative identity.
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
Source§type Output = DoryCommitment
type Output = DoryCommitment
The resulting type after applying the
*
operator.Source§impl Mul<DoryCommitment> for DoryScalar
impl Mul<DoryCommitment> for DoryScalar
Source§type Output = DoryCommitment
type Output = DoryCommitment
The resulting type after applying the
*
operator.Source§impl Neg for DoryCommitment
impl Neg for DoryCommitment
Source§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§impl Serialize for DoryCommitment
impl Serialize for DoryCommitment
Source§impl Sub for DoryCommitment
impl Sub for DoryCommitment
Source§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 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more