pub struct ProofChallenge(/* private fields */);
Expand description
The Fiat-Shamir Challenge in proofs
Implementations§
Source§impl ProofChallenge
impl ProofChallenge
Sourcepub fn to_bytes_compressed_form(&self) -> [u8; 32]
pub fn to_bytes_compressed_form(&self) -> [u8; 32]
Convert to raw bytes compressed form
Sourcepub fn to_bytes_uncompressed_form(&self) -> [u8; 32]
pub fn to_bytes_uncompressed_form(&self) -> [u8; 32]
Convert to raw bytes uncompressed form
Trait Implementations§
Source§impl AsRef<Fr> for ProofChallenge
impl AsRef<Fr> for ProofChallenge
Source§impl Clone for ProofChallenge
impl Clone for ProofChallenge
Source§fn clone(&self) -> ProofChallenge
fn clone(&self) -> ProofChallenge
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 Debug for ProofChallenge
impl Debug for ProofChallenge
Source§impl Default for ProofChallenge
impl Default for ProofChallenge
Source§impl<'a> Deserialize<'a> for ProofChallenge
impl<'a> Deserialize<'a> for ProofChallenge
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ProofChallenge
impl Display for ProofChallenge
Source§impl From<&Fr> for ProofChallenge
impl From<&Fr> for ProofChallenge
Source§impl From<Fr> for ProofChallenge
impl From<Fr> for ProofChallenge
Source§impl HashElem for ProofChallenge
impl HashElem for ProofChallenge
Source§impl Ord for ProofChallenge
impl Ord for ProofChallenge
Source§fn cmp(&self, other: &ProofChallenge) -> Ordering
fn cmp(&self, other: &ProofChallenge) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ProofChallenge
impl PartialEq for ProofChallenge
Source§impl PartialOrd for ProofChallenge
impl PartialOrd for ProofChallenge
Source§impl RandomElem for ProofChallenge
impl RandomElem for ProofChallenge
Source§impl Serialize for ProofChallenge
impl Serialize for ProofChallenge
Source§impl TryFrom<&[u8]> for ProofChallenge
impl TryFrom<&[u8]> for ProofChallenge
impl Copy for ProofChallenge
impl Eq for ProofChallenge
impl StructuralPartialEq for ProofChallenge
Auto Trait Implementations§
impl Freeze for ProofChallenge
impl RefUnwindSafe for ProofChallenge
impl Send for ProofChallenge
impl Sync for ProofChallenge
impl Unpin for ProofChallenge
impl UnwindSafe for ProofChallenge
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§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