pub struct EpochChallenge<N>where
N: Network,{ /* private fields */ }Implementations§
Source§impl<N> EpochChallenge<N>where
N: Network,
impl<N> EpochChallenge<N>where
N: Network,
Sourcepub fn new(
epoch_number: u32,
epoch_block_hash: <N as Network>::BlockHash,
degree: u32,
) -> Result<EpochChallenge<N>, Error>
pub fn new( epoch_number: u32, epoch_block_hash: <N as Network>::BlockHash, degree: u32, ) -> Result<EpochChallenge<N>, Error>
Initializes a new epoch challenge.
Sourcepub const fn epoch_number(&self) -> u32
pub const fn epoch_number(&self) -> u32
Returns the epoch number for the solution.
Sourcepub const fn epoch_block_hash(&self) -> <N as Network>::BlockHash
pub const fn epoch_block_hash(&self) -> <N as Network>::BlockHash
Returns the epoch block hash for the solution.
Sourcepub const fn epoch_polynomial(
&self,
) -> &DensePolynomial<<<N as Environment>::PairingCurve as PairingEngine>::Fr>
pub const fn epoch_polynomial( &self, ) -> &DensePolynomial<<<N as Environment>::PairingCurve as PairingEngine>::Fr>
Returns the epoch polynomial for the solution.
Sourcepub const fn epoch_polynomial_evaluations(
&self,
) -> &Evaluations<<<N as Environment>::PairingCurve as PairingEngine>::Fr>
pub const fn epoch_polynomial_evaluations( &self, ) -> &Evaluations<<<N as Environment>::PairingCurve as PairingEngine>::Fr>
Returns the evaluations of the epoch polynomial over the product domain.
Sourcepub fn num_coefficients(&self) -> Result<u32, Error>
pub fn num_coefficients(&self) -> Result<u32, Error>
Returns the number of coefficients of the epoch polynomial.
Trait Implementations§
Source§impl<N> Clone for EpochChallenge<N>where
N: Clone + Network,
<N as Network>::BlockHash: Clone,
<N as Environment>::PairingCurve: Clone,
impl<N> Clone for EpochChallenge<N>where
N: Clone + Network,
<N as Network>::BlockHash: Clone,
<N as Environment>::PairingCurve: Clone,
Source§fn clone(&self) -> EpochChallenge<N>
fn clone(&self) -> EpochChallenge<N>
Returns a duplicate 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<N> Debug for EpochChallenge<N>where
N: Debug + Network,
<N as Network>::BlockHash: Debug,
<N as Environment>::PairingCurve: Debug,
impl<N> Debug for EpochChallenge<N>where
N: Debug + Network,
<N as Network>::BlockHash: Debug,
<N as Environment>::PairingCurve: Debug,
Source§impl<N> FromBytes for EpochChallenge<N>where
N: Network,
impl<N> FromBytes for EpochChallenge<N>where
N: Network,
Source§impl<N> PartialEq for EpochChallenge<N>where
N: PartialEq + Network,
<N as Network>::BlockHash: PartialEq,
<N as Environment>::PairingCurve: PartialEq,
impl<N> PartialEq for EpochChallenge<N>where
N: PartialEq + Network,
<N as Network>::BlockHash: PartialEq,
<N as Environment>::PairingCurve: PartialEq,
Source§impl<N> ToBytes for EpochChallenge<N>where
N: Network,
impl<N> ToBytes for EpochChallenge<N>where
N: Network,
impl<N> Eq for EpochChallenge<N>
impl<N> StructuralPartialEq for EpochChallenge<N>where
N: Network,
Auto Trait Implementations§
impl<N> Freeze for EpochChallenge<N>
impl<N> RefUnwindSafe for EpochChallenge<N>
impl<N> Send for EpochChallenge<N>
impl<N> Sync for EpochChallenge<N>
impl<N> Unpin for EpochChallenge<N>
impl<N> UnwindSafe for EpochChallenge<N>
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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