From 69e1ec033120497b83dd95d92166fa05c54b8a06 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Thu, 20 Apr 2023 16:07:35 -0400 Subject: [PATCH] Get rid of secp256k1_fe_const_b --- src/group_impl.h | 2 -- src/tests.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/group_impl.h b/src/group_impl.h index 7ec069a80ca36..29017dc965242 100644 --- a/src/group_impl.h +++ b/src/group_impl.h @@ -73,8 +73,6 @@ static const secp256k1_ge secp256k1_ge_const_g = SECP256K1_G; #endif /* End of section generated by sage/gen_exhaustive_groups.sage. */ -static const secp256k1_fe secp256k1_fe_const_b = SECP256K1_FE_CONST(0, 0, 0, 0, 0, 0, 0, SECP256K1_B); - static void secp256k1_ge_set_gej_zinv(secp256k1_ge *r, const secp256k1_gej *a, const secp256k1_fe *zi) { secp256k1_fe zi2; secp256k1_fe zi3; diff --git a/src/tests.c b/src/tests.c index 4c1946a5bde15..9b3c92dd6ea45 100644 --- a/src/tests.c +++ b/src/tests.c @@ -4498,7 +4498,7 @@ static void ecmult_const_mult_xonly(void) { random_field_element_test(&x); secp256k1_fe_sqr(&c, &x); secp256k1_fe_mul(&c, &c, &x); - secp256k1_fe_add(&c, &secp256k1_fe_const_b); + secp256k1_fe_add_int(&c, SECP256K1_B); } while (secp256k1_fe_is_square_var(&c)); /* If i is odd, n=d*x for random non-zero d. */ if (i & 1) {