This commit is contained in:
EvilMuffinHa 2023-05-24 14:50:54 -04:00
parent 47c2c79f7f
commit 6413513ee9
3 changed files with 25 additions and 2 deletions

View File

@ -1,2 +1,4 @@
#[cfg(feature = "naive")]
pub mod naive;
pub(crate) mod sig;

View File

@ -1,2 +1,21 @@
use crate::sig::KeyGen;
pub struct SigParams {
m: u16,
n: u16,
o: u16,
k: u16,
salt_bytes: u8,
digest_bytes: u8,
pk_seed_bytes: u8,
}
pub struct SigningKey {
v: VerifyKey,
}
pub struct VerifyKey {}
impl KeyGen<SigParams> for SigningKey {
fn gen(params: SigParams) -> Self {}
}

View File

@ -1,6 +1,8 @@
pub trait Signer<S> {
fn gen() -> Self;
pub trait KeyGen<P> {
fn gen(params: P) -> Self;
}
pub trait Signer<S> {
fn sign(&self, msg: &[u8]) -> S;
}