@@ -21,6 +21,7 @@ extern zend_module_entry secp256k1_module_entry;
2121#define SECP256K1_PUBKEY_RES_NAME "secp256k1_pubkey"
2222#define SECP256K1_SIG_RES_NAME "secp256k1_ecdsa_signature"
2323#define SECP256K1_SCRATCH_SPACE_RES_NAME "secp256k1_scratch_space"
24+ #define SECP256K1_XONLY_PUBKEY_RES_NAME "secp256k1_xonly_pubkey"
2425#ifdef SECP256K1_MODULE_RECOVERY
2526#define SECP256K1_RECOVERABLE_SIG_RES_NAME "secp256k1_ecdsa_recoverable_signature"
2627#endif
@@ -64,8 +65,8 @@ PHP_FUNCTION(secp256k1_ec_pubkey_parse);
6465PHP_FUNCTION (secp256k1_ec_pubkey_serialize );
6566
6667PHP_FUNCTION (secp256k1_ec_privkey_tweak_add );
67- PHP_FUNCTION (secp256k1_ec_privkey_tweak_mul );
6868PHP_FUNCTION (secp256k1_ec_pubkey_tweak_add );
69+ PHP_FUNCTION (secp256k1_ec_privkey_tweak_mul );
6970PHP_FUNCTION (secp256k1_ec_pubkey_tweak_mul );
7071
7172PHP_FUNCTION (secp256k1_ec_pubkey_combine );
@@ -76,6 +77,15 @@ PHP_FUNCTION(secp256k1_scratch_space_destroy);
7677PHP_FUNCTION (secp256k1_nonce_function_default );
7778PHP_FUNCTION (secp256k1_nonce_function_rfc6979 );
7879
80+ PHP_FUNCTION (secp256k1_xonly_pubkey_create );
81+ PHP_FUNCTION (secp256k1_xonly_pubkey_parse );
82+ PHP_FUNCTION (secp256k1_xonly_pubkey_serialize );
83+ PHP_FUNCTION (secp256k1_xonly_pubkey_from_pubkey );
84+ PHP_FUNCTION (secp256k1_xonly_pubkey_to_pubkey );
85+ PHP_FUNCTION (secp256k1_xonly_privkey_tweak_add );
86+ PHP_FUNCTION (secp256k1_xonly_pubkey_tweak_add );
87+ PHP_FUNCTION (secp256k1_xonly_pubkey_tweak_verify );
88+
7989/* Recovery module */
8090#ifdef SECP256K1_MODULE_RECOVERY
8191PHP_FUNCTION (secp256k1_ecdsa_sign_recoverable );
0 commit comments