Skip to content

Commit 66ff2fa

Browse files
committed
fixup! comments
1 parent 439ed2f commit 66ff2fa

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

include/secp256k1_schnorrsig.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ extern "C" {
2424
* Returns: 1 if a nonce was successfully generated. 0 will cause signing to
2525
* return an error.
2626
* Out: nonce32: pointer to a 32-byte array to be filled by the function
27-
* In: msg: the message being verified. Can be NULL iff msglen is 0.
27+
* In: msg: the message being verified. Is NULL if and only if msglen
28+
* is 0.
2829
* msglen: the length of the message
2930
* key32: pointer to a 32-byte secret key (will not be NULL)
3031
* xonly_pk32: the 32-byte serialized xonly pubkey corresponding to key32
@@ -98,7 +99,7 @@ typedef struct {
9899
* abort if it fails.
99100
*
100101
* This function only signs 32-byte messages. If you have messages of a
101-
* different size (or the same size but without an context-specific tag
102+
* different size (or the same size but without a context-specific tag
102103
* prefix), it is recommended to create a 32-byte message hash with
103104
* secp256k1_tagged_sha256 and then sign the hash. Tagged hashing allows
104105
* providing an context-specific tag for domain separation. This prevents
@@ -111,8 +112,8 @@ typedef struct {
111112
* keypair: pointer to an initialized keypair (cannot be NULL)
112113
* aux_rand32: 32 bytes of fresh randomness. While recommended to provide
113114
* this, it is only supplemental to security and can be NULL. See
114-
* BIP-340 for a full explanation of this argument and for
115-
* guidance if randomness is expensive.
115+
* BIP-340 "Default Signing" for a full explanation of this
116+
* argument and for guidance if randomness is expensive.
116117
*/
117118
SECP256K1_API int secp256k1_schnorrsig_sign(
118119
const secp256k1_context* ctx,

0 commit comments

Comments
 (0)