pub struct EpochChallenge<N: Network> { /* private fields */ }

Implementations§

source§

impl<N: Network> EpochChallenge<N>

source

pub fn new( epoch_number: u32, epoch_block_hash: N::BlockHash, degree: u32 ) -> Result<Self>

Initializes a new epoch challenge.

source

pub const fn epoch_number(&self) -> u32

Returns the epoch number for the solution.

source

pub const fn epoch_block_hash(&self) -> N::BlockHash

Returns the epoch block hash for the solution.

source

pub const fn epoch_polynomial( &self ) -> &DensePolynomial<<N::PairingCurve as PairingEngine>::Fr>

Returns the epoch polynomial for the solution.

source

pub const fn epoch_polynomial_evaluations( &self ) -> &EvaluationsOnDomain<<N::PairingCurve as PairingEngine>::Fr>

Returns the evaluations of the epoch polynomial over the product domain.

source

pub fn degree(&self) -> u32

Returns the number of coefficients of the epoch polynomial.

source

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>
where N::BlockHash: Clone, N::PairingCurve: Clone,

source§

fn clone(&self) -> EpochChallenge<N>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<N: Debug + Network> Debug for EpochChallenge<N>
where N::BlockHash: Debug, N::PairingCurve: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<N: Network> FromBytes for EpochChallenge<N>

source§

fn read_le<R: Read>(reader: R) -> IoResult<Self>

Reads the epoch challenge from a buffer.

source§

fn from_bytes_le(bytes: &[u8]) -> Result<Self, Error>
where Self: Sized,

Returns Self from a byte array in little-endian order.
source§

impl<N: PartialEq + Network> PartialEq for EpochChallenge<N>
where N::BlockHash: PartialEq, N::PairingCurve: PartialEq,

source§

fn eq(&self, other: &EpochChallenge<N>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<N: Network> ToBytes for EpochChallenge<N>

source§

fn write_le<W: Write>(&self, writer: W) -> IoResult<()>

Writes the epoch challenge to a buffer.

source§

fn to_bytes_le(&self) -> Result<Vec<u8>, Error>
where Self: Sized,

Returns self as a byte array in little-endian order.
source§

impl<N: Eq + Network> Eq for EpochChallenge<N>
where N::BlockHash: Eq, N::PairingCurve: Eq,

source§

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>
where <N as Network>::BlockHash: Unpin, <N as Environment>::Field: Unpin,

§

impl<N> UnwindSafe for EpochChallenge<N>
where <N as Network>::BlockHash: UnwindSafe, <N as Environment>::Field: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

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
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V