Skip to content

Commit

Permalink
generator: Save a fe_mul in shallue_van_de_woestijne
Browse files Browse the repository at this point in the history
  • Loading branch information
real-or-random committed Nov 17, 2023
1 parent eb4fb6d commit dd81c3e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/modules/generator/main_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ static void shallue_van_de_woestijne(secp256k1_ge* ge, const secp256k1_fe* t) {
x2n = x1n; /* mag 3 */
secp256k1_fe_add(&x2n, &wd); /* mag 5 */
secp256k1_fe_negate(&x2n, &x2n, 5); /* mag 6 */
secp256k1_fe_mul(&x3d, &c, t); /* mag 1 */
secp256k1_fe_sqr(&x3d, &x3d); /* mag 1 */
secp256k1_fe_sqr(&x3d, &wn); /* mag 1 */
secp256k1_fe_sqr(&x3n, &wd); /* mag 1 */
secp256k1_fe_add(&x3n, &x3d); /* mag 2 */
secp256k1_fe_mul(&jinv, &x3d, &wd); /* mag 1 */
Expand Down

0 comments on commit dd81c3e

Please sign in to comment.