Struct snarkvm_ledger_coinbase::EpochChallenge
source · pub struct EpochChallenge<N: Network> { /* private fields */ }
Implementations§
source§impl<N: Network> EpochChallenge<N>
impl<N: Network> EpochChallenge<N>
sourcepub fn new(
epoch_number: u32,
epoch_block_hash: N::BlockHash,
degree: u32
) -> Result<Self>
pub fn new( epoch_number: u32, epoch_block_hash: N::BlockHash, degree: u32 ) -> Result<Self>
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::BlockHash
pub const fn epoch_block_hash(&self) -> N::BlockHash
Returns the epoch block hash for the solution.
sourcepub const fn epoch_polynomial(
&self
) -> &DensePolynomial<<N::PairingCurve as PairingEngine>::Fr>
pub const fn epoch_polynomial( &self ) -> &DensePolynomial<<N::PairingCurve as PairingEngine>::Fr>
Returns the epoch polynomial for the solution.
sourcepub const fn epoch_polynomial_evaluations(
&self
) -> &EvaluationsOnDomain<<N::PairingCurve as PairingEngine>::Fr>
pub const fn epoch_polynomial_evaluations( &self ) -> &EvaluationsOnDomain<<N::PairingCurve as PairingEngine>::Fr>
Returns the evaluations of the epoch polynomial over the product domain.
sourcepub fn num_coefficients(&self) -> Result<u32>
pub fn num_coefficients(&self) -> Result<u32>
Returns the number of coefficients of the epoch polynomial.
Trait Implementations§
source§impl<N: Clone + Network> Clone for EpochChallenge<N>
impl<N: Clone + Network> Clone for EpochChallenge<N>
source§fn clone(&self) -> EpochChallenge<N>
fn clone(&self) -> EpochChallenge<N>
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<N: Debug + Network> Debug for EpochChallenge<N>
impl<N: Debug + Network> Debug for EpochChallenge<N>
source§impl<N: Network> FromBytes for EpochChallenge<N>
impl<N: Network> FromBytes for EpochChallenge<N>
source§impl<N: PartialEq + Network> PartialEq for EpochChallenge<N>
impl<N: PartialEq + Network> PartialEq for EpochChallenge<N>
source§fn eq(&self, other: &EpochChallenge<N>) -> bool
fn eq(&self, other: &EpochChallenge<N>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<N: Network> ToBytes for EpochChallenge<N>
impl<N: Network> ToBytes for EpochChallenge<N>
impl<N: Eq + Network> Eq for EpochChallenge<N>
impl<N: Network> StructuralPartialEq for EpochChallenge<N>
Auto Trait Implementations§
impl<N> RefUnwindSafe for EpochChallenge<N>where
<N as Network>::BlockHash: RefUnwindSafe,
<N as Environment>::Field: RefUnwindSafe,
impl<N> Send for EpochChallenge<N>
impl<N> Sync for EpochChallenge<N>
impl<N> Unpin for EpochChallenge<N>
impl<N> UnwindSafe for EpochChallenge<N>where
<N as Network>::BlockHash: UnwindSafe,
<N as Environment>::Field: 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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.