I wanted to create a function that can accept various ciphertext data types, such as FheUint8
, FheUint16
, and FheUint64
. I was looking to identify the appropriate trait that the generic type should implement, allowing the function to process and calculate outputs for different ciphertext data types.
Something like this
fn calculate_sum<Id>(a:FheUint<Id>, b:FheUint<Id>)
where
Id : FheUintId
-> FheUint<Id> {
a + b
}
I can’t access the FheUintId
trait because it’s private. Is there another way to accomplish this?