musig: fix number of tweaks in tweak_test

This commit is contained in:
Jonas Nick 2022-02-04 10:54:11 +00:00
parent 725d895fc5
commit f0edc90755

View File

@ -883,7 +883,7 @@ void musig_tweak_test(secp256k1_scratch_space *scratch) {
* that key. If xonly is set to true, the function f is normalizes the input
* point to have an even X-coordinate ("xonly-tweaking").
* Otherwise, the function f is the identity function. */
for (i = 1; i < N_TWEAKS; i++) {
for (i = 1; i <= N_TWEAKS; i++) {
unsigned char tweak[32];
int P_parity;
int xonly = secp256k1_testrand_bits(1);