Skip to content

Serialization/deserialization of CryptoContext fails with openfhe v1.3 #989

Open
@shaih

Description

@shaih

Trying to serialize/de-serialize the cryptocontext with Serial::SerializeToFile(filename, cc, SerType::BINARY) or Serial::DeserializeFromFile(filename, cc, SerType::BINARY)) fails with the following error message:

terminate called after throwing an instance of 'cereal::Exception'
  what():  Trying to load an unregistered polymorphic type (lbcrypto::CryptoParametersCKKSRNS).
Make sure your type is registered with CEREAL_REGISTER_TYPE and that the archive you are using was included (and registered with CEREAL_REGISTER_ARCHIVE) prior to calling CEREAL_REGISTER_TYPE.
If your type is already registered and you still see this error, you may need to use CEREAL_REGISTER_DYNAMIC_INIT.

[cereal-bug.cpp.txt](https://github.com/user-attachments/files/20431954/cereal-bug.cpp.txt)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions