[][src]Struct sigma_fun::Eq

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

Combinator for showing that two Sigma protocols have the same witness.

Note: right now checking whether A and B support secure eq composition is done heurisitically. In the future there will be an explicit trait for this.

Implementations

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

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

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

Trait Implementations

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

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

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

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

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

impl<A, B> Sigma for Eq<A, B> where
    A: Sigma,
    B: Sigma<ChallengeLength = A::ChallengeLength, Witness = A::Witness, Response = A::Response, AnnounceSecret = A::AnnounceSecret>, 
[src]

type Witness = A::Witness

The witness for the relation.

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

The elements of the statement the prover is proving.

type AnnounceSecret = A::AnnounceSecret

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

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

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

type Response = A::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 Eq<A, B>[src]

Auto Trait Implementations

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

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

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

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

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