소스 검색

CERAL_REGISTER bugfix

Rener Oliveira (Ubuntu WSL) 2 년 전
부모
커밋
9eb3ea68df
2개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      src/pke/examples/simple-integers-serial.py
  2. 1 0
      src/pke/serialization.cpp

+ 0 - 1
src/pke/examples/simple-integers-serial.py

@@ -17,7 +17,6 @@ cryptoContext.Enable(PKESchemeFeature.PKE)
 cryptoContext.Enable(PKESchemeFeature.KEYSWITCH)
 cryptoContext.Enable(PKESchemeFeature.LEVELEDSHE)
 
-## Not working yet
 if not SerializeToFile(datafolder + "/cryptocontext.txt", cryptoContext, 'binary'):
    raise Exception("Error writing serialization of the crypto context to cryptocontext.txt")
 

+ 1 - 0
src/pke/serialization.cpp

@@ -1,6 +1,7 @@
 #include <pybind11/pybind11.h>
 #include <pybind11/stl.h>
 #include <openfhe/pke/openfhe.h>
+#include <openfhe/pke/scheme/bfvrns/bfvrns-ser.h>
 #include "bindings.h"
 #include "serialization.h"