test: introduce group order byte-array constant for deduplication

This commit is contained in:
Sebastian Falbesoner
2025-09-12 03:53:06 +02:00
parent 88be4e8d86
commit 0c91c56041
3 changed files with 13 additions and 25 deletions

View File

@@ -11,6 +11,14 @@
#include "testrand.h"
#include "util.h"
/* group order of the secp256k1 curve in 32-byte big endian representation */
static const unsigned char secp256k1_group_order_bytes[32] = {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe,
0xba, 0xae, 0xdc, 0xe6, 0xaf, 0x48, 0xa0, 0x3b,
0xbf, 0xd2, 0x5e, 0x8c, 0xd0, 0x36, 0x41, 0x41
};
static void testutil_random_fe(secp256k1_fe *x) {
unsigned char bin[32];
do {