From 40a0d874a6805e3065341ce5bd96384b7a7caeeb Mon Sep 17 00:00:00 2001 From: Sebastian Falbesoner Date: Wed, 29 Apr 2026 17:51:24 +0200 Subject: [PATCH] doc: correct API docs for ECDSA signing out-params (s/array/signature object/) --- include/secp256k1.h | 2 +- include/secp256k1_recovery.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/secp256k1.h b/include/secp256k1.h index b7ec6a22..2f3383e1 100644 --- a/include/secp256k1.h +++ b/include/secp256k1.h @@ -687,7 +687,7 @@ SECP256K1_API const secp256k1_nonce_function secp256k1_nonce_function_default; * Returns: 1: signature created * 0: the nonce generation function failed, or the secret key was invalid. * Args: ctx: pointer to a context object (not secp256k1_context_static). - * Out: sig: pointer to an array where the signature will be placed. + * Out: sig: pointer to a signature object. * In: msghash32: the 32-byte message hash being signed. * seckey: pointer to a 32-byte secret key. * noncefp: pointer to a nonce generation function. If NULL, diff --git a/include/secp256k1_recovery.h b/include/secp256k1_recovery.h index 2430f993..45f20aba 100644 --- a/include/secp256k1_recovery.h +++ b/include/secp256k1_recovery.h @@ -73,7 +73,7 @@ SECP256K1_API int secp256k1_ecdsa_recoverable_signature_serialize_compact( * Returns: 1: signature created * 0: the nonce generation function failed, or the secret key was invalid. * Args: ctx: pointer to a context object (not secp256k1_context_static). - * Out: sig: pointer to an array where the signature will be placed. + * Out: sig: pointer to a signature object. * In: msghash32: the 32-byte message hash being signed. * seckey: pointer to a 32-byte secret key. * noncefp: pointer to a nonce generation function. If NULL,