Skip to content

Commit

Permalink
Fix infinite loops in small backend curve operations
Browse files Browse the repository at this point in the history
  • Loading branch information
cronokirby committed Jun 29, 2024
1 parent b58fe19 commit cf7f2a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/min_curve/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,15 @@ impl<'a, 'b> Mul<&'b Fr> for &'a Element {
type Output = Element;

fn mul(self, scalar: &'b Fr) -> Element {
scalar * self
*scalar * *self
}
}

impl<'a, 'b> Mul<&'b Element> for &'a Fr {
type Output = Element;

fn mul(self, point: &'b Element) -> Element {
point * self
*point * *self
}
}

Expand All @@ -142,7 +142,7 @@ impl<'b> Mul<&'b Element> for Fr {
type Output = Element;

fn mul(self, other: &'b Element) -> Element {
other * self
*other * self
}
}

Expand Down

0 comments on commit cf7f2a4

Please sign in to comment.