We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c972d13 commit f5f1db8Copy full SHA for f5f1db8
src/modules/schnorrsig/tests_impl.h
@@ -1009,9 +1009,13 @@ void test_s2c_opening(void) {
1009
/* This is expected to fail in about 50% of iterations because the
1010
* points' x-coordinates are uniformly random */
1011
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);
+
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));
1019
i++;
1020
} while(i < COUNT);
1021
0 commit comments