mod public;
pub use public::{PublicKey, PUBLIC_KEY_LENGTH};
mod secret;
pub use secret::{SecretKey, SECRET_KEY_LENGTH};
mod pair;
pub use pair::{Keypair, KEYPAIR_LENGTH};
mod multikey;
pub use multikey::MultiKey;
mod extended;
pub use extended::{XPublicKey, XSecretKey};
#[cfg(test)]
mod tests {
use super::*;
use mohan::dalek::{ristretto::RistrettoPoint, scalar::Scalar, traits::Identity};
#[test]
fn test_identity_keys() {
let sk = SecretKey(Scalar::zero());
let pk = PublicKey::from_secret(&sk);
assert_eq!(pk.into_point(), RistrettoPoint::identity());
}
}