Struct salty::FieldElement [−][src]
pub struct FieldElement(pub [i64; 16]);
Expand description
Element of the base field of the elliptic curve
Trait Implementations
Addition of field elements
type Output = FieldElement
type Output = FieldElement
The resulting type after applying the +
operator.
Performs the +=
operation. Read more
Returns the “default value” for a type. Read more
TODO: figure out why this doesn’t pass the test at the end
type Limbs = [i64; 16]
type Limbs = [i64; 16]
Internal representation as limbs
construct from canonical representation as little-endian bytes
construct from possibly non-canonical representation as little-endian bytes
construct from canonical representation as little-endian bytes, with validity check
type Output = FieldElement
type Output = FieldElement
The resulting type after applying the *
operator.
Performs the *
operation. Read more
Performs the *=
operation. Read more
Subition of field elements
type Output = FieldElement
type Output = FieldElement
The resulting type after applying the -
operator.
Subition of field elements
type Output = FieldElement
type Output = FieldElement
The resulting type after applying the -
operator.
Performs the -=
operation. Read more
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> ConditionallyNegatable for T where
T: ConditionallySelectable,
&'a T: for<'a> Neg,
<&'a T as Neg>::Output == T,
[src]
impl<T> ConditionallyNegatable for T where
T: ConditionallySelectable,
&'a T: for<'a> Neg,
<&'a T as Neg>::Output == T,
[src]Negate self
if choice == Choice(1)
; otherwise, leave it
unchanged. Read more