Development Documentation (main branch) - For stable release docs, see docs.rs/eidetica

decrypt_private_key

Function decrypt_private_key 

Source
pub fn decrypt_private_key(
    ciphertext: impl AsRef<[u8]>,
    nonce: impl AsRef<[u8]>,
    encryption_key: impl AsRef<[u8]>,
) -> Result<PrivateKey>
Expand description

Decrypt a private key.

§Arguments

  • ciphertext - The encrypted private key
  • nonce - The 12-byte nonce used for encryption
  • encryption_key - The 32-byte encryption key

§Returns

The decrypted PrivateKey