Implement a FROST algorithm for Schnorrkel

This commit is contained in:
Luke Parker
2023-01-13 18:52:38 -05:00
parent 50a4f5938a
commit 8ef8b5ca6f
6 changed files with 258 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
use rand_core::OsRng;
use frost::tests::{key_gen, algorithm_machines, sign};
use crate::Schnorrkel;
#[test]
fn test() {
let keys = key_gen(&mut OsRng);
const CONTEXT: &[u8] = b"FROST Schnorrkel Test";
let machines = algorithm_machines(&mut OsRng, Schnorrkel::new(CONTEXT), &keys);
const MSG: &[u8] = b"Hello, World!";
sign(&mut OsRng, Schnorrkel::new(CONTEXT), keys, machines, MSG);
}