pub fn generate_auth_keypair() -> Result<([u8; KEY_LEN],[u8; KEY_LEN]), OssuaryError> {
    let mut rng = OsRng::new()?;
    let keypair: Keypair = Keypair::generate(&mut rng);
    Ok((keypair.secret.to_bytes(), keypair.public.to_bytes()))
}
/// Generate secret/public Ed25519 keypair for host authentication
Generate secret/public Ed25519 keypair for host authentication
Generate secret / public Ed25519 keypair for host authentication
pub fn generate_auth_keypair() -> Result<([u8; KEY_LEN],[u8; KEY_LEN]), OssuaryError> {
    let mut rng = OsRng::new()?;
    let keypair: Keypair = Keypair::generate(&mut rng);
    Ok((keypair.secret.to_bytes(), keypair.public.to_bytes()))
}
pub fn generate_auth_keypair ( ) -> Result < ( [ u8 ; KEY_LEN ] , [ u8 ; KEY_LEN ] ) , OssuaryError > { let mut rng = OsRng :: new ( ) ? ; let keypair : Keypair = Keypair :: generate ( & mut rng ) ; Ok ( ( keypair . secret . to_bytes ( ) , keypair . public . to_bytes ( ) ) ) }
Generate secret/public Ed25519 keypair for host authentication
Generate secret / public Ed25519 keypair for host authentication