Open
Description
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)