Skip to content

Commit a934164

Browse files
committed
Add secp256k1_xonly_pubkey type
And add relevant functions, which are now included in main library (tested)
1 parent 8cf0d8b commit a934164

File tree

68 files changed

+1867
-97
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+1867
-97
lines changed

secp256k1/php_secp256k1.h

+11-1
Original file line numberDiff line numberDiff line change
@@ -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);
6465
PHP_FUNCTION(secp256k1_ec_pubkey_serialize);
6566

6667
PHP_FUNCTION(secp256k1_ec_privkey_tweak_add);
67-
PHP_FUNCTION(secp256k1_ec_privkey_tweak_mul);
6868
PHP_FUNCTION(secp256k1_ec_pubkey_tweak_add);
69+
PHP_FUNCTION(secp256k1_ec_privkey_tweak_mul);
6970
PHP_FUNCTION(secp256k1_ec_pubkey_tweak_mul);
7071

7172
PHP_FUNCTION(secp256k1_ec_pubkey_combine);
@@ -76,6 +77,15 @@ PHP_FUNCTION(secp256k1_scratch_space_destroy);
7677
PHP_FUNCTION(secp256k1_nonce_function_default);
7778
PHP_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
8191
PHP_FUNCTION(secp256k1_ecdsa_sign_recoverable);

0 commit comments

Comments
 (0)