[][src]Struct sigma_fun::All

pub struct All<N, S> { /* fields omitted */ }

Combinator for proving all of N statements of the same type is true.

Implementations

impl<S, N> All<N, S>[src]

pub fn new(sigma: S) -> Self[src]

Create a All<N,S> protocol from a Sigma protocol S.

Trait Implementations

impl<N: Clone, S: Clone> Clone for All<N, S>[src]

impl<N: Debug, S: Debug> Debug for All<N, S>[src]

impl<N: Default, S: Default> Default for All<N, S>[src]

impl<S, N> Display for All<S, N> where
    All<S, N>: Sigma
[src]

impl<N: PartialEq, S: PartialEq> PartialEq<All<N, S>> for All<N, S>[src]

impl<N: Unsigned, S: Sigma> Sigma for All<N, S>[src]

type Witness = Vec<S::Witness>

The witness for the relation.

type Statement = Vec<S::Statement>

The elements of the statement the prover is proving.

type AnnounceSecret = Vec<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 = Vec<S::Response>

The type for the response the prover sends in the last round of the protocol.

type ChallengeLength = S::ChallengeLength

The length as a typenum Read more

impl<N, S> StructuralPartialEq for All<N, S>[src]

Auto Trait Implementations

impl<N, S> RefUnwindSafe for All<N, S> where
    N: RefUnwindSafe,
    S: RefUnwindSafe
[src]

impl<N, S> Send for All<N, S> where
    N: Send,
    S: Send
[src]

impl<N, S> Sync for All<N, S> where
    N: Sync,
    S: Sync
[src]

impl<N, S> Unpin for All<N, S> where
    N: Unpin,
    S: Unpin
[src]

impl<N, S> UnwindSafe for All<N, S> where
    N: UnwindSafe,
    S: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Mark for T[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,