Skip to content

Commit 2b36bf7

Browse files
committed
f sign -> is_positive
1 parent dfce048 commit 2b36bf7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/secp256k1.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_xonly_pubkey_create(
797797
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_xonly_pubkey_from_pubkey(
798798
const secp256k1_context* ctx,
799799
secp256k1_xonly_pubkey *xonly_pubkey,
800-
int *sign,
800+
int *is_positive,
801801
const secp256k1_pubkey *pubkey
802802
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(4);
803803

src/tests.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4278,7 +4278,7 @@ void test_xonly_pubkey(void) {
42784278
secp256k1_ge pk1;
42794279
secp256k1_ge pk2;
42804280
secp256k1_fe y;
4281-
int sign;
4281+
int is_positive;
42824282
unsigned char buf32[32];
42834283

42844284
/* sk = 0 should fail */
@@ -4297,9 +4297,9 @@ void test_xonly_pubkey(void) {
42974297
CHECK(secp256k1_fe_equal(&pk1.y, &y) == 1);
42984298

42994299
/* Test from_pubkey */
4300-
CHECK(secp256k1_xonly_pubkey_from_pubkey(ctx, &xonly_pk_tmp, &sign, &xy_pk) == 1);
4300+
CHECK(secp256k1_xonly_pubkey_from_pubkey(ctx, &xonly_pk_tmp, &is_positive, &xy_pk) == 1);
43014301
CHECK(memcmp(&xonly_pk_tmp, &xonly_pk, sizeof(xonly_pk)) == 0);
4302-
CHECK(sign == 1);
4302+
CHECK(is_positive == 1);
43034303

43044304
/* Serialization and parse roundtrip */
43054305
CHECK(secp256k1_xonly_pubkey_create(ctx, &xonly_pk, sk) == 1);

0 commit comments

Comments
 (0)