pub fn generate_keypair() -> Result<Keypair>
Generate a keypair for the noise protocol using the standard pattern.