Pārlūkot izejas kodu

CERAL_REGISTER bugfix

Rener Oliveira (Ubuntu WSL) 2 gadi atpakaļ
vecāks
revīzija
9eb3ea68df

+ 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"