pub fn decrypt_private_key(
key: &PrivateKey,
password: Option<SecretString>,
) -> Result<PrivateKey>Expand description
Decrypts a private key with a password.
ยงErrors
Returns an error if prompting for the passphrase fails or the key cannot be decrypted.