Skip to content

Commit 84cba43

Browse files
authored
Merge pull request #319 from LedgerHQ/fix-typos
Small fixes in MuSig2 code documentation
2 parents 15c2436 + a38209d commit 84cba43

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
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: 10 additions & 1 deletion
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,
@@ -45,7 +54,7 @@ void compute_rand_i_j(const musig_psbt_session_t *psbt_session,
4554
* musigsession_round2_initialize are called in the code.
4655
*
4756
* This allows the calling code to not make any assumption about how
48-
* the inialization of the musig signing state is done.
57+
* the initialization of the musig signing state is done.
4958
*
5059
* @param[in] musig_signing_state
5160
* Pointer to the musig signing state.

0 commit comments

Comments
 (0)