pub struct ScalarChallenge<F>(pub F);
Expand description
A challenge which is used as a scalar on a group element in the verifier
Tuple Fields§
§0: F
Implementations§
Source§impl<F: PrimeField> ScalarChallenge<F>
impl<F: PrimeField> ScalarChallenge<F>
Trait Implementations§
Source§impl<F: Clone> Clone for ScalarChallenge<F>
impl<F: Clone> Clone for ScalarChallenge<F>
Source§fn clone(&self) -> ScalarChallenge<F>
fn clone(&self) -> ScalarChallenge<F>
Returns a copy of the value. Read more
1.0.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> Debug for ScalarChallenge<F>
impl<F: Debug> Debug for ScalarChallenge<F>
Source§impl<F, CamlF> From<CamlScalarChallenge<CamlF>> for ScalarChallenge<F>where
CamlF: Into<F>,
impl<F, CamlF> From<CamlScalarChallenge<CamlF>> for ScalarChallenge<F>where
CamlF: Into<F>,
Source§fn from(caml_sc: CamlScalarChallenge<CamlF>) -> Self
fn from(caml_sc: CamlScalarChallenge<CamlF>) -> Self
Converts to this type from the input type.
Source§impl<F, CamlF> From<ScalarChallenge<F>> for CamlScalarChallenge<CamlF>where
CamlF: From<F>,
impl<F, CamlF> From<ScalarChallenge<F>> for CamlScalarChallenge<CamlF>where
CamlF: From<F>,
Source§fn from(sc: ScalarChallenge<F>) -> Self
fn from(sc: ScalarChallenge<F>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<F> Freeze for ScalarChallenge<F>where
F: Freeze,
impl<F> RefUnwindSafe for ScalarChallenge<F>where
F: RefUnwindSafe,
impl<F> Send for ScalarChallenge<F>where
F: Send,
impl<F> Sync for ScalarChallenge<F>where
F: Sync,
impl<F> Unpin for ScalarChallenge<F>where
F: Unpin,
impl<F> UnwindSafe for ScalarChallenge<F>where
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