-
Notifications
You must be signed in to change notification settings - Fork 715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transparent Ciphertext #200
Comments
There is a bug in your code: you are calling the incorrect overload of CKKSEncoder::encode for encoding a single integer. Your double is cast to 0 so the plaintext is identically zero. I've made this mistake too. It would probably be a good idea to rename the CKKSEncoder::encode overload for a single integer to something else to avoid issues like this. The difference between the single floating-point and the single integer versions is that the single-integer version doesn't require a scale to be given (it uses scale 1.0). |
Thanks Kim!! This is really helpful. All solved. |
Hello! I was trying to solve the exact same problem, I checked if something had changed in the ckks.h since what you said about the "calling the incorrect overload" however I found that calling CKKSEncoder::encode was still in such an overload. I was wondering if there is a way to specify which type you're using or how exactly was this solved? Initially I thought it was missing a double scale variable... but then I tried that, ckks_encoder.encode(p, scale, ptext); to try to call the |
Hello,
I am aware there have been issues reported on transparent ciphertexts, including #179 and #137. I also get the error of
libc++abi.dylib: terminating with uncaught exception of type std::logic_error: result ciphertext is transparent
when I do,To avoid, I included two ifs in SEAL/native/src/seal/evaluator.cpp file like following:
However, the error is not reconciled.
FYI, my SEAL version is 3.5.6 (master), Apple clang version is 11.0.3, and cmake version is 3.13.4.
Does anyone know how to fix this problem?
Thank you!
hdk
The text was updated successfully, but these errors were encountered: