pub struct Sigma1Proof<G1, G2, F> {
pub a1: G2,
pub a2: G1,
pub z1: F,
pub z2: F,
pub z3: F,
}Expand description
Σ-protocol 1: proves E2 and y_com commit to the same y.
Fields§
§a1: G2§a2: G1§z1: F§z2: F§z3: FTrait Implementations§
Source§impl CanonicalDeserialize for Sigma1Proof<ArkG1, ArkG2, ArkFr>
impl CanonicalDeserialize for Sigma1Proof<ArkG1, ArkG2, ArkFr>
Source§fn deserialize_with_mode<R: Read>(
r: R,
c: Compress,
v: Validate,
) -> Result<Self, SerializationError>
fn deserialize_with_mode<R: Read>( r: R, c: Compress, v: 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 Sigma1Proof<ArkG1, ArkG2, ArkFr>
impl CanonicalSerialize for Sigma1Proof<ArkG1, ArkG2, ArkFr>
Source§fn serialize_with_mode<W: Write>(
&self,
w: W,
c: Compress,
) -> Result<(), SerializationError>
fn serialize_with_mode<W: Write>( &self, w: W, c: Compress, ) -> Result<(), SerializationError>
The general serialize method that takes in customization flags.
fn serialized_size(&self, c: 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<G1: Clone, G2: Clone, F: Clone> Clone for Sigma1Proof<G1, G2, F>
impl<G1: Clone, G2: Clone, F: Clone> Clone for Sigma1Proof<G1, G2, F>
Source§fn clone(&self) -> Sigma1Proof<G1, G2, F>
fn clone(&self) -> Sigma1Proof<G1, G2, F>
Returns a duplicate 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 Valid for Sigma1Proof<ArkG1, ArkG2, ArkFr>
impl Valid for Sigma1Proof<ArkG1, ArkG2, ArkFr>
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>(
batch: impl Iterator<Item = &'a Self> + Send,
) -> Result<(), SerializationError>where
Self: 'a,
impl<G1, G2, F> StructuralPartialEq for Sigma1Proof<G1, G2, F>
Auto Trait Implementations§
impl<G1, G2, F> Freeze for Sigma1Proof<G1, G2, F>
impl<G1, G2, F> RefUnwindSafe for Sigma1Proof<G1, G2, F>
impl<G1, G2, F> Send for Sigma1Proof<G1, G2, F>
impl<G1, G2, F> Sync for Sigma1Proof<G1, G2, F>
impl<G1, G2, F> Unpin for Sigma1Proof<G1, G2, F>
impl<G1, G2, F> UnsafeUnpin for Sigma1Proof<G1, G2, F>
impl<G1, G2, F> UnwindSafe for Sigma1Proof<G1, G2, F>
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<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