Hi all,
I wanted to use schemeswitching to outsource the comparison. But I do not how to serialize the keys about schemeswitching. Because the bootstrapping keys are serialized as evalmult keys and rotation keys, I think the schemeswitching may be as evalkeys. I serialize the context and keys(only CKKS and FHEW), but the comparison do not work after reading the context and keys.
I want to know how to serialize the schemeswitching keys and extra information. Thanks for your help.
The error occurs in the slotsToCoeffs. The error is
ckksrns/ckksrns-schemeswitching.cpp:1041 Precomputations for 0 slots were not generated Need to call EvalCKKSToFHEWPrecompute to proceed
Aborted
Hi Cesare, the scheme switching serialization is quite complicated because of the different cryptocontexts and keys that are needed. The error you see signals that deserialization is not performed correctly in your code (the slots is not set, so it defaults to the value 0).
Thanks for you reply.
I’m reading the source code and the papers right now, because I am not familiar to chimera and pegasus.
Looking forward to the relevant features being added.