25 lines
667 B
Rust
25 lines
667 B
Rust
use lazy_static::lazy_static;
|
|
use rand::thread_rng;
|
|
use serde_json::Value;
|
|
|
|
use crate::*;
|
|
|
|
lazy_static! {
|
|
pub static ref ED448_SHAKE256: Value =
|
|
serde_json::from_str(include_str!("tests/vectors.json").trim())
|
|
.expect("Test vector is valid JSON");
|
|
}
|
|
|
|
/// This is testing that Shamir's secret sharing to compute and arbitrary
|
|
/// value is working.
|
|
#[test]
|
|
fn check_share_generation_ed448_shake256() {
|
|
let rng = thread_rng();
|
|
frost_core::tests::check_share_generation::<Ed448Shake256, _>(rng);
|
|
}
|
|
|
|
#[test]
|
|
fn check_sign_with_test_vectors() {
|
|
frost_core::tests::vectors::check_sign_with_test_vectors::<Ed448Shake256>(&ED448_SHAKE256)
|
|
}
|