Struct switchboard_solana::oracle_program::accounts::ecvrf::FieldElement51
source · #[repr(C)]pub struct FieldElement51(/* private fields */);
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 u64
s; 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 From<FieldElement51> for FieldElementZC
impl From<FieldElement51> for FieldElementZC
source§fn from(val: FieldElement51) -> Self
fn from(val: FieldElement51) -> Self
Converts to this type from the input type.
source§impl From<FieldElementZC> for FieldElement51
impl From<FieldElementZC> for FieldElement51
source§fn from(val: FieldElementZC) -> Self
fn from(val: FieldElementZC) -> Self
Converts to this type from the 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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<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
.§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
.