Trait elliptic_curve::CurveArithmetic
source · pub trait CurveArithmetic: Curve {
type AffinePoint: 'static + AffineCoordinates<FieldRepr = FieldBytes<Self>> + Copy + ConditionallySelectable + ConstantTimeEq + Debug + Default + DefaultIsZeroes + Eq + PartialEq + Sized + Send + Sync;
type ProjectivePoint: ConditionallySelectable + ConstantTimeEq + Default + DefaultIsZeroes + From<Self::AffinePoint> + Into<Self::AffinePoint> + LinearCombination + MulByGenerator + Curve<AffineRepr = Self::AffinePoint> + Group<Scalar = Self::Scalar>;
type Scalar: AsRef<Self::Scalar> + DefaultIsZeroes + From<ScalarPrimitive<Self>> + FromUintUnchecked<Uint = Self::Uint> + Into<FieldBytes<Self>> + Into<ScalarPrimitive<Self>> + Into<Self::Uint> + Invert<Output = CtOption<Self::Scalar>> + IsHigh + PartialOrd + Reduce<Self::Uint, Bytes = FieldBytes<Self>> + ShrAssign<usize> + Field + PrimeField<Repr = FieldBytes<Self>>;
}
Available on crate feature
arithmetic
only.Expand description
Elliptic curve with an arithmetic implementation.
Required Associated Types§
sourcetype AffinePoint: 'static + AffineCoordinates<FieldRepr = FieldBytes<Self>> + Copy + ConditionallySelectable + ConstantTimeEq + Debug + Default + DefaultIsZeroes + Eq + PartialEq + Sized + Send + Sync
type AffinePoint: 'static + AffineCoordinates<FieldRepr = FieldBytes<Self>> + Copy + ConditionallySelectable + ConstantTimeEq + Debug + Default + DefaultIsZeroes + Eq + PartialEq + Sized + Send + Sync
Elliptic curve point in affine coordinates.
sourcetype ProjectivePoint: ConditionallySelectable + ConstantTimeEq + Default + DefaultIsZeroes + From<Self::AffinePoint> + Into<Self::AffinePoint> + LinearCombination + MulByGenerator + Curve<AffineRepr = Self::AffinePoint> + Group<Scalar = Self::Scalar>
type ProjectivePoint: ConditionallySelectable + ConstantTimeEq + Default + DefaultIsZeroes + From<Self::AffinePoint> + Into<Self::AffinePoint> + LinearCombination + MulByGenerator + Curve<AffineRepr = Self::AffinePoint> + Group<Scalar = Self::Scalar>
sourcetype Scalar: AsRef<Self::Scalar> + DefaultIsZeroes + From<ScalarPrimitive<Self>> + FromUintUnchecked<Uint = Self::Uint> + Into<FieldBytes<Self>> + Into<ScalarPrimitive<Self>> + Into<Self::Uint> + Invert<Output = CtOption<Self::Scalar>> + IsHigh + PartialOrd + Reduce<Self::Uint, Bytes = FieldBytes<Self>> + ShrAssign<usize> + Field + PrimeField<Repr = FieldBytes<Self>>
type Scalar: AsRef<Self::Scalar> + DefaultIsZeroes + From<ScalarPrimitive<Self>> + FromUintUnchecked<Uint = Self::Uint> + Into<FieldBytes<Self>> + Into<ScalarPrimitive<Self>> + Into<Self::Uint> + Invert<Output = CtOption<Self::Scalar>> + IsHigh + PartialOrd + Reduce<Self::Uint, Bytes = FieldBytes<Self>> + ShrAssign<usize> + Field + PrimeField<Repr = FieldBytes<Self>>
Scalar field modulo this curve’s order.
Note: the following bounds are provided by ff::Field
:
Object Safety§
This trait is not object safe.