@@ -450,9 +450,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO(arginfo_secp256k1_xonly_pubkey_tweak_add, I
450450ZEND_END_ARG_INFO ();
451451
452452#if (PHP_VERSION_ID >= 70000 && PHP_VERSION_ID <= 70200 )
453- ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO (arginfo_secp256k1_xonly_pubkey_tweak_verify , IS_LONG , NULL , 0 )
453+ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO (arginfo_secp256k1_xonly_pubkey_tweak_test , IS_LONG , NULL , 0 )
454454#else
455- ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO (arginfo_secp256k1_xonly_pubkey_tweak_verify , IS_LONG , 0 )
455+ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO (arginfo_secp256k1_xonly_pubkey_tweak_test , IS_LONG , 0 )
456456#endif
457457 ZEND_ARG_TYPE_INFO (0 , context , IS_RESOURCE , 0 )
458458 ZEND_ARG_TYPE_INFO (0 , outputPubKey , IS_RESOURCE , 0 )
@@ -659,7 +659,7 @@ const zend_function_entry secp256k1_functions[] = {
659659 PHP_FE (secp256k1_xonly_pubkey_from_pubkey , arginfo_secp256k1_xonly_pubkey_from_pubkey )
660660 PHP_FE (secp256k1_xonly_privkey_tweak_add , arginfo_secp256k1_xonly_privkey_tweak_add )
661661 PHP_FE (secp256k1_xonly_pubkey_tweak_add , arginfo_secp256k1_xonly_pubkey_tweak_add )
662- PHP_FE (secp256k1_xonly_pubkey_tweak_verify , arginfo_secp256k1_xonly_pubkey_tweak_verify )
662+ PHP_FE (secp256k1_xonly_pubkey_tweak_test , arginfo_secp256k1_xonly_pubkey_tweak_test )
663663 // secp256k1_recovery.h
664664#ifdef SECP256K1_MODULE_RECOVERY
665665 PHP_FE (secp256k1_ecdsa_recoverable_signature_parse_compact , arginfo_secp256k1_ecdsa_recoverable_signature_parse_compact )
@@ -2019,9 +2019,9 @@ PHP_FUNCTION(secp256k1_xonly_pubkey_tweak_add)
20192019}
20202020/* }}} */
20212021
2022- /* {{{ proto int secp256k1_xonly_pubkey_tweak_verify (resource context, resource output_pubkey, resource internal_pubkey, string tweak32)
2022+ /* {{{ proto int secp256k1_xonly_pubkey_tweak_test (resource context, resource output_pubkey, bool hasSquareY , resource internal_pubkey, string tweak32)
20232023 * Tweak a public key by adding tweak times the generator to it. */
2024- PHP_FUNCTION (secp256k1_xonly_pubkey_tweak_verify )
2024+ PHP_FUNCTION (secp256k1_xonly_pubkey_tweak_test )
20252025{
20262026 zval * zCtx , * zOutputPubKey , * zInternalPubKey ;
20272027 secp256k1_context * ctx ;
@@ -2043,11 +2043,11 @@ PHP_FUNCTION(secp256k1_xonly_pubkey_tweak_verify)
20432043 }
20442044
20452045 if (zTweak32 -> len != SECRETKEY_LENGTH ) {
2046- zend_throw_exception_ex (spl_ce_InvalidArgumentException , 0 TSRMLS_CC , "secp256k1_xonly_pubkey_tweak_verify (): Parameter 4 should be 32 bytes" );
2046+ zend_throw_exception_ex (spl_ce_InvalidArgumentException , 0 TSRMLS_CC , "secp256k1_xonly_pubkey_tweak_test (): Parameter 5 should be 32 bytes" );
20472047 return ;
20482048 }
20492049
2050- result = secp256k1_xonly_pubkey_tweak_verify (ctx , output_pubkey , (int )has_square_y , internal_pubkey , (unsigned char * )zTweak32 -> val );
2050+ result = secp256k1_xonly_pubkey_tweak_test (ctx , output_pubkey , (int )has_square_y , internal_pubkey , (unsigned char * )zTweak32 -> val );
20512051
20522052 RETURN_LONG (result );
20532053}
0 commit comments