pub struct DecafPoint(pub(crate) ExtendedPoint);Expand description
A Decaf point in the Twisted Edwards curve
Tuple Fields§
§0: ExtendedPointImplementations§
Source§impl DecafPoint
impl DecafPoint
Sourcepub const GENERATOR: DecafPoint
pub const GENERATOR: DecafPoint
The generator point
Sourcepub const IDENTITY: DecafPoint
pub const IDENTITY: DecafPoint
The identity point
Sourcepub fn is_identity(&self) -> Choice
pub fn is_identity(&self) -> Choice
Check if the point is the identity
Sourcepub fn add(&self, other: &DecafPoint) -> DecafPoint
pub fn add(&self, other: &DecafPoint) -> DecafPoint
Add two points
Sourcepub fn sub(&self, other: &DecafPoint) -> DecafPoint
pub fn sub(&self, other: &DecafPoint) -> DecafPoint
Subtract two points
Sourcepub fn compress(&self) -> CompressedDecaf
pub fn compress(&self) -> CompressedDecaf
Compress this point
Sourcepub fn from_uniform_bytes(bytes: &[u8; 112]) -> Self
pub fn from_uniform_bytes(bytes: &[u8; 112]) -> Self
Construct a DecafPoint from 112 bytes of data.
If the input bytes are uniformly distributed, the resulting point will be uniformly distributed over the group, and its discrete log with respect to other points is unknown.
Implements map to curve according see https://datatracker.ietf.org/doc/rfc9380/ section 5.3.4 by splitting the input into two 56-byte halves, then applies the decaf448_map to each, and adds the results.
Trait Implementations§
Source§impl Add<&AffinePoint> for &DecafPoint
impl Add<&AffinePoint> for &DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
+ operator.Source§impl<'b> Add<&'b AffinePoint> for DecafPoint
impl<'b> Add<&'b AffinePoint> for DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
+ operator.Source§fn add(self, rhs: &'b DecafAffinePoint) -> DecafPoint
fn add(self, rhs: &'b DecafAffinePoint) -> DecafPoint
Performs the
+ operation. Read moreSource§impl Add<&DecafPoint> for &DecafAffinePoint
impl Add<&DecafPoint> for &DecafAffinePoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
+ operator.Source§impl Add<&DecafPoint> for &DecafPoint
impl Add<&DecafPoint> for &DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
+ operator.Source§fn add(self, other: &DecafPoint) -> DecafPoint
fn add(self, other: &DecafPoint) -> DecafPoint
Performs the
+ operation. Read moreSource§impl<'b> Add<&'b DecafPoint> for DecafAffinePoint
impl<'b> Add<&'b DecafPoint> for DecafAffinePoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
+ operator.Source§fn add(self, rhs: &'b DecafPoint) -> DecafPoint
fn add(self, rhs: &'b DecafPoint) -> DecafPoint
Performs the
+ operation. Read moreSource§impl<'b> Add<&'b DecafPoint> for DecafPoint
impl<'b> Add<&'b DecafPoint> for DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
+ operator.Source§fn add(self, rhs: &'b DecafPoint) -> DecafPoint
fn add(self, rhs: &'b DecafPoint) -> DecafPoint
Performs the
+ operation. Read moreSource§impl<'a> Add<AffinePoint> for &'a DecafPoint
impl<'a> Add<AffinePoint> for &'a DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
+ operator.Source§fn add(self, rhs: DecafAffinePoint) -> DecafPoint
fn add(self, rhs: DecafAffinePoint) -> DecafPoint
Performs the
+ operation. Read moreSource§impl Add<AffinePoint> for DecafPoint
impl Add<AffinePoint> for DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
+ operator.Source§fn add(self, rhs: DecafAffinePoint) -> DecafPoint
fn add(self, rhs: DecafAffinePoint) -> DecafPoint
Performs the
+ operation. Read moreSource§impl<'a> Add<DecafPoint> for &'a DecafAffinePoint
impl<'a> Add<DecafPoint> for &'a DecafAffinePoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
+ operator.Source§fn add(self, rhs: DecafPoint) -> DecafPoint
fn add(self, rhs: DecafPoint) -> DecafPoint
Performs the
+ operation. Read moreSource§impl<'a> Add<DecafPoint> for &'a DecafPoint
impl<'a> Add<DecafPoint> for &'a DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
+ operator.Source§fn add(self, rhs: DecafPoint) -> DecafPoint
fn add(self, rhs: DecafPoint) -> DecafPoint
Performs the
+ operation. Read moreSource§impl Add<DecafPoint> for DecafAffinePoint
impl Add<DecafPoint> for DecafAffinePoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
+ operator.Source§fn add(self, rhs: DecafPoint) -> DecafPoint
fn add(self, rhs: DecafPoint) -> DecafPoint
Performs the
+ operation. Read moreSource§impl Add for DecafPoint
impl Add for DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
+ operator.Source§fn add(self, rhs: DecafPoint) -> DecafPoint
fn add(self, rhs: DecafPoint) -> DecafPoint
Performs the
+ operation. Read moreSource§impl AddAssign<&AffinePoint> for DecafPoint
impl AddAssign<&AffinePoint> for DecafPoint
Source§fn add_assign(&mut self, other: &DecafAffinePoint)
fn add_assign(&mut self, other: &DecafAffinePoint)
Performs the
+= operation. Read moreSource§impl AddAssign<&DecafPoint> for DecafAffinePoint
impl AddAssign<&DecafPoint> for DecafAffinePoint
Source§fn add_assign(&mut self, rhs: &DecafPoint)
fn add_assign(&mut self, rhs: &DecafPoint)
Performs the
+= operation. Read moreSource§impl AddAssign<&DecafPoint> for DecafPoint
impl AddAssign<&DecafPoint> for DecafPoint
Source§fn add_assign(&mut self, other: &DecafPoint)
fn add_assign(&mut self, other: &DecafPoint)
Performs the
+= operation. Read moreSource§impl AddAssign<AffinePoint> for DecafPoint
impl AddAssign<AffinePoint> for DecafPoint
Source§fn add_assign(&mut self, rhs: DecafAffinePoint)
fn add_assign(&mut self, rhs: DecafAffinePoint)
Performs the
+= operation. Read moreSource§impl AddAssign<DecafPoint> for DecafAffinePoint
impl AddAssign<DecafPoint> for DecafAffinePoint
Source§fn add_assign(&mut self, rhs: DecafPoint)
fn add_assign(&mut self, rhs: DecafPoint)
Performs the
+= operation. Read moreSource§impl AddAssign for DecafPoint
impl AddAssign for DecafPoint
Source§fn add_assign(&mut self, other: DecafPoint)
fn add_assign(&mut self, other: DecafPoint)
Performs the
+= operation. Read moreSource§impl Clone for DecafPoint
impl Clone for DecafPoint
Source§fn clone(&self) -> DecafPoint
fn clone(&self) -> DecafPoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CofactorGroup for DecafPoint
impl CofactorGroup for DecafPoint
Source§type Subgroup = DecafPoint
type Subgroup = DecafPoint
The large prime-order subgroup in which cryptographic operations are performed.
If
Self implements PrimeGroup, then Self::Subgroup may be Self.Source§fn clear_cofactor(&self) -> Self::Subgroup
fn clear_cofactor(&self) -> Self::Subgroup
Maps
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>
Returns
self if it is contained in the prime-order subgroup. Read moreSource§fn is_torsion_free(&self) -> Choice
fn is_torsion_free(&self) -> Choice
Determines if this element is “torsion free”, i.e., is contained in the
prime-order subgroup. Read more
Source§fn is_small_order(&self) -> Choice
fn is_small_order(&self) -> Choice
Determines if this element is of small order. Read more
Source§impl ConditionallySelectable for DecafPoint
impl ConditionallySelectable for DecafPoint
Source§fn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self
fn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self
Source§fn conditional_assign(&mut self, other: &Self, choice: Choice)
fn conditional_assign(&mut self, other: &Self, choice: Choice)
Source§fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)
fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)
Conditionally swap
self and other if choice == 1; otherwise,
reassign both unto themselves. Read moreSource§impl ConstantTimeEq for DecafPoint
impl ConstantTimeEq for DecafPoint
Source§impl CtEq for DecafPoint
impl CtEq for DecafPoint
Source§impl CtSelect for DecafPoint
impl CtSelect for DecafPoint
Source§impl Curve for DecafPoint
impl Curve for DecafPoint
Source§type Affine = AffinePoint
type Affine = AffinePoint
The affine representation for this elliptic curve.
Source§fn batch_normalize(p: &[Self], q: &mut [Self::Affine])
fn batch_normalize(p: &[Self], q: &mut [Self::Affine])
Converts a batch of projective elements into affine elements. This function will
panic if
p.len() != q.len().Source§impl Debug for DecafPoint
impl Debug for DecafPoint
Source§impl Default for DecafPoint
impl Default for DecafPoint
Source§impl Display for DecafPoint
impl Display for DecafPoint
Source§impl From<&AffinePoint> for DecafPoint
impl From<&AffinePoint> for DecafPoint
Source§fn from(point: &DecafAffinePoint) -> Self
fn from(point: &DecafAffinePoint) -> Self
Converts to this type from the input type.
Source§impl From<&DecafPoint> for DecafAffinePoint
impl From<&DecafPoint> for DecafAffinePoint
Source§fn from(point: &DecafPoint) -> Self
fn from(point: &DecafPoint) -> Self
Converts to this type from the input type.
Source§impl From<&DecafPoint> for EdwardsPoint
impl From<&DecafPoint> for EdwardsPoint
Source§fn from(point: &DecafPoint) -> Self
fn from(point: &DecafPoint) -> Self
Converts to this type from the input type.
Source§impl From<&EdwardsPoint> for DecafPoint
impl From<&EdwardsPoint> for DecafPoint
Source§fn from(point: &EdwardsPoint) -> Self
fn from(point: &EdwardsPoint) -> Self
Converts to this type from the input type.
Source§impl From<AffinePoint> for DecafPoint
impl From<AffinePoint> for DecafPoint
Source§fn from(point: DecafAffinePoint) -> Self
fn from(point: DecafAffinePoint) -> Self
Converts to this type from the input type.
Source§impl From<DecafPoint> for DecafAffinePoint
impl From<DecafPoint> for DecafAffinePoint
Source§fn from(point: DecafPoint) -> Self
fn from(point: DecafPoint) -> Self
Converts to this type from the input type.
Source§impl From<DecafPoint> for EdwardsPoint
impl From<DecafPoint> for EdwardsPoint
Source§fn from(point: DecafPoint) -> Self
fn from(point: DecafPoint) -> Self
Converts to this type from the input type.
Source§impl From<EdwardsPoint> for DecafPoint
impl From<EdwardsPoint> for DecafPoint
Source§fn from(point: EdwardsPoint) -> Self
fn from(point: EdwardsPoint) -> Self
Converts to this type from the input type.
Source§impl From<NonIdentity<DecafPoint>> for DecafPoint
impl From<NonIdentity<DecafPoint>> for DecafPoint
Source§fn from(decaf: NonIdentity<DecafPoint>) -> Self
fn from(decaf: NonIdentity<DecafPoint>) -> Self
Converts to this type from the input type.
Source§impl Generate for DecafPoint
impl Generate for DecafPoint
Source§fn try_generate_from_rng<R: TryCryptoRng + ?Sized>(
rng: &mut R,
) -> Result<Self, R::Error>
fn try_generate_from_rng<R: TryCryptoRng + ?Sized>( rng: &mut R, ) -> Result<Self, R::Error>
Generate random key using the provided
TryCryptoRng. Read moreSource§fn generate_from_rng<R>(rng: &mut R) -> Self
fn generate_from_rng<R>(rng: &mut R) -> Self
Generate random key using the provided
CryptoRng.Source§impl Group for DecafPoint
impl Group for DecafPoint
Source§fn try_random<R>(rng: &mut R) -> Result<Self, R::Error>
fn try_random<R>(rng: &mut R) -> Result<Self, R::Error>
Returns an element chosen uniformly at random from the non-identity elements of
this group using a user-provided fallible RNG. Read more
Source§fn is_identity(&self) -> Choice
fn is_identity(&self) -> Choice
Determines if this point is the identity.
Source§fn random<R>(rng: &mut R) -> Self
fn random<R>(rng: &mut R) -> Self
Returns an element chosen uniformly at random from the non-identity elements of
this group using a user-provided infallible RNG. Read more
Source§fn mul_by_generator(scalar: &Self::Scalar) -> Self
fn mul_by_generator(scalar: &Self::Scalar) -> Self
Multiply by the generator of the prime-order subgroup.
Source§impl GroupEncoding for DecafPoint
impl GroupEncoding for DecafPoint
Source§type Repr = Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>, B0>>
type Repr = Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>, B0>>
The encoding of group elements. Read more
Source§fn from_bytes(bytes: &Self::Repr) -> CtOption<Self>
fn from_bytes(bytes: &Self::Repr) -> CtOption<Self>
Attempts to deserialize a group element from its encoding.
Source§impl LinearCombination<[(DecafPoint, Scalar<Decaf448>)]> for DecafPoint
impl LinearCombination<[(DecafPoint, Scalar<Decaf448>)]> for DecafPoint
Source§fn lincomb(points_and_scalars: &PointsAndScalars) -> Self
fn lincomb(points_and_scalars: &PointsAndScalars) -> Self
Calculates
x1 * k1 + ... + xn * kn.Source§fn lincomb_vartime(points_and_scalars: &PointsAndScalars) -> Self
fn lincomb_vartime(points_and_scalars: &PointsAndScalars) -> Self
Calculates
x1 * k1 + ... + xn * kn. Read moreSource§impl<const N: usize> LinearCombination<[(DecafPoint, Scalar<Decaf448>); N]> for DecafPoint
impl<const N: usize> LinearCombination<[(DecafPoint, Scalar<Decaf448>); N]> for DecafPoint
Source§fn lincomb(points_and_scalars: &PointsAndScalars) -> Self
fn lincomb(points_and_scalars: &PointsAndScalars) -> Self
Calculates
x1 * k1 + ... + xn * kn.Source§fn lincomb_vartime(points_and_scalars: &PointsAndScalars) -> Self
fn lincomb_vartime(points_and_scalars: &PointsAndScalars) -> Self
Calculates
x1 * k1 + ... + xn * kn. Read moreSource§impl LowerHex for DecafPoint
impl LowerHex for DecafPoint
Source§impl Mul<&Scalar<Decaf448>> for &DecafPoint
Scalar Mul Operations
impl Mul<&Scalar<Decaf448>> for &DecafPoint
Scalar Mul Operations
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
* operator.Source§fn mul(self, scalar: &DecafScalar) -> DecafPoint
fn mul(self, scalar: &DecafScalar) -> DecafPoint
Performs the
* operation. Read moreSource§impl<'b> Mul<&'b Scalar<Decaf448>> for DecafPoint
impl<'b> Mul<&'b Scalar<Decaf448>> for DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
* operator.Source§fn mul(self, rhs: &'b DecafScalar) -> DecafPoint
fn mul(self, rhs: &'b DecafScalar) -> DecafPoint
Performs the
* operation. Read moreSource§impl<'a> Mul<Scalar<Decaf448>> for &'a DecafPoint
impl<'a> Mul<Scalar<Decaf448>> for &'a DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
* operator.Source§fn mul(self, rhs: DecafScalar) -> DecafPoint
fn mul(self, rhs: DecafScalar) -> DecafPoint
Performs the
* operation. Read moreSource§impl Mul<Scalar<Decaf448>> for DecafPoint
impl Mul<Scalar<Decaf448>> for DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
* operator.Source§fn mul(self, rhs: DecafScalar) -> DecafPoint
fn mul(self, rhs: DecafScalar) -> DecafPoint
Performs the
* operation. Read moreSource§impl<'s> MulAssign<&'s Scalar<Decaf448>> for DecafPoint
impl<'s> MulAssign<&'s Scalar<Decaf448>> for DecafPoint
Source§fn mul_assign(&mut self, scalar: &'s DecafScalar)
fn mul_assign(&mut self, scalar: &'s DecafScalar)
Performs the
*= operation. Read moreSource§impl MulAssign<Scalar<Decaf448>> for DecafPoint
impl MulAssign<Scalar<Decaf448>> for DecafPoint
Source§fn mul_assign(&mut self, scalar: DecafScalar)
fn mul_assign(&mut self, scalar: DecafScalar)
Performs the
*= operation. Read moreSource§impl MulByGeneratorVartime for DecafPoint
impl MulByGeneratorVartime for DecafPoint
Source§fn mul_by_generator_vartime(scalar: &Self::Scalar) -> Self
fn mul_by_generator_vartime(scalar: &Self::Scalar) -> Self
Multiply by the generator of the prime-order subgroup. Read more
Source§impl MulVartime<&Scalar<Decaf448>> for &DecafPoint
impl MulVartime<&Scalar<Decaf448>> for &DecafPoint
Source§fn mul_vartime(self, scalar: &DecafScalar) -> DecafPoint
fn mul_vartime(self, scalar: &DecafScalar) -> DecafPoint
Multiply
self by rhs in variable-time.Source§impl MulVartime<&Scalar<Decaf448>> for DecafPoint
impl MulVartime<&Scalar<Decaf448>> for DecafPoint
Source§fn mul_vartime(self, scalar: &DecafScalar) -> DecafPoint
fn mul_vartime(self, scalar: &DecafScalar) -> DecafPoint
Multiply
self by rhs in variable-time.Source§impl MulVartime<Scalar<Decaf448>> for DecafPoint
impl MulVartime<Scalar<Decaf448>> for DecafPoint
Source§fn mul_vartime(self, scalar: DecafScalar) -> DecafPoint
fn mul_vartime(self, scalar: DecafScalar) -> DecafPoint
Multiply
self by rhs in variable-time.Source§impl Neg for &DecafPoint
impl Neg for &DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
- operator.Source§fn neg(self) -> DecafPoint
fn neg(self) -> DecafPoint
Performs the unary
- operation. Read moreSource§impl Neg for DecafPoint
impl Neg for DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
- operator.Source§fn neg(self) -> DecafPoint
fn neg(self) -> DecafPoint
Performs the unary
- operation. Read moreSource§impl PartialEq for DecafPoint
impl PartialEq for DecafPoint
Source§impl Sub<&AffinePoint> for &DecafPoint
impl Sub<&AffinePoint> for &DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
- operator.Source§impl<'b> Sub<&'b AffinePoint> for DecafPoint
impl<'b> Sub<&'b AffinePoint> for DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
- operator.Source§fn sub(self, rhs: &'b DecafAffinePoint) -> DecafPoint
fn sub(self, rhs: &'b DecafAffinePoint) -> DecafPoint
Performs the
- operation. Read moreSource§impl Sub<&DecafPoint> for &DecafAffinePoint
impl Sub<&DecafPoint> for &DecafAffinePoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
- operator.Source§impl Sub<&DecafPoint> for &DecafPoint
impl Sub<&DecafPoint> for &DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
- operator.Source§fn sub(self, other: &DecafPoint) -> DecafPoint
fn sub(self, other: &DecafPoint) -> DecafPoint
Performs the
- operation. Read moreSource§impl<'b> Sub<&'b DecafPoint> for DecafAffinePoint
impl<'b> Sub<&'b DecafPoint> for DecafAffinePoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
- operator.Source§fn sub(self, rhs: &'b DecafPoint) -> DecafPoint
fn sub(self, rhs: &'b DecafPoint) -> DecafPoint
Performs the
- operation. Read moreSource§impl<'b> Sub<&'b DecafPoint> for DecafPoint
impl<'b> Sub<&'b DecafPoint> for DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
- operator.Source§fn sub(self, rhs: &'b DecafPoint) -> DecafPoint
fn sub(self, rhs: &'b DecafPoint) -> DecafPoint
Performs the
- operation. Read moreSource§impl<'a> Sub<AffinePoint> for &'a DecafPoint
impl<'a> Sub<AffinePoint> for &'a DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
- operator.Source§fn sub(self, rhs: DecafAffinePoint) -> DecafPoint
fn sub(self, rhs: DecafAffinePoint) -> DecafPoint
Performs the
- operation. Read moreSource§impl Sub<AffinePoint> for DecafPoint
impl Sub<AffinePoint> for DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
- operator.Source§fn sub(self, rhs: DecafAffinePoint) -> DecafPoint
fn sub(self, rhs: DecafAffinePoint) -> DecafPoint
Performs the
- operation. Read moreSource§impl<'a> Sub<DecafPoint> for &'a DecafAffinePoint
impl<'a> Sub<DecafPoint> for &'a DecafAffinePoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
- operator.Source§fn sub(self, rhs: DecafPoint) -> DecafPoint
fn sub(self, rhs: DecafPoint) -> DecafPoint
Performs the
- operation. Read moreSource§impl<'a> Sub<DecafPoint> for &'a DecafPoint
impl<'a> Sub<DecafPoint> for &'a DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
- operator.Source§fn sub(self, rhs: DecafPoint) -> DecafPoint
fn sub(self, rhs: DecafPoint) -> DecafPoint
Performs the
- operation. Read moreSource§impl Sub<DecafPoint> for DecafAffinePoint
impl Sub<DecafPoint> for DecafAffinePoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
- operator.Source§fn sub(self, rhs: DecafPoint) -> DecafPoint
fn sub(self, rhs: DecafPoint) -> DecafPoint
Performs the
- operation. Read moreSource§impl Sub for DecafPoint
impl Sub for DecafPoint
Source§type Output = DecafPoint
type Output = DecafPoint
The resulting type after applying the
- operator.Source§fn sub(self, rhs: DecafPoint) -> DecafPoint
fn sub(self, rhs: DecafPoint) -> DecafPoint
Performs the
- operation. Read moreSource§impl SubAssign<&AffinePoint> for DecafPoint
impl SubAssign<&AffinePoint> for DecafPoint
Source§fn sub_assign(&mut self, other: &DecafAffinePoint)
fn sub_assign(&mut self, other: &DecafAffinePoint)
Performs the
-= operation. Read moreSource§impl SubAssign<&DecafPoint> for DecafAffinePoint
impl SubAssign<&DecafPoint> for DecafAffinePoint
Source§fn sub_assign(&mut self, rhs: &DecafPoint)
fn sub_assign(&mut self, rhs: &DecafPoint)
Performs the
-= operation. Read moreSource§impl SubAssign<&DecafPoint> for DecafPoint
impl SubAssign<&DecafPoint> for DecafPoint
Source§fn sub_assign(&mut self, other: &DecafPoint)
fn sub_assign(&mut self, other: &DecafPoint)
Performs the
-= operation. Read moreSource§impl SubAssign<AffinePoint> for DecafPoint
impl SubAssign<AffinePoint> for DecafPoint
Source§fn sub_assign(&mut self, rhs: DecafAffinePoint)
fn sub_assign(&mut self, rhs: DecafAffinePoint)
Performs the
-= operation. Read moreSource§impl SubAssign<DecafPoint> for DecafAffinePoint
impl SubAssign<DecafPoint> for DecafAffinePoint
Source§fn sub_assign(&mut self, rhs: DecafPoint)
fn sub_assign(&mut self, rhs: DecafPoint)
Performs the
-= operation. Read moreSource§impl SubAssign for DecafPoint
impl SubAssign for DecafPoint
Source§fn sub_assign(&mut self, other: DecafPoint)
fn sub_assign(&mut self, other: DecafPoint)
Performs the
-= operation. Read moreSource§impl<T> Sum<T> for DecafPointwhere
T: Borrow<DecafPoint>,
impl<T> Sum<T> for DecafPointwhere
T: Borrow<DecafPoint>,
Source§impl TryFrom<&[u8]> for DecafPoint
Available on crate feature alloc only.
impl TryFrom<&[u8]> for DecafPoint
Available on crate feature
alloc only.Source§impl TryFrom<DecafPoint> for NonIdentity<DecafPoint>
The constant-time alternative is available at NonIdentity::new().
impl TryFrom<DecafPoint> for NonIdentity<DecafPoint>
The constant-time alternative is available at NonIdentity::new().
Source§impl UpperHex for DecafPoint
impl UpperHex for DecafPoint
impl Copy for DecafPoint
impl DefaultIsZeroes for DecafPoint
impl Eq for DecafPoint
impl PrimeGroup for DecafPoint
Auto Trait Implementations§
impl Freeze for DecafPoint
impl RefUnwindSafe for DecafPoint
impl Send for DecafPoint
impl Sync for DecafPoint
impl Unpin for DecafPoint
impl UnsafeUnpin for DecafPoint
impl UnwindSafe for DecafPoint
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
Mutably borrows from an owned value. Read more