FheDecrypter

Trait FheDecrypter 

Source
pub trait FheDecrypter<P: FhePlaintext<Parameters = Self::Parameters>, C: FheCiphertext<Parameters = Self::Parameters>>: FheParametrized {
    type Error;

    // Required method
    fn try_decrypt(&self, ct: &C) -> Result<P, Self::Error>;
}
Expand description

Decrypt a ciphertext into a plaintext

Required Associated Types§

Source

type Error

The type of error returned.

Required Methods§

Source

fn try_decrypt(&self, ct: &C) -> Result<P, Self::Error>

Try to decrypt an FheCiphertext into an FhePlaintext.

Implementors§