pub trait GrindingChallenger:
CanObserve<Self::Witness>
+ CanSampleBits<usize>
+ Sync
+ Clone {
type Witness: Field;
// Required method
fn grind(&mut self, bits: usize) -> Self::Witness;
// Provided method
fn check_witness(&mut self, bits: usize, witness: Self::Witness) -> bool { ... }
}
Required Associated Types§
Required Methods§
Provided Methods§
fn check_witness(&mut self, bits: usize, witness: Self::Witness) -> bool
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.