group 0.14.0-pre.1

Elliptic curve group traits and utilities
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::{Curve, CurveAffine, Group, GroupEncoding};

/// This trait represents an element of a prime-order cryptographic group.
pub trait PrimeGroup: Group + GroupEncoding {}

/// Efficient representation of an elliptic curve point guaranteed to be
/// in the correct prime order subgroup.
pub trait PrimeCurve: Curve + PrimeGroup {}

/// Affine representation of an elliptic curve point guaranteed to be
/// in the correct prime order subgroup.
pub trait PrimeCurveAffine: CurveAffine {}

impl<C: CurveAffine> PrimeCurveAffine for C where C::Curve: PrimeCurve {}