[][src]Struct sigma_fun::HashTranscript

pub struct HashTranscript<H, R = ()> { /* fields omitted */ }

A transcript which consists of a hash with fixed length output and a seedable RNG.

The SeedableRng specified must have the same seed length as the hash's output length. R may be set to () but the it won't implement ProverTranscript.

Trait Implementations

impl<H: Clone, R: Clone> Clone for HashTranscript<H, R>[src]

impl<H: Debug, R: Debug> Debug for HashTranscript<H, R>[src]

impl<H: Default, R> Default for HashTranscript<H, R>[src]

impl<S, H, R> ProverTranscript<S> for HashTranscript<H, R> where
    S: Sigma,
    H: Update + FixedOutput<OutputSize = U32> + Clone,
    R: SeedableRng + CryptoRng + RngCore + Clone,
    R::Seed: From<GenericArray<u8, U32>>, 
[src]

Implements a prover transcript for a 32-byte hash with a rng that takes a 32-byte seed.

type Rng = R

The type of Rng the transcript generates.

impl<H, S: Sigma, R: Clone> Transcript<S> for HashTranscript<H, R> where
    S::ChallengeLength: IsLessOrEqual<U32>,
    <S::ChallengeLength as IsLessOrEqual<U32>>::Output: NonZero,
    H: BlockInput<BlockSize = U64> + FixedOutput<OutputSize = U32> + Update + Default + Clone
[src]

Implements a transcript for any hash that outputs 32 bytes but with a block size of 64 bytes (e.g. SHA256).

The implementation first tags the SHA256 instance with the Sigma protocol's name.

Auto Trait Implementations

impl<H, R> RefUnwindSafe for HashTranscript<H, R> where
    H: RefUnwindSafe,
    R: RefUnwindSafe
[src]

impl<H, R> Send for HashTranscript<H, R> where
    H: Send,
    R: Send
[src]

impl<H, R> Sync for HashTranscript<H, R> where
    H: Sync,
    R: Sync
[src]

impl<H, R> Unpin for HashTranscript<H, R> where
    H: Unpin,
    R: Unpin
[src]

impl<H, R> UnwindSafe for HashTranscript<H, R> where
    H: UnwindSafe,
    R: 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, 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>,