Skip to content

Commit 2c793f9

Browse files
committed
Small fixes in MuSig2 code documentation
1 parent 15c2436 commit 2c793f9

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/musig/musig.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static inline int compare_plain_pk(const void *a, const void *b) {
6767
* Pointer to a list of pubkeys.
6868
* @param[in] n_keys
6969
* Number of pubkeys.
70-
* @param[out] musig_keyagg_context_t
70+
* @param[out] ctx
7171
* Pointer to receive the musig KeyAgg Context.
7272
*
7373
* @return 0 on success, a negative number in case of error.
@@ -102,7 +102,7 @@ int musig_nonce_gen(const uint8_t *rand,
102102
/**
103103
* Generates the aggregate nonce (nonce_agg in the reference implementation).
104104
*
105-
* @param[in] rand
105+
* @param[in] pubnonces
106106
* A list of musig_pubnonce_t, the pubnonces of all the participants.
107107
* @param[in] n_keys
108108
* Number of pubkeys.
@@ -120,6 +120,8 @@ int musig_nonce_agg(const musig_pubnonce_t pubnonces[], size_t n_keys, musig_pub
120120
*
121121
* @param[in] secnonce
122122
* The secret nonce.
123+
* @param[in] sk
124+
* The secret key.
123125
* @param[in] session_ctx
124126
* The session context.
125127
* @param[out] psig

src/musig/musig_sessions.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ typedef struct musig_signing_state_s {
3232
/**
3333
* Given a musig psbt session, computes the synthetic randomness for a given
3434
* (input_index, placeholder_index) pair.
35+
*
36+
* @param[in] psbt_session
37+
* Pointer to the musig psbt session.
38+
* @param[in] input_index
39+
* The index of the input.
40+
* @param[in] placeholder_index
41+
* The index of the key placeholder.
42+
* @param[out] out
43+
* Pointer to receive the synthetic randomness.
3544
*/
3645
void compute_rand_i_j(const musig_psbt_session_t *psbt_session,
3746
int input_index,

0 commit comments

Comments
 (0)