Skip to main content

PrimeCurve

Trait PrimeCurve 

pub trait PrimeCurve: Curve<AffineRepr = Self::Affine> + PrimeGroup {
    type Affine: PrimeCurveAffine<Curve = Self, Scalar = Self::Scalar, Output = Self, Output = Self> + Mul<Self::Scalar> + for<'r> Mul<&'r Self::Scalar>;
}
Expand description

Efficient representation of an elliptic curve point guaranteed to be in the correct prime order subgroup.

Required Associated Types§

type Affine: PrimeCurveAffine<Curve = Self, Scalar = Self::Scalar, Output = Self, Output = Self> + Mul<Self::Scalar> + for<'r> Mul<&'r Self::Scalar>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

§

impl<C> PrimeCurve for ProjectivePoint<C>

§

type Affine = AffinePoint<C>

Implementors§

§

impl PrimeCurve for airbender_crypto::k256::ProjectivePoint