[][src]Struct sigma_fun::Or

pub struct Or<A, B> { /* fields omitted */ }

Combinator for proving that A OR B is true.

Implementations

impl<A, B> Or<A, B>[src]

pub fn new(lhs: A, rhs: B) -> Self[src]

Create a Or<A,B> protocol from two other Sigma protocols

Trait Implementations

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

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

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

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

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

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

type Witness = Either<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 = (Either<(A::AnnounceSecret, B::Response), (A::Response, B::AnnounceSecret)>, GenericArray<u8, Self::ChallengeLength>)

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

type ChallengeLength = A::ChallengeLength

The length as a typenum Read more

type Response = ((A::Response, GenericArray<u8, Self::ChallengeLength>), B::Response)

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

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

Auto Trait Implementations

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

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

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

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

impl<A, B> UnwindSafe for Or<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>,