DeserializeCiphertext from a byte string in memory in OpenFHE-Python

Hi,

I’m using OpenFHE with the BFV scheme in Python. I serialize a ciphertext with Serialize(ct, BINARY), send it over the network as base64, then decode it back to bytes.

Is there a way to call DeserializeCiphertext() with a byte string directly? The function seems to only accept a file path.

Thanks!

Yes you can use this function:

DeserializeCiphertextString(serialized_ciph, BINARY)

Event though this is not present in the documentation, you can check its usage in this file here

Thank you very much!