get_secret_key

Function get_secret_key 

pub fn get_secret_key(
    secret_key_path: &Path,
) -> Result<SecretKey, SecretKeyError>
Available on crate feature cli only.
Expand description

Attempts to load a SecretKey from a specified path. If no file exists there, then it generates a secret key and stores it in the provided path. I/O errors might occur during write operations in the form of a SecretKeyError