Evaluate Sign From BGV to BinFHE

Hi all!

I’m new to OpenFHE and I want to evaluate the sign of a BGV encrypted integer. I know that in eval_sign example you mention:

Instead, we assume that an LWE ciphertext with large ciphertext modulus is already provided (e.g., by extracting from a CKKS ciphertext).

My question is:
How to instantiate the BinFHEContext context and how to pass the BGV ciphertext to EvalSign ?

Thank you!

Hi @miiip If I understand your question correctly, you are asking a question about the scenario where you have a BGV ciphertext and you want to perform comparison using FHEW/TFHE, i.e., EvalSign, and then come back to BGV, correct? If yes, this requires scheme switching between BGV and FHEW/TFHE, which is not currently implemented in OpenFHE. We are currently adding scheme switching from CKKS ↔ FHEW/TFHE (it will be included in v1.1). The BGV scenario will be added in later versions.

1 Like