Skip to main content

decrypt_private_key

Function decrypt_private_key 

Source
pub fn decrypt_private_key(
    passphrase: &str,
    salt_bytes: &[u8],
    nonce_bytes: &[u8],
    encrypted_private_key_bytes: &mut [u8],
) -> Result<()>
Expand description

Decrypts the provided encrypted private key bytes in place using the

ยงErrors

If decryption fails, an error is returned.