Struct switchboard_solana::oracle_program::accounts::ecvrf::FieldElement51
source · #[repr(C)]pub struct FieldElement51(_);Expand description
A FieldElement51 represents an element of the field
\( \mathbb Z / (2^{255} - 19)\).
In the 64-bit implementation, a FieldElement is represented in
radix \(2^{51}\) as five u64s; the coefficients are allowed to
grow up to \(2^{54}\) between reductions modulo \(p\).
Note
The curve25519_dalek::field module provides a type alias
curve25519_dalek::field::FieldElement to either FieldElement51
or FieldElement2625.
The backend-specific type FieldElement51 should not be used
outside of the curve25519_dalek::field module.
Trait Implementations§
source§impl Clone for FieldElement51
impl Clone for FieldElement51
source§fn clone(&self) -> FieldElement51
fn clone(&self) -> FieldElement51
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 Default for FieldElement51
impl Default for FieldElement51
source§fn default() -> FieldElement51
fn default() -> FieldElement51
Returns the “default value” for a type. Read more
source§impl Into<FieldElement51> for FieldElementZC
impl Into<FieldElement51> for FieldElementZC
source§fn into(self) -> FieldElement51
fn into(self) -> FieldElement51
Converts this type into the (usually inferred) input type.
source§impl Into<FieldElementZC> for FieldElement51
impl Into<FieldElementZC> for FieldElement51
source§fn into(self) -> FieldElementZC
fn into(self) -> FieldElementZC
Converts this type into the (usually inferred) input type.
impl Copy for FieldElement51
impl Pod for FieldElement51
Auto Trait Implementations§
impl RefUnwindSafe for FieldElement51
impl Send for FieldElement51
impl Sync for FieldElement51
impl Unpin for FieldElement51
impl UnwindSafe for FieldElement51
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.