Struct salty::MontgomeryPoint [−][src]
pub struct MontgomeryPoint(pub FieldElement);
Expand description
Holds the \(u\)-coordinate of a point on the Montgomery form of Curve25519 or its twist.
Implementations
Attempt to convert to an EdwardsPoint
, using the supplied
choice of sign for the EdwardsPoint
.
Inputs
sign
: au8
donating the desired sign of the resultingEdwardsPoint
.0
denotes positive and1
negative.
Return
-
Some(EdwardsPoint)
ifself
is the \(u\)-coordinate of a point on (the Montgomery form of) Curve25519; -
None
ifself
is the \(u\)-coordinate of a point on the twist of (the Montgomery form of) Curve25519;
Trait Implementations
Determine if two items are equal. Read more
Returns the “default value” for a type. Read more
type Output = MontgomeryPoint
type Output = MontgomeryPoint
The resulting type after applying the *
operator.
Performs the *
operation. Read more
Multiply this MontgomeryPoint
by a Scalar
.
Given self
\( = u_0(P) \), and a Scalar
\(n\), return \( u_0([n]P) \).
type Output = MontgomeryPoint
type Output = MontgomeryPoint
The resulting type after applying the *
operator.
Performs the *=
operation. Read more