Struct sigma_fun::CompactProof
source · pub struct CompactProof<S: Sigma> {
pub challenge: GenericArray<u8, S::ChallengeLength>,
pub response: S::Response,
}
Expand description
A proof produced by FiatShamir
.
It is called “compact” becasue it includes the challenge instead of all the announcements. It is advantageous to include the announcements instead if you are implementing batch verification for the underlying group’s Sigma protocol but this isn’t implemented yet.
Fields§
§challenge: GenericArray<u8, S::ChallengeLength>
C
response: S::Response
R
Trait Implementations§
source§impl<S: Clone + Sigma> Clone for CompactProof<S>
impl<S: Clone + Sigma> Clone for CompactProof<S>
source§fn clone(&self) -> CompactProof<S>
fn clone(&self) -> CompactProof<S>
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, S: Sigma> Deserialize<'de> for CompactProof<S>where
S::Response: Deserialize<'de>,
impl<'de, S: Sigma> Deserialize<'de> for CompactProof<S>where
S::Response: Deserialize<'de>,
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<S: PartialEq + Sigma> PartialEq for CompactProof<S>
impl<S: PartialEq + Sigma> PartialEq for CompactProof<S>
source§fn eq(&self, other: &CompactProof<S>) -> bool
fn eq(&self, other: &CompactProof<S>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<S: Sigma> Serialize for CompactProof<S>
impl<S: Sigma> Serialize for CompactProof<S>
impl<S: Sigma> StructuralPartialEq for CompactProof<S>
Auto Trait Implementations§
impl<S> RefUnwindSafe for CompactProof<S>where
<<S as Sigma>::ChallengeLength as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
<S as Sigma>::Response: RefUnwindSafe,
impl<S> Send for CompactProof<S>
impl<S> Sync for CompactProof<S>
impl<S> Unpin for CompactProof<S>where
<<S as Sigma>::ChallengeLength as ArrayLength<u8>>::ArrayType: Unpin,
<S as Sigma>::Response: Unpin,
impl<S> UnwindSafe for CompactProof<S>where
<<S as Sigma>::ChallengeLength as ArrayLength<u8>>::ArrayType: UnwindSafe,
<S as Sigma>::Response: 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