7#ifndef SECP256K1_MODULE_EXTRAKEYS_TESTS_EXHAUSTIVE_H
8#define SECP256K1_MODULE_EXTRAKEYS_TESTS_EXHAUSTIVE_H
24 unsigned char buf[33];
27 secp256k1_scalar_set_int(&scalar_i, i);
28 secp256k1_scalar_get_b32(
buf, &scalar_i);
41 CHECK(secp256k1_memcmp_var(xonly_pubkey_bytes[i - 1],
buf, 32) == 0);
45 CHECK(parity == parities[i - 1]);
47 CHECK(secp256k1_memcmp_var(xonly_pubkey_bytes[i - 1],
buf, 32) == 0);
50 secp256k1_fe_set_b32(&fe, xonly_pubkey_bytes[i - 1]);
51 CHECK(secp256k1_fe_equal_var(&fe, &group[i].x));
55 secp256k1_fe_normalize_var(&fe);
56 CHECK(secp256k1_fe_is_odd(&fe) == parities[i - 1]);
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_create(const secp256k1_context *ctx, secp256k1_pubkey *pubkey, const unsigned char *seckey) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3)
#define EXHAUSTIVE_TEST_ORDER