Struct salty::EdwardsPoint [−][src]
pub struct EdwardsPoint(_);
Expand description
These represent the (X,Y,Z,T) coordinates
Implementations
Convert this EdwardsPoint
on the Edwards model to the
corresponding MontgomeryPoint
on the Montgomery model.
This function has one exceptional case; the identity point of the Edwards curve is sent to the 2-torsion point \((0,0)\) on the Montgomery curve.
Note that this is a one-way conversion, since the Montgomery model does not retain sign information.
The x-coordinate of the point
The y-coordinate of the point
The u-coordinate of the X25519 point
Trait Implementations
type Output = EdwardsPoint
type Output = EdwardsPoint
The resulting type after applying the +
operator.
Performs the +
operation. Read more
Returns the “default value” for a type. Read more
type Output = EdwardsPoint
type Output = EdwardsPoint
The resulting type after applying the *
operator.
Performs the *
operation. Read more
type Output = EdwardsPoint
type Output = EdwardsPoint
The resulting type after applying the -
operator.
Performs the unary -
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