Skip to content

Commit 4ab4ec3

Browse files
committed
musig: add note about missing verification to partial_sign to doc
1 parent f50ad76 commit 4ab4ec3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/secp256k1_musig.h

+5
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,11 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_musig_nonce_process(
442442
* created by calling musig_nonce_gen with that pubkey. Otherwise, the
443443
* illegal_callback is called.
444444
*
445+
* This function does not verify the output partial signature, deviating from
446+
* the BIP 327 specification. It is recommended to verify the output partial
447+
* signature with `secp256k1_musig_partial_sig_verify` to prevent random or
448+
* adversarially provoked computation errors.
449+
*
445450
* Returns: 0 if the arguments are invalid or the provided secnonce has already
446451
* been used for signing, 1 otherwise
447452
* Args: ctx: pointer to a context object

0 commit comments

Comments
 (0)