[][src]Struct sigma_fun::And

pub struct And<A, B> {
    pub lhs: A,
    pub rhs: B,
}

Combinator for proving that both A and B are true where A and B are not the same relation.

If A = B it's generally preferable to use all instead.

Fields

lhs: A

The first statement

rhs: B

The second statement

Trait Implementations

impl<A: Clone, B: Clone> Clone for And<A, B>[src]

impl<A: Debug, B: Debug> Debug for And<A, B>[src]

impl<A: Default, B: Default> Default for And<A, B>[src]

impl<A, B> Display for And<A, B> where
    And<A, B>: Sigma
[src]

impl<A: PartialEq, B: PartialEq> PartialEq<And<A, B>> for And<A, B>[src]

impl<A, B> Sigma for And<A, B> where
    A: Sigma,
    B: Sigma<ChallengeLength = A::ChallengeLength>, 
[src]

type Witness = (A::Witness, B::Witness)

The witness for the relation.

type Statement = (A::Statement, B::Statement)

The elements of the statement the prover is proving.

type Announcement = (A::Announcement, B::Announcement)

The type for the public announcement the prover sends in the first round of the protocol.

type AnnounceSecret = (A::AnnounceSecret, B::AnnounceSecret)

The type for the secret the prover creates when generating the proof.

type Response = (A::Response, B::Response)

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

type ChallengeLength = A::ChallengeLength

The length as a typenum Read more

impl<A, B> StructuralPartialEq for And<A, B>[src]

Auto Trait Implementations

impl<A, B> RefUnwindSafe for And<A, B> where
    A: RefUnwindSafe,
    B: RefUnwindSafe
[src]

impl<A, B> Send for And<A, B> where
    A: Send,
    B: Send
[src]

impl<A, B> Sync for And<A, B> where
    A: Sync,
    B: Sync
[src]

impl<A, B> Unpin for And<A, B> where
    A: Unpin,
    B: Unpin
[src]

impl<A, B> UnwindSafe for And<A, B> where
    A: UnwindSafe,
    B: 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>,