Skip to content

Commit f6bef03

Browse files
Merge bitcoin-core/secp256k1#1283: Get rid of secp256k1_fe_const_b
69e1ec0 Get rid of secp256k1_fe_const_b (Pieter Wuille) Pull request description: Replaces bitcoin#1282. Its only remaining use is in a test introduced in bitcoin#1118, and it is easily replaced by the new `secp256k1_fe_add_int` from bitcoin#1217. ACKs for top commit: real-or-random: utACK 69e1ec0 Tree-SHA512: 6ada192e0643fc5326198b60f019a5081444f9ba0a5b8ba6236f2a526829d8e5e479556600a604d9bc96c7ba86e3aab813f93c66679287d2135e95a2b75f5d3e
2 parents 5ec1333 + 69e1ec0 commit f6bef03

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/group_impl.h

-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ static const secp256k1_ge secp256k1_ge_const_g = SECP256K1_G;
7373
#endif
7474
/* End of section generated by sage/gen_exhaustive_groups.sage. */
7575

76-
static const secp256k1_fe secp256k1_fe_const_b = SECP256K1_FE_CONST(0, 0, 0, 0, 0, 0, 0, SECP256K1_B);
77-
7876
static void secp256k1_ge_set_gej_zinv(secp256k1_ge *r, const secp256k1_gej *a, const secp256k1_fe *zi) {
7977
secp256k1_fe zi2;
8078
secp256k1_fe zi3;

src/tests.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -4498,7 +4498,7 @@ static void ecmult_const_mult_xonly(void) {
44984498
random_field_element_test(&x);
44994499
secp256k1_fe_sqr(&c, &x);
45004500
secp256k1_fe_mul(&c, &c, &x);
4501-
secp256k1_fe_add(&c, &secp256k1_fe_const_b);
4501+
secp256k1_fe_add_int(&c, SECP256K1_B);
45024502
} while (secp256k1_fe_is_square_var(&c));
45034503
/* If i is odd, n=d*x for random non-zero d. */
45044504
if (i & 1) {

0 commit comments

Comments
 (0)