Function load_secret_key

Source
pub async fn load_secret_key(key_path: PathBuf) -> Result<SecretKey>
Available on crate feature rpc only.
Expand description

Loads a iroh::SecretKey from the provided file, or stores a newly generated one at the given location.