pub trait ProverTranscript<S: Sigma> {
    type Rng: CryptoRng + RngCore;

    fn gen_rng<R: CryptoRng + RngCore>(
        &self,
        sigma: &S,
        witness: &S::Witness,
        in_rng: Option<&mut R>
    ) -> Self::Rng; }
Expand description

A Transcript that can also generate a rng.

The prover needs an rng to generate it’s AnnounceSecret.

Required Associated Types

The type of Rng the transcript generates.

Required Methods

Generates an RNG from the transcript state and an input rng (in_rng) which should provide system randomness.

Implementors

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