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§
Required Methods§
Sourcefn try_decrypt(&self, ct: &C) -> Result<P, Self::Error>
fn try_decrypt(&self, ct: &C) -> Result<P, Self::Error>
Try to decrypt an FheCiphertext into an FhePlaintext.