Type aliases for the tweedle groups

This commit is contained in:
Jack Grigg 2020-11-12 21:45:56 +00:00
parent 3407d13e4b
commit 71111e88b7
3 changed files with 29 additions and 0 deletions

View File

@ -6,5 +6,8 @@ mod macros;
mod curves;
mod fields;
pub mod dee;
pub mod dum;
pub use curves::*;
pub use fields::*;

13
src/tweedle/dee.rs Normal file
View File

@ -0,0 +1,13 @@
//! The Tweedledee elliptic curve group.
/// A Tweedledee point in the projective coordinate space.
pub type Point = super::Eq;
/// A Tweedledee point in the affine coordinate space (or the point at infinity).
pub type Affine = super::EqAffine;
/// The base field of the Tweedledee group.
pub type Base = super::Fq;
/// The scalar field of the Tweedledee group.
pub type Scalar = super::Fp;

13
src/tweedle/dum.rs Normal file
View File

@ -0,0 +1,13 @@
//! The Tweedledum elliptic curve group.
/// A Tweedledum point in the projective coordinate space.
pub type Point = super::Ep;
/// A Tweedledum point in the affine coordinate space (or the point at infinity).
pub type Affine = super::EpAffine;
/// The base field of the Tweedledum group.
pub type Base = super::Fp;
/// The scalar field of the Tweedledum group.
pub type Scalar = super::Fq;