[−][src]Struct sigma_fun::EqAll
Combinator for proving any number of statements of the same kind have the same witness.
Implementations
impl<S, N> EqAll<N, S>
[src]
Trait Implementations
impl<N: Clone, S: Clone> Clone for EqAll<N, S>
[src]
impl<N: Debug, S: Debug> Debug for EqAll<N, S>
[src]
impl<N: Default, S: Default> Default for EqAll<N, S>
[src]
impl<N, S> Display for EqAll<N, S> where
EqAll<N, S>: Sigma,
[src]
EqAll<N, S>: Sigma,
impl<N: PartialEq, S: PartialEq> PartialEq<EqAll<N, S>> for EqAll<N, S>
[src]
pub fn eq(&self, other: &EqAll<N, S>) -> bool
[src]
pub fn ne(&self, other: &EqAll<N, S>) -> bool
[src]
impl<N: Unsigned, S: Sigma> Sigma for EqAll<N, S>
[src]
type Witness = S::Witness
The witness for the relation.
type Statement = Vec<S::Statement>
The elements of the statement the prover is proving.
type AnnounceSecret = S::AnnounceSecret
The type for the secret the prover creates when generating the proof.
type Announcement = Vec<S::Announcement>
The type for the public announcement the prover sends in the first round of the protocol.
type Response = S::Response
The type for the response the prover sends in the last round of the protocol.
type ChallengeLength = S::ChallengeLength
pub fn respond(
&self,
witness: &Self::Witness,
statement: &Self::Statement,
announce_secret: Self::AnnounceSecret,
announce: &Self::Announcement,
challenge: &GenericArray<u8, Self::ChallengeLength>
) -> Self::Response
[src]
&self,
witness: &Self::Witness,
statement: &Self::Statement,
announce_secret: Self::AnnounceSecret,
announce: &Self::Announcement,
challenge: &GenericArray<u8, Self::ChallengeLength>
) -> Self::Response
pub fn gen_announce_secret<Rng: CryptoRng + RngCore>(
&self,
witness: &Self::Witness,
rng: &mut Rng
) -> Self::AnnounceSecret
[src]
&self,
witness: &Self::Witness,
rng: &mut Rng
) -> Self::AnnounceSecret
pub fn announce(
&self,
statement: &Self::Statement,
announce_secret: &Self::AnnounceSecret
) -> Self::Announcement
[src]
&self,
statement: &Self::Statement,
announce_secret: &Self::AnnounceSecret
) -> Self::Announcement
pub fn sample_response<Rng: CryptoRng + RngCore>(
&self,
rng: &mut Rng
) -> Self::Response
[src]
&self,
rng: &mut Rng
) -> Self::Response
pub fn implied_announcement(
&self,
statements: &Self::Statement,
challenge: &GenericArray<u8, Self::ChallengeLength>,
response: &Self::Response
) -> Option<Self::Announcement>
[src]
&self,
statements: &Self::Statement,
challenge: &GenericArray<u8, Self::ChallengeLength>,
response: &Self::Response
) -> Option<Self::Announcement>
pub fn write_name<W: Write>(&self, w: &mut W) -> Result
[src]
pub fn hash_statement<H: Update>(
&self,
hash: &mut H,
statements: &Self::Statement
)
[src]
&self,
hash: &mut H,
statements: &Self::Statement
)
pub fn hash_announcement<H: Update>(
&self,
hash: &mut H,
announcements: &Self::Announcement
)
[src]
&self,
hash: &mut H,
announcements: &Self::Announcement
)
pub fn hash_witness<H: Update>(&self, hash: &mut H, witness: &Self::Witness)
[src]
impl<N, S> StructuralPartialEq for EqAll<N, S>
[src]
Auto Trait Implementations
impl<N, S> RefUnwindSafe for EqAll<N, S> where
N: RefUnwindSafe,
S: RefUnwindSafe,
[src]
N: RefUnwindSafe,
S: RefUnwindSafe,
impl<N, S> Send for EqAll<N, S> where
N: Send,
S: Send,
[src]
N: Send,
S: Send,
impl<N, S> Sync for EqAll<N, S> where
N: Sync,
S: Sync,
[src]
N: Sync,
S: Sync,
impl<N, S> Unpin for EqAll<N, S> where
N: Unpin,
S: Unpin,
[src]
N: Unpin,
S: Unpin,
impl<N, S> UnwindSafe for EqAll<N, S> where
N: UnwindSafe,
S: UnwindSafe,
[src]
N: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Mark for T
[src]
#[must_use]pub fn mark<M>(self) -> <M as ChangeMark<T>>::Out where
M: ChangeMark<T>,
[src]
M: ChangeMark<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,