Skip to content

Commit a8aa9af

Browse files
committed
bisect 4
1 parent c972d13 commit a8aa9af

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/modules/schnorrsig/tests_impl.h

+6-1
Original file line numberDiff line numberDiff line change
@@ -1010,8 +1010,13 @@ void test_s2c_opening(void) {
10101010
* points' x-coordinates are uniformly random */
10111011
if (secp256k1_schnorrsig_s2c_opening_parse(CTX, &opening, input) == 1) {
10121012
CHECK(secp256k1_schnorrsig_s2c_opening_serialize(CTX, output, &opening) == 1);
1013-
CHECK(memcmp(output, input, sizeof(output)) == 0);
1013+
10141014
}
1015+
testrand256(&input[1]);
1016+
/* Set pubkey oddness tag to first bit of input[1] */
1017+
input[0] = (input[1] & 1) + 2;
1018+
/* Set nonce_is_negated bit to input[1]'s 3rd bit */
1019+
input[0] |= (input[1] & (1 << 2));
10151020
i++;
10161021
} while(i < COUNT);
10171022
}

0 commit comments

Comments
 (0)