Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simple curve cycle trait for curve cycles #190

Merged
merged 13 commits into from
Feb 4, 2021
Next Next commit
Add simple curve cycle trait
  • Loading branch information
drewstone committed Jan 30, 2021
commit b0c340f31d3aa1d76b10dfc55be69fdc85fb5da7
10 changes: 10 additions & 0 deletions ec/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,3 +322,13 @@ where
Fq = <Self::E1 as PairingEngine>::Fr,
>;
}

/// A cycle of elliptic curves, unopinionated
pub trait SimpleCycleEngine: Sized + 'static + Copy + Debug + Sync + Send
where
<Self::E1 as AffineCurve>::Projective: MulAssign<<Self::E2 as AffineCurve>::BaseField>,
<Self::E2 as AffineCurve>::Projective: MulAssign<<Self::E1 as AffineCurve>::BaseField>,
{
type E1: AffineCurve;
type E2: AffineCurve;
}