Skip to content

Commit 496c5b4

Browse files
Make constants static:
static const secp256k1_ge secp256k1_ge_const_g; static const int CURVE_B;
1 parent 1e6f1f5 commit 496c5b4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/group_impl.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,22 @@
3838
*/
3939
#if defined(EXHAUSTIVE_TEST_ORDER)
4040
# if EXHAUSTIVE_TEST_ORDER == 199
41-
const secp256k1_ge secp256k1_ge_const_g = SECP256K1_GE_CONST(
41+
static const secp256k1_ge secp256k1_ge_const_g = SECP256K1_GE_CONST(
4242
0xFA7CC9A7, 0x0737F2DB, 0xA749DD39, 0x2B4FB069,
4343
0x3B017A7D, 0xA808C2F1, 0xFB12940C, 0x9EA66C18,
4444
0x78AC123A, 0x5ED8AEF3, 0x8732BC91, 0x1F3A2868,
4545
0x48DF246C, 0x808DAE72, 0xCFE52572, 0x7F0501ED
4646
);
4747

48-
const int CURVE_B = 4;
48+
static const int CURVE_B = 4;
4949
# elif EXHAUSTIVE_TEST_ORDER == 13
50-
const secp256k1_ge secp256k1_ge_const_g = SECP256K1_GE_CONST(
50+
static const secp256k1_ge secp256k1_ge_const_g = SECP256K1_GE_CONST(
5151
0xedc60018, 0xa51a786b, 0x2ea91f4d, 0x4c9416c0,
5252
0x9de54c3b, 0xa1316554, 0x6cf4345c, 0x7277ef15,
5353
0x54cb1b6b, 0xdc8c1273, 0x087844ea, 0x43f4603e,
5454
0x0eaf9a43, 0xf6effe55, 0x939f806d, 0x37adf8ac
5555
);
56-
const int CURVE_B = 2;
56+
static const int CURVE_B = 2;
5757
# else
5858
# error No known generator for the specified exhaustive test group order.
5959
# endif
@@ -68,7 +68,7 @@ static const secp256k1_ge secp256k1_ge_const_g = SECP256K1_GE_CONST(
6868
0xFD17B448UL, 0xA6855419UL, 0x9C47D08FUL, 0xFB10D4B8UL
6969
);
7070

71-
const int CURVE_B = 7;
71+
static const int CURVE_B = 7;
7272
#endif
7373

7474
static void secp256k1_ge_set_gej_zinv(secp256k1_ge *r, const secp256k1_gej *a, const secp256k1_fe *zi) {

0 commit comments

Comments
 (0)