@@ -664,15 +664,15 @@ void test_schnorrsig_taproot(void) {
664664 secp256k1_xonly_pubkey output_pk ;
665665 unsigned char output_pk_bytes [32 ];
666666 unsigned char tweak [32 ];
667- int is_positive ;
667+ int has_square_y ;
668668 unsigned char msg [32 ];
669669 secp256k1_schnorrsig sig ;
670670
671671 /* Create output key */
672672 secp256k1_rand256 (sk );
673673 CHECK (secp256k1_xonly_pubkey_create (ctx , & internal_pk , sk ) == 1 );
674674 memset (tweak , 1 , sizeof (tweak ));
675- CHECK (secp256k1_xonly_pubkey_tweak_add (ctx , & output_pk , & is_positive , & internal_pk , tweak ) == 1 );
675+ CHECK (secp256k1_xonly_pubkey_tweak_add (ctx , & output_pk , & has_square_y , & internal_pk , tweak ) == 1 );
676676 CHECK (secp256k1_xonly_pubkey_serialize (ctx , output_pk_bytes , & output_pk ) == 1 );
677677
678678 /* Key spend */
@@ -688,7 +688,7 @@ void test_schnorrsig_taproot(void) {
688688 /* Verify script spend */
689689 CHECK (secp256k1_xonly_pubkey_parse (ctx , & output_pk , output_pk_bytes ) == 1 );
690690 CHECK (secp256k1_xonly_pubkey_parse (ctx , & internal_pk , internal_pk_bytes ) == 1 );
691- CHECK (secp256k1_xonly_pubkey_tweak_verify (ctx , & output_pk , is_positive , & internal_pk , tweak ) == 1 );
691+ CHECK (secp256k1_xonly_pubkey_tweak_verify (ctx , & output_pk , has_square_y , & internal_pk , tweak ) == 1 );
692692}
693693
694694void run_schnorrsig_tests (void ) {
0 commit comments