Hello, I’m trying to setup a server and clients with socket programming using select. I want to encrypt the plaintext in the clients, perform a sum in the server and return the result to the clients and decrypt it.
I understand that I have to KeyGen in the server, then pass the public key to the clients, use MultipartyKeyGen to generate a key pair for the client and then perform encryption and send back the encrypted data with the public key of the client, is that right?
I’m trying to find a way to pass the server’s public key to the client but so far I’ve seen suggestions such as serialization however I’m not sure if this the correct way to proceed.