mirror of
https://github.com/saymrwulf/pasta_curves-source.git
synced 2026-09-04 20:03:39 +00:00
Type aliases for the tweedle groups
This commit is contained in:
parent
3407d13e4b
commit
71111e88b7
3 changed files with 29 additions and 0 deletions
|
|
@ -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
13
src/tweedle/dee.rs
Normal 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
13
src/tweedle/dum.rs
Normal 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;
|
||||
Loading…
Reference in a new issue