Skip to content

Commit

Permalink
chore: Port pairing mod traits to new versions of dep traits
Browse files Browse the repository at this point in the history
  • Loading branch information
CPerezz committed Feb 1, 2023
1 parent 1bcad61 commit c248065
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pairing.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
use crate::{CurveAffine, FieldExt, Group as _Group};
use crate::CurveAffine;
use core::ops::Mul;
use ff::Field;
use group::{
prime::PrimeCurve, Group, GroupOps, GroupOpsOwned, ScalarMul, ScalarMulOwned,
UncompressedEncoding,
};

pub trait Engine: Sized + 'static + Clone {
/// This is the scalar field of the engine's groups.
type Scalar: FieldExt;
type Scalar: Field;

/// The projective representation of an element in G1.
type G1: PrimeCurve<Scalar = Self::Scalar, Affine = Self::G1Affine>
Expand All @@ -16,7 +17,7 @@ pub trait Engine: Sized + 'static + Clone {
+ GroupOpsOwned<Self::G1Affine>
+ ScalarMul<Self::Scalar>
+ ScalarMulOwned<Self::Scalar>
+ _Group<Scalar = Self::Scalar>;
+ Group<Scalar = Self::Scalar>;

/// The affine representation of an element in G1.
type G1Affine: PairingCurveAffine<
Expand Down

0 comments on commit c248065

Please sign in to comment.