pub fn write_pubkey_file(
outfile: &str,
pubkey: Pubkey
) -> Result<(), Box<dyn Error>>