Struct salty::Scalar [−][src]
#[repr(C)]pub struct Scalar(pub [u8; 32]);
Expand description
Since the curve is an abelian group, it has a module structure, consisting of these scalars. They are the integers modulo “ell”, where “ell” is 2**252 + something something.
Implementations
Check whether this Scalar
is the canonical representative mod \(\ell\).
This is intended for uses like input validation, where variable-time code is acceptable.
Trait Implementations
type Output = EdwardsPoint
type Output = EdwardsPoint
The resulting type after applying the *
operator.
Performs the *
operation. 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