1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use crate::{Curve, FieldBytes, Scalar};
#[cfg_attr(docsrs, doc(cfg(feature = "arithmetic")))]
pub trait ProjectiveArithmetic: Curve
where
Scalar<Self>: ff::PrimeField<Repr = FieldBytes<Self>>,
{
type ProjectivePoint: group::Curve;
}
#[cfg_attr(docsrs, doc(cfg(feature = "arithmetic")))]
pub type AffinePoint<C> =
<<C as ProjectiveArithmetic>::ProjectivePoint as group::Curve>::AffineRepr;
#[cfg_attr(docsrs, doc(cfg(feature = "arithmetic")))]
pub type ProjectivePoint<C> = <C as ProjectiveArithmetic>::ProjectivePoint;