diff --git a/stubs/const.php b/stubs/const.php index d6f84de9..c2cf7b14 100644 --- a/stubs/const.php +++ b/stubs/const.php @@ -18,3 +18,4 @@ const SECP256K1_TAG_PUBKEY_HYBRID_ODD = 7; const SECP256K1_TYPE_RECOVERABLE_SIG = "secp256k1_ecdsa_recoverable_signature"; const SECP256K1_TYPE_SCHNORRSIG = "secp256k1_schnorrsig"; +const SECP256K1_TYPE_SCHNORRSIG_PUBKEY = "secp256k1_schnorrsig_pubkey"; diff --git a/stubs/functions.php b/stubs/functions.php index 56d76e39..2ed865ef 100644 --- a/stubs/functions.php +++ b/stubs/functions.php @@ -394,6 +394,27 @@ function secp256k1_ecdsa_recover($context, &$ecPublicKey, $ecdsaRecoverableSigna * @return int */ function secp256k1_ecdh($context, string &$result, $ecPublicKey, string $privKey, ?callable $hashfxn, ?int $outputLen, $data): int {} +/** + * @param resource $context + * @param resource|null $pubkey + * @param string $seckey + * @return int + */ +function secp256k1_schnorrsig_pubkey_create($context, &$pubkey, string $seckey): int {} +/** + * @param resource $context + * @param resource|null $pubkey + * @param string $input32 + * @return int + */ +function secp256k1_schnorrsig_pubkey_parse($context, &$pubkey, string $input32): int {} +/** + * @param resource $context + * @param string|null $output32 + * @param resource $pubkey + * @return int + */ +function secp256k1_schnorrsig_pubkey_serialize($context, ?string &$output32, $pubkey): int {} /** * Serialize a Schnorr signature. *