How to reproduce the implementation results of the paper[LMKCDEY]

I am new to use openfhe but I want to reproduce the implementation results of the paper[LMKCDEY], mainly Algorithm 7. I want to use this function cc.GenerateBinFHEContext(n,N,q,Q,std,baseKS, baseG, baseR, UNIFORM_TERNARY, LMKCDEY, numAutoKeys);,but I don’t know how to set the parameters( baseKS, baseG, baseR) in it.

You can use the OpenFHE lattice estimator to generate custom parameters for your case: GitHub - openfheorg/openfhe-lattice-estimator: Scripts to generate FHEW/TFHE parameters for OpenFHE using the Lattice Estimator. You can then copy the line following table entry: and create your own named parameter set in openfhe-development/src/binfhe/lib/binfhecontext.cpp at v1.2.3 · openfheorg/openfhe-development · GitHub This is the easiest option.

The other option is to use GenerateBinFHEContext directly (if you know how to set the LMCKDEY parameters). I am referring to the method at openfhe-development/src/binfhe/lib/binfhecontext.cpp at v1.2.3 · openfheorg/openfhe-development · GitHub You can find an example of using it at openfhe-lattice-estimator/src/boolean_noise_estimate_script.cpp at main · openfheorg/openfhe-lattice-estimator · GitHub

The method you referred to cc.GenerateBinFHEContext(n,N,q,Q,std,baseKS, baseG, baseR, UNIFORM_TERNARY, LMKCDEY, numAutoKeys) is not typically used (it is marked as “for advanced users only” in the documentation).

Thank you. I have installed the OpenFHE lattice estimator according to the instructions on GitHub, but encountered the following issue when running the example. How should I modify it?


Please create a new topic for this question as it is different from the original question.