Better context for serialization code
Currently, it is not clear why the following lines are needed in the serialization examples
cc->ClearEvalMultKeys();
cc->ClearEvalAutomorphismKeys();
Also, the following line which is important is not present
lbcrypto::CryptoContextFactory<lbcrypto::DCRTPoly>::ReleaseAllContexts();
Exit criteria:
- The explanation is provided for why the
ClearEvalMultKeys
andClearEvalAutomorphismKeys
are necessary. - A warning about what happens if ^ is not followed
- Integration of
ReleaseAllContexts
You will likely need to restructure the code.
Scenario:
We have the following files: cc.txt, kp.txt, multKey.txt, autoKey.txt all from a server.
We want our client (on a different machine) to use all of these. The Github Gist outlines the order of operations that the client should take to ensure that there isn't any unexpected behavior
Edited by Ian Q