pub fn generate(w: impl Write) -> Result<Keypair, Error>
Generate a new Keypair and write it to the given Write stream.