Skip to content

Commit 95585bd

Browse files
committed
musig: minor comment corrections
1 parent 6152622 commit 95585bd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/modules/musig/keyagg_impl.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ static void secp256k1_musig_keyaggcoef_sha256(secp256k1_sha256 *sha) {
129129
}
130130

131131
/* Compute KeyAgg coefficient which is constant 1 for the second pubkey and
132-
* otherwise tagged_hash(pk_hash, x) where pk_hash is the hash of public keys.
132+
* otherwise tagged_hash(pk_hash, pk) where pk_hash is the hash of public keys.
133133
* second_pk is the point at infinity in case there is no second_pk. Assumes
134134
* that pk is not the point at infinity and that the Y-coordinates of pk and
135135
* second_pk are normalized. */
@@ -162,7 +162,7 @@ static void secp256k1_musig_keyaggcoef_internal(secp256k1_scalar *r, const unsig
162162
}
163163
}
164164

165-
/* Assumes both field elements x and second_pk_x are normalized. */
165+
/* Assumes both field elements pk_x and second_pk_x are normalized. */
166166
static void secp256k1_musig_keyaggcoef(secp256k1_scalar *r, const secp256k1_keyagg_cache_internal *cache_i, secp256k1_ge *pk) {
167167
secp256k1_musig_keyaggcoef_internal(r, cache_i->pk_hash, pk, &cache_i->second_pk);
168168
}

src/modules/musig/session_impl.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -633,8 +633,8 @@ int secp256k1_musig_partial_sig_verify(const secp256k1_context* ctx, const secp2
633633
return 0;
634634
}
635635

636-
/* Compute "effective" nonce rj = aggnonce[0] + b*aggnonce[1] */
637-
/* TODO: use multiexp to compute -s*G + e*mu*pubkey + aggnonce[0] + b*aggnonce[1] */
636+
/* Compute "effective" nonce rj = pubnonce[0] + b*pubnonce[1] */
637+
/* TODO: use multiexp to compute -s*G + e*mu*pubkey + pubnonce[0] + b*pubnonce[1] */
638638
if (!secp256k1_musig_pubnonce_load(ctx, nonce_pt, pubnonce)) {
639639
return 0;
640640
}

0 commit comments

Comments
 (0)