Skip to content

Commit f5f1db8

Browse files
committed
bisect 4
1 parent c972d13 commit f5f1db8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/modules/schnorrsig/tests_impl.h

+6-2
Original file line numberDiff line numberDiff line change
@@ -1009,9 +1009,13 @@ void test_s2c_opening(void) {
10091009
/* This is expected to fail in about 50% of iterations because the
10101010
* points' x-coordinates are uniformly random */
10111011
if (secp256k1_schnorrsig_s2c_opening_parse(CTX, &opening, input) == 1) {
1012-
CHECK(secp256k1_schnorrsig_s2c_opening_serialize(CTX, output, &opening) == 1);
1013-
CHECK(memcmp(output, input, sizeof(output)) == 0);
1012+
10141013
}
1014+
testrand256(&input[1]);
1015+
/* Set pubkey oddness tag to first bit of input[1] */
1016+
input[0] = (input[1] & 1) + 2;
1017+
/* Set nonce_is_negated bit to input[1]'s 3rd bit */
1018+
input[0] |= (input[1] & (1 << 2));
10151019
i++;
10161020
} while(i < COUNT);
10171021
}

0 commit comments

Comments
 (0)