Struct saver::setup::ChunkedCommitmentGens
source · pub struct ChunkedCommitmentGens<G: AffineRepr> {
pub G: G,
pub H: G,
}Expand description
Generators used to create commitment key of the chunked commitment
Fields§
§G: G§H: GImplementations§
source§impl<G: AffineRepr> ChunkedCommitmentGens<G>
impl<G: AffineRepr> ChunkedCommitmentGens<G>
Trait Implementations§
source§impl<G: AffineRepr> CanonicalDeserialize for ChunkedCommitmentGens<G>
impl<G: AffineRepr> CanonicalDeserialize for ChunkedCommitmentGens<G>
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<G: AffineRepr> CanonicalSerialize for ChunkedCommitmentGens<G>
impl<G: AffineRepr> CanonicalSerialize for ChunkedCommitmentGens<G>
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<G: Clone + AffineRepr> Clone for ChunkedCommitmentGens<G>
impl<G: Clone + AffineRepr> Clone for ChunkedCommitmentGens<G>
source§fn clone(&self) -> ChunkedCommitmentGens<G>
fn clone(&self) -> ChunkedCommitmentGens<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: Debug + AffineRepr> Debug for ChunkedCommitmentGens<G>
impl<G: Debug + AffineRepr> Debug for ChunkedCommitmentGens<G>
source§impl<'de, G: AffineRepr> Deserialize<'de> for ChunkedCommitmentGens<G>
impl<'de, G: AffineRepr> Deserialize<'de> for ChunkedCommitmentGens<G>
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 + AffineRepr> PartialEq for ChunkedCommitmentGens<G>
impl<G: PartialEq + AffineRepr> PartialEq for ChunkedCommitmentGens<G>
source§fn eq(&self, other: &ChunkedCommitmentGens<G>) -> bool
fn eq(&self, other: &ChunkedCommitmentGens<G>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<G: AffineRepr> Serialize for ChunkedCommitmentGens<G>
impl<G: AffineRepr> Serialize for ChunkedCommitmentGens<G>
source§impl<G: AffineRepr> Valid for ChunkedCommitmentGens<G>
impl<G: AffineRepr> Valid for ChunkedCommitmentGens<G>
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>(
batch: impl Iterator<Item = &'a Self> + Send,
) -> Result<(), SerializationError>where
Self: 'a,
impl<G: Eq + AffineRepr> Eq for ChunkedCommitmentGens<G>
impl<G: AffineRepr> StructuralPartialEq for ChunkedCommitmentGens<G>
Auto Trait Implementations§
impl<G> Freeze for ChunkedCommitmentGens<G>where
G: Freeze,
impl<G> RefUnwindSafe for ChunkedCommitmentGens<G>where
G: RefUnwindSafe,
impl<G> Send for ChunkedCommitmentGens<G>
impl<G> Sync for ChunkedCommitmentGens<G>
impl<G> Unpin for ChunkedCommitmentGens<G>where
G: Unpin,
impl<G> UnwindSafe for ChunkedCommitmentGens<G>where
G: 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
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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