Skip to content

Commit

Permalink
Restrict G::Other::ScalarType in pairing trait (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-lj authored Oct 28, 2024
1 parent 2f502fd commit d838f9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastcrypto/src/groups/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub trait Doubling: Clone {
}

pub trait Pairing: GroupElement {
type Other: GroupElement;
type Other: GroupElement<ScalarType = Self::ScalarType>;
type Output;

fn pairing(&self, other: &Self::Other) -> <Self as Pairing>::Output;
Expand Down

0 comments on commit d838f9f

Please sign in to comment.