pub fn generate_keypair<T>(csprng: &mut T) -> Option<KeyPair>where T: RngCore + CryptoRng,
Generate a keypair, in DER format