Client Server

Jan 27 at 2:09 AM
Hi, I am very new to HE and SEAL.

I am trying to implement SEAL over client and server, where the client will encrypt a message and send it to the server, who will do simple operations on it and send it back.

I am trying to use JSON to transfer the encrypted message using Newtonsoft.JSON library. However, after receiving the message on the server side, and converting it to BigPolyArray, the properties of the BigPolyArray (size, coeffCount and coeffBitcount) are becoming zero.

Can anyone explain why it is not working? Thank you in advance.
Feb 9 at 7:29 AM
How exactly do you encode/decode it into JSON?

I would suggest using BigPoly save to stream and load from stream to get a representation of the BigPoly in a MemoryStream and encode/decode to JSON from the memory stream. As an alternative, you can use the string representation of the BigPoly and send it via JSON and decode regenerate the BigPoly from string on the other end.
Feb 9 at 10:58 PM
I actually solved the issue by using the MemoryStream way. Now it's working fine.

The second way you mentioned is also good.