does openFHE support some function that can do the comparison of 2 encrypted numbers?
(ckks scheme, not TFHE/FHEW)
In OpenFHE, to compare two encrypted numbers you can currently:
- either use scheme switching (starts in CKKS, goes to TFHE/FHEW, then back to CKKS),
- or approximate the sign function for the desired interval of the difference of the two inputs via Chebyshev interpolation.
In version 1.4, the functional bootstrapping capability will be added, which will provide the third option for encrypted comparison.
Thank you very much!