pub fn load(path: &Path, passphrase: SecretString) -> Result<Identity>Expand description
Loads and decrypts an identity file with the supplied passphrase.
ยงErrors
Error::IdentityNotFoundif the file is absent.Error::WrongPassphraseifpassphrasedoes not match.Error::Decrypt/Error::Ioon other failures.