serialization.h 684 B

12345678910111213
  1. #ifndef OPENFHE_SERIALIZATION_BINDINGS_H
  2. #define OPENFHE_SERIALIZATION_BINDINGS_H
  3. #include <pybind11/pybind11.h>
  4. using namespace lbcrypto;
  5. template <typename T>
  6. bool SerializeToFileImpl(const std::string& filename, const T& obj, const std::string& sertype_str);
  7. bool SerializeToFileInterface(const std::string& filename, const CryptoContext<DCRTPoly>& obj, const std::string& sertype_str);
  8. bool SerializeToFileInterface(const std::string& filename, const PublicKey<DCRTPoly>& obj, const std::string& sertype_str);
  9. bool SerializeToFileInterface(const std::string& filename, const PrivateKey<DCRTPoly>& obj, const std::string& sertype_str);
  10. #endif // OPENFHE_SERIALIZATION_BINDINGS_H