We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c972d13 commit a8aa9afCopy full SHA for a8aa9af
src/modules/schnorrsig/tests_impl.h
@@ -1010,8 +1010,13 @@ void test_s2c_opening(void) {
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
}
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));
1020
i++;
1021
} while(i < COUNT);
1022
0 commit comments