We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1cb075 commit 7a9861eCopy full SHA for 7a9861e
src/wrapper.cpp
@@ -385,12 +385,17 @@ PYBIND11_MODULE(seal, m)
385
;
386
387
// serializable.h
388
- py::class_<Serializable<GaloisKeys>>(m, "Serializable<GaloisKeys>")
+ py::class_<Serializable<GaloisKeys>>(m, "SerializableGaloisKeys")
389
.def("save", [](const Serializable<GaloisKeys> &gk, const std::string &path){
390
std::ofstream out(path, std::ofstream::binary);
391
gk.save(out);
392
out.close();
393
})
394
+ .def("dumpb", [](const Serializable<GaloisKeys> &gk){
395
+ std::stringstream out(std::ios::binary | std::ios::out);
396
+ gk.save(out);
397
+ return py::bytes(out.str());
398
+ })
399
400
401
// keygenerator.h
0 commit comments