Struct curve25519_dalek::edwards::EdwardsPoint
source · pub struct EdwardsPoint { /* private fields */ }
Expand description
An EdwardsPoint
represents a point on the Edwards form of Curve25519.
Implementations§
source§impl EdwardsPoint
impl EdwardsPoint
sourcepub fn to_montgomery(&self) -> MontgomeryPoint
pub fn to_montgomery(&self) -> MontgomeryPoint
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.
sourcepub fn compress(&self) -> CompressedEdwardsY
pub fn compress(&self) -> CompressedEdwardsY
Compress this point to CompressedEdwardsY
format.
sourcepub fn nonspec_map_to_curve<D>(bytes: &[u8]) -> EdwardsPoint
👎Deprecated since 4.0.0: previously named hash_from_bytes
, this is not a secure hash functionAvailable on crate feature digest
only.
pub fn nonspec_map_to_curve<D>(bytes: &[u8]) -> EdwardsPoint
hash_from_bytes
, this is not a secure hash functiondigest
only.Maps the digest of the input bytes to the curve. This is NOT a hash-to-curve function, as
it produces points with a non-uniform distribution. Rather, it performs something that
resembles (but is not) half of the
hash_to_curve
function from the Elligator2 spec.
source§impl EdwardsPoint
impl EdwardsPoint
sourcepub fn mul_base(scalar: &Scalar) -> Self
pub fn mul_base(scalar: &Scalar) -> Self
Fixed-base scalar multiplication by the Ed25519 base point.
Uses precomputed basepoint tables when the precomputed-tables
feature
is enabled, trading off increased code size for ~4x better performance.
sourcepub fn mul_clamped(self, bytes: [u8; 32]) -> Self
pub fn mul_clamped(self, bytes: [u8; 32]) -> Self
Multiply this point by clamp_integer(bytes)
. For a description of clamping, see
clamp_integer
.
sourcepub fn mul_base_clamped(bytes: [u8; 32]) -> Self
pub fn mul_base_clamped(bytes: [u8; 32]) -> Self
Multiply the basepoint by clamp_integer(bytes)
. For a description of clamping, see
clamp_integer
.
source§impl EdwardsPoint
impl EdwardsPoint
sourcepub fn vartime_double_scalar_mul_basepoint(
a: &Scalar,
A: &EdwardsPoint,
b: &Scalar,
) -> EdwardsPoint
pub fn vartime_double_scalar_mul_basepoint( a: &Scalar, A: &EdwardsPoint, b: &Scalar, ) -> EdwardsPoint
Compute \(aA + bB\) in variable time, where \(B\) is the Ed25519 basepoint.
source§impl EdwardsPoint
impl EdwardsPoint
sourcepub fn mul_by_cofactor(&self) -> EdwardsPoint
pub fn mul_by_cofactor(&self) -> EdwardsPoint
Multiply by the cofactor: return \([8]P\).
sourcepub fn is_small_order(&self) -> bool
pub fn is_small_order(&self) -> bool
Determine if this point is of small order.
§Return
true
ifself
is in the torsion subgroup \( \mathcal E[8] \);false
ifself
is not in the torsion subgroup \( \mathcal E[8] \).
§Example
use curve25519_dalek::constants;
// Generator of the prime-order subgroup
let P = constants::ED25519_BASEPOINT_POINT;
// Generator of the torsion subgroup
let Q = constants::EIGHT_TORSION[1];
// P has large order
assert_eq!(P.is_small_order(), false);
// Q has small order
assert_eq!(Q.is_small_order(), true);
sourcepub fn is_torsion_free(&self) -> bool
pub fn is_torsion_free(&self) -> bool
Determine if this point is “torsion-free”, i.e., is contained in the prime-order subgroup.
§Return
true
ifself
has zero torsion component and is in the prime-order subgroup;false
ifself
has a nonzero torsion component and is not in the prime-order subgroup.
§Example
use curve25519_dalek::constants;
// Generator of the prime-order subgroup
let P = constants::ED25519_BASEPOINT_POINT;
// Generator of the torsion subgroup
let Q = constants::EIGHT_TORSION[1];
// P is torsion-free
assert_eq!(P.is_torsion_free(), true);
// P + Q is not torsion-free
assert_eq!((P+Q).is_torsion_free(), false);
Trait Implementations§
source§impl<'a, 'b> Add<&'b AffineNielsPoint> for &'a EdwardsPoint
impl<'a, 'b> Add<&'b AffineNielsPoint> for &'a EdwardsPoint
§type Output = CompletedPoint
type Output = CompletedPoint
+
operator.source§fn add(self, other: &'b AffineNielsPoint) -> CompletedPoint
fn add(self, other: &'b AffineNielsPoint) -> CompletedPoint
+
operation. Read moresource§impl<'a, 'b> Add<&'b EdwardsPoint> for &'a EdwardsPoint
impl<'a, 'b> Add<&'b EdwardsPoint> for &'a EdwardsPoint
§type Output = EdwardsPoint
type Output = EdwardsPoint
+
operator.source§fn add(self, other: &'b EdwardsPoint) -> EdwardsPoint
fn add(self, other: &'b EdwardsPoint) -> EdwardsPoint
+
operation. Read moresource§impl<'b> Add<&'b EdwardsPoint> for EdwardsPoint
impl<'b> Add<&'b EdwardsPoint> for EdwardsPoint
§type Output = EdwardsPoint
type Output = EdwardsPoint
+
operator.source§fn add(self, rhs: &'b EdwardsPoint) -> EdwardsPoint
fn add(self, rhs: &'b EdwardsPoint) -> EdwardsPoint
+
operation. Read moresource§impl<'a, 'b> Add<&'b ProjectiveNielsPoint> for &'a EdwardsPoint
impl<'a, 'b> Add<&'b ProjectiveNielsPoint> for &'a EdwardsPoint
§type Output = CompletedPoint
type Output = CompletedPoint
+
operator.source§fn add(self, other: &'b ProjectiveNielsPoint) -> CompletedPoint
fn add(self, other: &'b ProjectiveNielsPoint) -> CompletedPoint
+
operation. Read moresource§impl Add<&SubgroupPoint> for &EdwardsPoint
Available on crate feature group
only.
impl Add<&SubgroupPoint> for &EdwardsPoint
group
only.§type Output = EdwardsPoint
type Output = EdwardsPoint
+
operator.source§fn add(self, other: &SubgroupPoint) -> EdwardsPoint
fn add(self, other: &SubgroupPoint) -> EdwardsPoint
+
operation. Read moresource§impl<'b> Add<&'b SubgroupPoint> for EdwardsPoint
impl<'b> Add<&'b SubgroupPoint> for EdwardsPoint
§type Output = EdwardsPoint
type Output = EdwardsPoint
+
operator.source§fn add(self, rhs: &'b SubgroupPoint) -> EdwardsPoint
fn add(self, rhs: &'b SubgroupPoint) -> EdwardsPoint
+
operation. Read moresource§impl<'a> Add<EdwardsPoint> for &'a EdwardsPoint
impl<'a> Add<EdwardsPoint> for &'a EdwardsPoint
§type Output = EdwardsPoint
type Output = EdwardsPoint
+
operator.source§fn add(self, rhs: EdwardsPoint) -> EdwardsPoint
fn add(self, rhs: EdwardsPoint) -> EdwardsPoint
+
operation. Read moresource§impl<'a> Add<SubgroupPoint> for &'a EdwardsPoint
impl<'a> Add<SubgroupPoint> for &'a EdwardsPoint
§type Output = EdwardsPoint
type Output = EdwardsPoint
+
operator.source§fn add(self, rhs: SubgroupPoint) -> EdwardsPoint
fn add(self, rhs: SubgroupPoint) -> EdwardsPoint
+
operation. Read moresource§impl Add<SubgroupPoint> for EdwardsPoint
impl Add<SubgroupPoint> for EdwardsPoint
§type Output = EdwardsPoint
type Output = EdwardsPoint
+
operator.source§fn add(self, rhs: SubgroupPoint) -> EdwardsPoint
fn add(self, rhs: SubgroupPoint) -> EdwardsPoint
+
operation. Read moresource§impl Add for EdwardsPoint
impl Add for EdwardsPoint
§type Output = EdwardsPoint
type Output = EdwardsPoint
+
operator.source§fn add(self, rhs: EdwardsPoint) -> EdwardsPoint
fn add(self, rhs: EdwardsPoint) -> EdwardsPoint
+
operation. Read moresource§impl<'b> AddAssign<&'b EdwardsPoint> for EdwardsPoint
impl<'b> AddAssign<&'b EdwardsPoint> for EdwardsPoint
source§fn add_assign(&mut self, _rhs: &'b EdwardsPoint)
fn add_assign(&mut self, _rhs: &'b EdwardsPoint)
+=
operation. Read moresource§impl AddAssign<&SubgroupPoint> for EdwardsPoint
Available on crate feature group
only.
impl AddAssign<&SubgroupPoint> for EdwardsPoint
group
only.source§fn add_assign(&mut self, rhs: &SubgroupPoint)
fn add_assign(&mut self, rhs: &SubgroupPoint)
+=
operation. Read moresource§impl AddAssign<SubgroupPoint> for EdwardsPoint
impl AddAssign<SubgroupPoint> for EdwardsPoint
source§fn add_assign(&mut self, rhs: SubgroupPoint)
fn add_assign(&mut self, rhs: SubgroupPoint)
+=
operation. Read moresource§impl AddAssign for EdwardsPoint
impl AddAssign for EdwardsPoint
source§fn add_assign(&mut self, rhs: EdwardsPoint)
fn add_assign(&mut self, rhs: EdwardsPoint)
+=
operation. Read moresource§impl Clone for EdwardsPoint
impl Clone for EdwardsPoint
source§fn clone(&self) -> EdwardsPoint
fn clone(&self) -> EdwardsPoint
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl CofactorGroup for EdwardsPoint
Available on crate feature group
only.
impl CofactorGroup for EdwardsPoint
group
only.Ristretto has a cofactor of 1.
§type Subgroup = SubgroupPoint
type Subgroup = SubgroupPoint
Self
implements PrimeGroup
, then Self::Subgroup
may be Self
.source§fn clear_cofactor(&self) -> Self::Subgroup
fn clear_cofactor(&self) -> Self::Subgroup
self
to the prime-order subgroup by multiplying this element by some
k
-multiple of the cofactor. Read moresource§fn into_subgroup(self) -> CtOption<Self::Subgroup>
fn into_subgroup(self) -> CtOption<Self::Subgroup>
self
if it is contained in the prime-order subgroup. Read moresource§fn is_torsion_free(&self) -> Choice
fn is_torsion_free(&self) -> Choice
source§fn is_small_order(&self) -> Choice
fn is_small_order(&self) -> Choice
source§impl ConditionallySelectable for EdwardsPoint
impl ConditionallySelectable for EdwardsPoint
source§fn conditional_select(
a: &EdwardsPoint,
b: &EdwardsPoint,
choice: Choice,
) -> EdwardsPoint
fn conditional_select( a: &EdwardsPoint, b: &EdwardsPoint, choice: Choice, ) -> EdwardsPoint
source§fn conditional_assign(&mut self, other: &Self, choice: Choice)
fn conditional_assign(&mut self, other: &Self, choice: Choice)
source§impl ConstantTimeEq for EdwardsPoint
impl ConstantTimeEq for EdwardsPoint
source§impl Debug for EdwardsPoint
impl Debug for EdwardsPoint
source§impl Default for EdwardsPoint
impl Default for EdwardsPoint
source§fn default() -> EdwardsPoint
fn default() -> EdwardsPoint
source§impl<'de> Deserialize<'de> for EdwardsPoint
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for EdwardsPoint
serde
only.source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
source§impl From<EdwardsPoint> for ExtendedPoint
Available on nightly
and curve25519_dalek_backend="simd"
only.
impl From<EdwardsPoint> for ExtendedPoint
nightly
and curve25519_dalek_backend="simd"
only.source§fn from(P: EdwardsPoint) -> ExtendedPoint
fn from(P: EdwardsPoint) -> ExtendedPoint
source§impl From<ExtendedPoint> for EdwardsPoint
Available on nightly
and curve25519_dalek_backend="simd"
only.
impl From<ExtendedPoint> for EdwardsPoint
nightly
and curve25519_dalek_backend="simd"
only.source§fn from(P: ExtendedPoint) -> EdwardsPoint
fn from(P: ExtendedPoint) -> EdwardsPoint
source§impl From<SubgroupPoint> for EdwardsPoint
Available on crate feature group
only.
impl From<SubgroupPoint> for EdwardsPoint
group
only.source§fn from(p: SubgroupPoint) -> Self
fn from(p: SubgroupPoint) -> Self
source§impl Group for EdwardsPoint
Available on crate feature group
only.
impl Group for EdwardsPoint
group
only.source§impl GroupEncoding for EdwardsPoint
Available on crate feature group
only.
impl GroupEncoding for EdwardsPoint
group
only.source§impl Identity for EdwardsPoint
impl Identity for EdwardsPoint
source§fn identity() -> EdwardsPoint
fn identity() -> EdwardsPoint
source§impl<'a, 'b> Mul<&'b EdwardsPoint> for &'a Scalar
impl<'a, 'b> Mul<&'b EdwardsPoint> for &'a Scalar
source§fn mul(self, point: &'b EdwardsPoint) -> EdwardsPoint
fn mul(self, point: &'b EdwardsPoint) -> EdwardsPoint
Scalar multiplication: compute scalar * self
.
For scalar multiplication of a basepoint,
EdwardsBasepointTable
is approximately 4x faster.
§type Output = EdwardsPoint
type Output = EdwardsPoint
*
operator.source§impl<'b> Mul<&'b EdwardsPoint> for Scalar
impl<'b> Mul<&'b EdwardsPoint> for Scalar
§type Output = EdwardsPoint
type Output = EdwardsPoint
*
operator.source§fn mul(self, rhs: &'b EdwardsPoint) -> EdwardsPoint
fn mul(self, rhs: &'b EdwardsPoint) -> EdwardsPoint
*
operation. Read moresource§impl<'a, 'b> Mul<&'b Scalar> for &'a EdwardsPoint
impl<'a, 'b> Mul<&'b Scalar> for &'a EdwardsPoint
source§fn mul(self, scalar: &'b Scalar) -> EdwardsPoint
fn mul(self, scalar: &'b Scalar) -> EdwardsPoint
Scalar multiplication: compute scalar * self
.
For scalar multiplication of a basepoint,
EdwardsBasepointTable
is approximately 4x faster.
§type Output = EdwardsPoint
type Output = EdwardsPoint
*
operator.source§impl<'b> Mul<&'b Scalar> for EdwardsPoint
impl<'b> Mul<&'b Scalar> for EdwardsPoint
§type Output = EdwardsPoint
type Output = EdwardsPoint
*
operator.source§impl<'a> Mul<EdwardsPoint> for &'a Scalar
impl<'a> Mul<EdwardsPoint> for &'a Scalar
§type Output = EdwardsPoint
type Output = EdwardsPoint
*
operator.source§fn mul(self, rhs: EdwardsPoint) -> EdwardsPoint
fn mul(self, rhs: EdwardsPoint) -> EdwardsPoint
*
operation. Read moresource§impl Mul<EdwardsPoint> for Scalar
impl Mul<EdwardsPoint> for Scalar
§type Output = EdwardsPoint
type Output = EdwardsPoint
*
operator.source§fn mul(self, rhs: EdwardsPoint) -> EdwardsPoint
fn mul(self, rhs: EdwardsPoint) -> EdwardsPoint
*
operation. Read moresource§impl<'a> Mul<Scalar> for &'a EdwardsPoint
impl<'a> Mul<Scalar> for &'a EdwardsPoint
§type Output = EdwardsPoint
type Output = EdwardsPoint
*
operator.source§impl Mul<Scalar> for EdwardsPoint
impl Mul<Scalar> for EdwardsPoint
§type Output = EdwardsPoint
type Output = EdwardsPoint
*
operator.source§impl<'b> MulAssign<&'b Scalar> for EdwardsPoint
impl<'b> MulAssign<&'b Scalar> for EdwardsPoint
source§fn mul_assign(&mut self, scalar: &'b Scalar)
fn mul_assign(&mut self, scalar: &'b Scalar)
*=
operation. Read moresource§impl MulAssign<Scalar> for EdwardsPoint
impl MulAssign<Scalar> for EdwardsPoint
source§fn mul_assign(&mut self, rhs: Scalar)
fn mul_assign(&mut self, rhs: Scalar)
*=
operation. Read moresource§impl MultiscalarMul for EdwardsPoint
Available on crate feature alloc
only.
impl MultiscalarMul for EdwardsPoint
alloc
only.§type Point = EdwardsPoint
type Point = EdwardsPoint
RistrettoPoint
.source§fn multiscalar_mul<I, J>(scalars: I, points: J) -> EdwardsPoint
fn multiscalar_mul<I, J>(scalars: I, points: J) -> EdwardsPoint
source§impl<'a> Neg for &'a EdwardsPoint
impl<'a> Neg for &'a EdwardsPoint
§type Output = EdwardsPoint
type Output = EdwardsPoint
-
operator.source§fn neg(self) -> EdwardsPoint
fn neg(self) -> EdwardsPoint
-
operation. Read moresource§impl Neg for EdwardsPoint
impl Neg for EdwardsPoint
§type Output = EdwardsPoint
type Output = EdwardsPoint
-
operator.source§fn neg(self) -> EdwardsPoint
fn neg(self) -> EdwardsPoint
-
operation. Read moresource§impl PartialEq for EdwardsPoint
impl PartialEq for EdwardsPoint
source§fn eq(&self, other: &EdwardsPoint) -> bool
fn eq(&self, other: &EdwardsPoint) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EdwardsPoint
Available on crate feature serde
only.
impl Serialize for EdwardsPoint
serde
only.source§impl<'a, 'b> Sub<&'b AffineNielsPoint> for &'a EdwardsPoint
impl<'a, 'b> Sub<&'b AffineNielsPoint> for &'a EdwardsPoint
§type Output = CompletedPoint
type Output = CompletedPoint
-
operator.source§fn sub(self, other: &'b AffineNielsPoint) -> CompletedPoint
fn sub(self, other: &'b AffineNielsPoint) -> CompletedPoint
-
operation. Read moresource§impl<'a, 'b> Sub<&'b EdwardsPoint> for &'a EdwardsPoint
impl<'a, 'b> Sub<&'b EdwardsPoint> for &'a EdwardsPoint
§type Output = EdwardsPoint
type Output = EdwardsPoint
-
operator.source§fn sub(self, other: &'b EdwardsPoint) -> EdwardsPoint
fn sub(self, other: &'b EdwardsPoint) -> EdwardsPoint
-
operation. Read moresource§impl<'b> Sub<&'b EdwardsPoint> for EdwardsPoint
impl<'b> Sub<&'b EdwardsPoint> for EdwardsPoint
§type Output = EdwardsPoint
type Output = EdwardsPoint
-
operator.source§fn sub(self, rhs: &'b EdwardsPoint) -> EdwardsPoint
fn sub(self, rhs: &'b EdwardsPoint) -> EdwardsPoint
-
operation. Read moresource§impl<'a, 'b> Sub<&'b ProjectiveNielsPoint> for &'a EdwardsPoint
impl<'a, 'b> Sub<&'b ProjectiveNielsPoint> for &'a EdwardsPoint
§type Output = CompletedPoint
type Output = CompletedPoint
-
operator.source§fn sub(self, other: &'b ProjectiveNielsPoint) -> CompletedPoint
fn sub(self, other: &'b ProjectiveNielsPoint) -> CompletedPoint
-
operation. Read moresource§impl Sub<&SubgroupPoint> for &EdwardsPoint
Available on crate feature group
only.
impl Sub<&SubgroupPoint> for &EdwardsPoint
group
only.§type Output = EdwardsPoint
type Output = EdwardsPoint
-
operator.source§fn sub(self, other: &SubgroupPoint) -> EdwardsPoint
fn sub(self, other: &SubgroupPoint) -> EdwardsPoint
-
operation. Read moresource§impl<'b> Sub<&'b SubgroupPoint> for EdwardsPoint
impl<'b> Sub<&'b SubgroupPoint> for EdwardsPoint
§type Output = EdwardsPoint
type Output = EdwardsPoint
-
operator.source§fn sub(self, rhs: &'b SubgroupPoint) -> EdwardsPoint
fn sub(self, rhs: &'b SubgroupPoint) -> EdwardsPoint
-
operation. Read moresource§impl<'a> Sub<EdwardsPoint> for &'a EdwardsPoint
impl<'a> Sub<EdwardsPoint> for &'a EdwardsPoint
§type Output = EdwardsPoint
type Output = EdwardsPoint
-
operator.source§fn sub(self, rhs: EdwardsPoint) -> EdwardsPoint
fn sub(self, rhs: EdwardsPoint) -> EdwardsPoint
-
operation. Read moresource§impl<'a> Sub<SubgroupPoint> for &'a EdwardsPoint
impl<'a> Sub<SubgroupPoint> for &'a EdwardsPoint
§type Output = EdwardsPoint
type Output = EdwardsPoint
-
operator.source§fn sub(self, rhs: SubgroupPoint) -> EdwardsPoint
fn sub(self, rhs: SubgroupPoint) -> EdwardsPoint
-
operation. Read moresource§impl Sub<SubgroupPoint> for EdwardsPoint
impl Sub<SubgroupPoint> for EdwardsPoint
§type Output = EdwardsPoint
type Output = EdwardsPoint
-
operator.source§fn sub(self, rhs: SubgroupPoint) -> EdwardsPoint
fn sub(self, rhs: SubgroupPoint) -> EdwardsPoint
-
operation. Read moresource§impl Sub for EdwardsPoint
impl Sub for EdwardsPoint
§type Output = EdwardsPoint
type Output = EdwardsPoint
-
operator.source§fn sub(self, rhs: EdwardsPoint) -> EdwardsPoint
fn sub(self, rhs: EdwardsPoint) -> EdwardsPoint
-
operation. Read moresource§impl<'b> SubAssign<&'b EdwardsPoint> for EdwardsPoint
impl<'b> SubAssign<&'b EdwardsPoint> for EdwardsPoint
source§fn sub_assign(&mut self, _rhs: &'b EdwardsPoint)
fn sub_assign(&mut self, _rhs: &'b EdwardsPoint)
-=
operation. Read moresource§impl SubAssign<&SubgroupPoint> for EdwardsPoint
Available on crate feature group
only.
impl SubAssign<&SubgroupPoint> for EdwardsPoint
group
only.source§fn sub_assign(&mut self, rhs: &SubgroupPoint)
fn sub_assign(&mut self, rhs: &SubgroupPoint)
-=
operation. Read moresource§impl SubAssign<SubgroupPoint> for EdwardsPoint
impl SubAssign<SubgroupPoint> for EdwardsPoint
source§fn sub_assign(&mut self, rhs: SubgroupPoint)
fn sub_assign(&mut self, rhs: SubgroupPoint)
-=
operation. Read moresource§impl SubAssign for EdwardsPoint
impl SubAssign for EdwardsPoint
source§fn sub_assign(&mut self, rhs: EdwardsPoint)
fn sub_assign(&mut self, rhs: EdwardsPoint)
-=
operation. Read moresource§impl<T> Sum<T> for EdwardsPointwhere
T: Borrow<EdwardsPoint>,
impl<T> Sum<T> for EdwardsPointwhere
T: Borrow<EdwardsPoint>,
source§impl VartimeMultiscalarMul for EdwardsPoint
Available on crate feature alloc
only.
impl VartimeMultiscalarMul for EdwardsPoint
alloc
only.§type Point = EdwardsPoint
type Point = EdwardsPoint
RistrettoPoint
.source§fn optional_multiscalar_mul<I, J>(scalars: I, points: J) -> Option<EdwardsPoint>
fn optional_multiscalar_mul<I, J>(scalars: I, points: J) -> Option<EdwardsPoint>
Option
s of points, compute either Some(Q)
, where
$$
Q = c_1 P_1 + \cdots + c_n P_n,
$$
if all points were Some(P_i)
, or else return None
. Read moresource§fn vartime_multiscalar_mul<I, J>(scalars: I, points: J) -> Self::Pointwhere
I: IntoIterator,
I::Item: Borrow<Scalar>,
J: IntoIterator,
J::Item: Borrow<Self::Point>,
Self::Point: Clone,
fn vartime_multiscalar_mul<I, J>(scalars: I, points: J) -> Self::Pointwhere
I: IntoIterator,
I::Item: Borrow<Scalar>,
J: IntoIterator,
J::Item: Borrow<Self::Point>,
Self::Point: Clone,
source§impl Zeroize for EdwardsPoint
Available on crate feature zeroize
only.
impl Zeroize for EdwardsPoint
zeroize
only.impl Copy for EdwardsPoint
impl Eq for EdwardsPoint
Auto Trait Implementations§
impl Freeze for EdwardsPoint
impl RefUnwindSafe for EdwardsPoint
impl Send for EdwardsPoint
impl Sync for EdwardsPoint
impl Unpin for EdwardsPoint
impl UnwindSafe for EdwardsPoint
Blanket Implementations§
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
source§impl<T> ConditionallyNegatable for T
impl<T> ConditionallyNegatable for T
source§fn conditional_negate(&mut self, choice: Choice)
fn conditional_negate(&mut self, choice: Choice)
source§impl<T> FmtForward for T
impl<T> FmtForward for T
source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.source§impl<T> IsIdentity for Twhere
T: ConstantTimeEq + Identity,
impl<T> IsIdentity for Twhere
T: ConstantTimeEq + Identity,
source§fn is_identity(&self) -> bool
fn is_identity(&self) -> bool
source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moresource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moresource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.source§impl<T> Tap for T
impl<T> Tap for T
source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read moresource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read moresource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read moresource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read moresource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read moresource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read moresource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.