pub fn write_keypair_file<F: AsRef<Path>>( keypair: &Keypair, outfile: F, ) -> Result<String, Box<dyn Error>>
Writes a Keypair to a file with JSON-encoding
Keypair