Generalize out the FROST test for signing/signing with an offset

Moves Schnorr signature tests from test_curve to the new test_schnorr, 
which is more a test_frost.

Relevant to https://github.com/serai-dex/serai/issues/9.
This commit is contained in:
Luke Parker
2022-06-03 19:08:25 -04:00
parent 33241a5bb6
commit 9b52cf4d20
7 changed files with 83 additions and 66 deletions

View File

@@ -13,11 +13,9 @@ use crate::{
sign::{StateMachine, AlgorithmMachine}
};
// Internal tests
mod schnorr;
// Test suites for public usage
pub mod curve;
pub mod schnorr;
pub mod vectors;
// Literal test definitions to run during `cargo test`
@@ -56,7 +54,7 @@ pub fn key_gen<R: RngCore + CryptoRng, C: Curve>(
i,
key_gen::StateMachine::<C>::new(
params[&i],
"FROST test key_gen".to_string()
"FROST Test key_gen".to_string()
)
);
commitments.insert(