binius_core::fiat_shamir

Trait Challenger

Source
pub trait Challenger {
    // Required methods
    fn sampler(&mut self) -> &mut impl Buf;
    fn observer(&mut self) -> &mut impl BufMut;
}
Expand description

A Fiat-Shamir challenger that can observe prover messages and sample verifier randomness.

Required Methods§

Source

fn sampler(&mut self) -> &mut impl Buf

Returns an infinite buffer for reading pseudo-random bytes.

Source

fn observer(&mut self) -> &mut impl BufMut

Returns and infinite buffer for writing data that the challenger observes.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<H: Digest + BlockSizeUser + FixedOutputReset + Default> Challenger for HasherChallenger<H>