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::ResponseR
Trait Implementations§
source§impl<S: Clone + Sigma> Clone for CompactProof<S>where
S::ChallengeLength: Clone,
S::Response: Clone,
impl<S: Clone + Sigma> Clone for CompactProof<S>where
S::ChallengeLength: Clone,
S::Response: Clone,
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<S: Debug + Sigma> Debug for CompactProof<S>where
S::ChallengeLength: Debug,
S::Response: Debug,
impl<S: Debug + Sigma> Debug for CompactProof<S>where
S::ChallengeLength: Debug,
S::Response: Debug,
source§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