Skip to content

Commit 9d53733

Browse files
committed
f add new bip-schnorr test vector 14
1 parent 44881b2 commit 9d53733

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/modules/schnorrsig/tests_impl.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,18 @@ void test_schnorrsig_bip_vectors(secp256k1_scratch_space *scratch) {
554554
};
555555
test_schnorrsig_bip_vectors_check_verify(scratch, pk, msg, sig, 0);
556556
}
557+
{
558+
/* Test vector 14 */
559+
const unsigned char pk[32] = {
560+
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
561+
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
562+
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
563+
0xFF, 0xFF, 0xFF, 0xFE, 0xFF, 0xFF, 0xFC, 0x30
564+
};
565+
secp256k1_xonly_pubkey pk_parsed;
566+
/* No need to check the signature of the test vector as parsing the pubkey already fails */
567+
CHECK(!secp256k1_xonly_pubkey_parse(ctx, &pk_parsed, pk));
568+
}
557569
}
558570

559571
/* Nonce function that returns constant 0 */

0 commit comments

Comments
 (0)