[][src]Struct storage_proofs::vdf_post::ChallengeStream

pub struct ChallengeStream<H: Hasher, V: Vdf<H::Domain>> { /* fields omitted */ }

ChallengeStream manages incremental challenge derivation. Consumers require groups of challenge_count challenges. Each round of challenge generation requires a new random input (mix). A ChallengeStream mediates between this usage requirement and the implementation details of the actual challenge generation mechanism.

Methods

impl<H: Hasher, V: Vdf<H::Domain>> ChallengeStream<H, V>[src]

pub fn new(pp: &PublicParams<H::Domain, V>) -> ChallengeStream<H, V>[src]

A ChallengeStream must derive some shared parameters used in challenge derivation. new initializes a new, stateful, ChallengeStream with these parameters.

Auto Trait Implementations

impl<H, V> Unpin for ChallengeStream<H, V> where
    V: Unpin,
    <H as Hasher>::Domain: Unpin

impl<H, V> Sync for ChallengeStream<H, V> where
    V: Sync,
    <H as Hasher>::Domain: Sync

impl<H, V> Send for ChallengeStream<H, V> where
    V: Send,
    <H as Hasher>::Domain: Send

impl<H, V> RefUnwindSafe for ChallengeStream<H, V> where
    V: RefUnwindSafe,
    <H as Hasher>::Domain: RefUnwindSafe

impl<H, V> UnwindSafe for ChallengeStream<H, V> where
    V: UnwindSafe,
    <H as Hasher>::Domain: UnwindSafe

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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