Skip to content

Commit 7a9861e

Browse files
committed
이름 수정, dumpb 추가
1 parent c1cb075 commit 7a9861e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/wrapper.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,12 +385,17 @@ PYBIND11_MODULE(seal, m)
385385
;
386386

387387
// serializable.h
388-
py::class_<Serializable<GaloisKeys>>(m, "Serializable<GaloisKeys>")
388+
py::class_<Serializable<GaloisKeys>>(m, "SerializableGaloisKeys")
389389
.def("save", [](const Serializable<GaloisKeys> &gk, const std::string &path){
390390
std::ofstream out(path, std::ofstream::binary);
391391
gk.save(out);
392392
out.close();
393393
})
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+
})
394399
;
395400

396401
// keygenerator.h

0 commit comments

Comments
 (0)