Add a test for batch verification

This commit is contained in:
Luke Parker
2022-05-25 00:57:00 -04:00
parent 3a2e5bea0d
commit d45473b2bd
3 changed files with 43 additions and 1 deletions

View File

@@ -22,6 +22,8 @@ pub fn test_curve<R: RngCore + CryptoRng, C: Curve>(rng: &mut R) {
// TODO: Test the Curve functions themselves
// Test Schnorr signatures work as expected
// This is a bit unnecessary, as they should for any valid curve, yet this provides tests with
// meaning, which the above tests won't have
sign::<_, C>(rng);
verify::<_, C>(rng);
batch_verify::<_, C>(rng);