Skip to content

Commit

Permalink
fix: mul_by_3b special case should be CURVE_ID == "bn256_g1"
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpwang committed Nov 17, 2023
1 parent 81a0782 commit be0bf78
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 be0bf78

Please sign in to comment.