When using cc.Decrypt() after executing openfhe.DeserializeCryptoContextString(cc_bytes, openfhe.BINARY), I receive an error:
'tuple' object has no attribute 'Decrypt'
When trying to execute cc.KeyGen() after executing cc = openfhe.DeserializeCryptoContextString(cc_serial, openfhe.JSON), I receive another error:
/usr/local/include/openfhe/pke/cryptocontext.h:l.116:GetContextForPointer(): Cannot find context for the given pointer to CryptoContextImpl
I think the CryptoContext needs its own functio for buffer deserialization like it's done with DeserializeCCWrapper in the file deserialization for the generated CryptoContext to work properly:
When using
cc.Decrypt()
after executingopenfhe.DeserializeCryptoContextString(cc_bytes, openfhe.BINARY)
, I receive an error:'tuple' object has no attribute 'Decrypt'
When trying to execute
cc.KeyGen()
after executingcc = openfhe.DeserializeCryptoContextString(cc_serial, openfhe.JSON)
, I receive another error:/usr/local/include/openfhe/pke/cryptocontext.h:l.116:GetContextForPointer(): Cannot find context for the given pointer to CryptoContextImpl
I think the CryptoContext needs its own functio for buffer deserialization like it's done with
DeserializeCCWrapper
in the file deserialization for the generated CryptoContext to work properly: