From 7ea12c2dca07b82520f396fb10a76b128f232282 Mon Sep 17 00:00:00 2001 From: DarkWindman Date: Mon, 10 Aug 2026 15:04:25 +0300 Subject: [PATCH] whitelist: document that the parsed key count is untrusted --- include/secp256k1_whitelist.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/secp256k1_whitelist.h b/include/secp256k1_whitelist.h index 20d495d3..760b719a 100644 --- a/include/secp256k1_whitelist.h +++ b/include/secp256k1_whitelist.h @@ -68,6 +68,10 @@ SECP256K1_API int secp256k1_whitelist_signature_parse( * * Returns: the number of keys for the given signature * In: sig: pointer to a signature object + * + * This count is a property of the signature only. It might not match the + * number of public keys the caller has, and the caller should not truncate + * their key set to match it. */ SECP256K1_API size_t secp256k1_whitelist_signature_n_keys( const secp256k1_whitelist_signature *sig