Skip to content

Commit

Permalink
[fix/optimization] mul_by_3b special case should be `CURVE_ID == "b…
Browse files Browse the repository at this point in the history
…n256_g1"` (#101)

fix: `mul_by_3b` special case should be `CURVE_ID == "bn256_g1"`
  • Loading branch information
jonathanpwang authored Nov 17, 2023
1 parent 81a0782 commit 985d16e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/derive/curve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ macro_rules! new_curve_impl {
}

fn mul_by_3b(input: &$base) -> $base {
if $name::CURVE_ID == "bn256"{
if $name::CURVE_ID == "bn256_g1"{
input.double().double().double() + input
} else {
input * $name::curve_constant_3b()
Expand Down

0 comments on commit 985d16e

Please sign in to comment.