Crate p3_challenger

Crate p3_challenger 

Source
Expand description

Utilities for generating Fiat-Shamir challenges based on an IOP’s transcript.

Structs§

DuplexChallenger
A generic duplex sponge challenger over a finite field, used for generating deterministic challenges from absorbed inputs.
HashChallenger
A generic challenger that uses a cryptographic hash function to generate challenges.
MultiField32Challenger
A challenger that operates natively on PF but produces challenges of F: PrimeField32.
ResamplingError
Custom error raised when resampling is required for uniform bits but disabled via ErrorOnRejection strategy.
SerializingChallenger32
Given a challenger that can observe and sample bytes, produces a challenger that is able to sample and observe field elements of a PrimeField32.
SerializingChallenger64
Given a challenger that can observe and sample bytes, produces a challenger that is able to sample and observe field elements of a PrimeField64 field.

Traits§

CanObserve
A generic trait for absorbing elements into the transcript.
CanSample
A trait for sampling challenge elements from the Fiat-Shamir transcript.
CanSampleBits
A trait for sampling random bitstrings from the Fiat-Shamir transcript.
CanSampleUniformBits
Uniform bit sampling interface.
FieldChallenger
A high-level trait combining observation and sampling over a finite field.
GrindingChallenger
Trait for challengers that support proof-of-work (PoW) grinding.
UniformGrindingChallenger
Trait for challengers that support proof-of-work (PoW) grinding with guaranteed uniformly sampled bits.
UniformSamplingField
Trait for fields that support uniform bit sampling optimizations