pub trait FheEncrypt<T, Key> {
// Required method
fn encrypt(value: T, key: &Key) -> Self;
}
Available on crate feature
integer
only.Expand description
Trait used to have a generic way of creating a value of a FHE type from a native value.
This trait is for when FHE type the native value is encrypted supports the same numbers of bits of precision.
The Key
is required as it contains the key needed to do the
actual encryption.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.