pub struct FieldChallenger<F, Impl: FieldChallengerHelper<F>> { /* private fields */ }
Expand description
A Fiat-Shamir challenger that can observe and sample field elements.
This challenger type can observe and sample elements of extension fields of some field F
.
When the field F
is a BinaryField
, the challenger can sample bits uniformly.
Trait Implementations§
source§impl<F, H, PE> CanObserve<MerkleCap<PE>> for FieldChallenger<F, H>where
F: BinaryField + Field,
H: FieldChallengerHelper<F>,
PE: PackedExtension<F, PackedSubfield: PackedFieldIndexable>,
PE::Scalar: ExtensionField<F>,
impl<F, H, PE> CanObserve<MerkleCap<PE>> for FieldChallenger<F, H>where
F: BinaryField + Field,
H: FieldChallengerHelper<F>,
PE: PackedExtension<F, PackedSubfield: PackedFieldIndexable>,
PE::Scalar: ExtensionField<F>,
source§impl<F, PE, Impl> CanObserve<PE> for FieldChallenger<F, Impl>where
F: BinaryField,
PE: PackedExtension<F, PackedSubfield: PackedFieldIndexable>,
PE::Scalar: ExtensionField<F>,
Impl: FieldChallengerHelper<F>,
impl<F, PE, Impl> CanObserve<PE> for FieldChallenger<F, Impl>where
F: BinaryField,
PE: PackedExtension<F, PackedSubfield: PackedFieldIndexable>,
PE::Scalar: ExtensionField<F>,
Impl: FieldChallengerHelper<F>,
source§impl<F, FE, Impl> CanSample<FE> for FieldChallenger<F, Impl>
impl<F, FE, Impl> CanSample<FE> for FieldChallenger<F, Impl>
source§impl<F, Impl> CanSampleBits<usize> for FieldChallenger<F, Impl>where
F: BinaryField,
Impl: FieldChallengerHelper<F>,
impl<F, Impl> CanSampleBits<usize> for FieldChallenger<F, Impl>where
F: BinaryField,
Impl: FieldChallengerHelper<F>,
fn sample_bits(&mut self, bits: usize) -> usize
source§impl<F: Clone, Impl: Clone + FieldChallengerHelper<F>> Clone for FieldChallenger<F, Impl>
impl<F: Clone, Impl: Clone + FieldChallengerHelper<F>> Clone for FieldChallenger<F, Impl>
source§fn clone(&self) -> FieldChallenger<F, Impl>
fn clone(&self) -> FieldChallenger<F, Impl>
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<F: Debug, Impl: Debug + FieldChallengerHelper<F>> Debug for FieldChallenger<F, Impl>
impl<F: Debug, Impl: Debug + FieldChallengerHelper<F>> Debug for FieldChallenger<F, Impl>
Auto Trait Implementations§
impl<F, Impl> Freeze for FieldChallenger<F, Impl>where
Impl: Freeze,
impl<F, Impl> RefUnwindSafe for FieldChallenger<F, Impl>where
Impl: RefUnwindSafe,
F: RefUnwindSafe,
impl<F, Impl> Send for FieldChallenger<F, Impl>
impl<F, Impl> Sync for FieldChallenger<F, Impl>
impl<F, Impl> Unpin for FieldChallenger<F, Impl>where
Impl: Unpin,
impl<F, Impl> UnwindSafe for FieldChallenger<F, Impl>where
Impl: UnwindSafe,
F: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more