We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e4ea97 commit b5fcf54Copy full SHA for b5fcf54
src/tests.c
@@ -4318,6 +4318,7 @@ void test_xonly_pubkey_api(void) {
4318
secp256k1_xonly_pubkey pk_tweaked;
4319
secp256k1_pubkey xy_pk;
4320
unsigned char sk[32];
4321
+ unsigned char xy_sk[32];
4322
unsigned char buf32[32];
4323
unsigned char tweak[32];
4324
int pk_is_positive;
@@ -4337,6 +4338,8 @@ void test_xonly_pubkey_api(void) {
4337
4338
4339
secp256k1_rand256(sk);
4340
secp256k1_rand256(tweak);
4341
+ secp256k1_rand256(xy_sk);
4342
+ CHECK(secp256k1_ec_pubkey_create(sign, &xy_pk, xy_sk) == 1);
4343
4344
ecount = 0;
4345
CHECK(secp256k1_xonly_pubkey_create(none, &pk, sk) == 0);
0 commit comments