write_to_path

Function write_to_path 

Source
pub fn write_to_path<P: AsRef<Path>>(
    keypair: &Keypair,
    path: P,
) -> Result<(), Error>
Expand description

Write the given Keypair to a new file at the specified path. path should include the file name. Fails if the path exists, or if the path is a directory.