Serialize the bootstrap key


The OpenFHE repository has great examples for serializing the keys used in leveled mode for CKKS, BGV, and B/FV, which are super useful for separating the client and server side of an application.

Is it possible to do the same for the bootstrap keys (like those generated in this example, line 125)?


We don’t currently have an API to serialize bootstrap keys. We’ve added an issue: Add API for serializing bootstrapping keys · Issue #353 · openfheorg/openfhe-development · GitHub

1 Like

The “bootstrapping key” can already be serialized by serializing the EvalMult and EvalAutomorphism keys (see openfhe-development/simple-real-numbers-serial.cpp at main · openfheorg/openfhe-development · GitHub for an example). But a more convenient way would be to do it using a single API call, as @saroja suggested.

1 Like

Great! Thanks @saroja and @ypolyakov for having looked at that!