@@ -450,9 +450,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO(arginfo_secp256k1_xonly_pubkey_tweak_add, I
450
450
ZEND_END_ARG_INFO ();
451
451
452
452
#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 )
454
454
#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 )
456
456
#endif
457
457
ZEND_ARG_TYPE_INFO (0 , context , IS_RESOURCE , 0 )
458
458
ZEND_ARG_TYPE_INFO (0 , outputPubKey , IS_RESOURCE , 0 )
@@ -659,7 +659,7 @@ const zend_function_entry secp256k1_functions[] = {
659
659
PHP_FE (secp256k1_xonly_pubkey_from_pubkey , arginfo_secp256k1_xonly_pubkey_from_pubkey )
660
660
PHP_FE (secp256k1_xonly_privkey_tweak_add , arginfo_secp256k1_xonly_privkey_tweak_add )
661
661
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 )
663
663
// secp256k1_recovery.h
664
664
#ifdef SECP256K1_MODULE_RECOVERY
665
665
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)
2019
2019
}
2020
2020
/* }}} */
2021
2021
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)
2023
2023
* 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 )
2025
2025
{
2026
2026
zval * zCtx , * zOutputPubKey , * zInternalPubKey ;
2027
2027
secp256k1_context * ctx ;
@@ -2043,11 +2043,11 @@ PHP_FUNCTION(secp256k1_xonly_pubkey_tweak_verify)
2043
2043
}
2044
2044
2045
2045
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" );
2047
2047
return ;
2048
2048
}
2049
2049
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 );
2051
2051
2052
2052
RETURN_LONG (result );
2053
2053
}
0 commit comments