Setting up Client Node
This guide(along with next few pages in this section) provides an example of how to use the CoFHE (Collaborative Fully Homomorphic Encryption) library to perform computations over encrypted data using the provided API. We will walk through setting up a client node, encrypting data, creating compute requests, and interpreting the responses.
Prerequisites
CoFHE Library: The CoFHE library and its dependencies should be properly installed and included in your project.
1. Include Necessary Headers
Begin by including the necessary headers:
Make sure these headers correspond to the CoFHE library's files in your project.
2. Set Up the Client Node
We need to initialize a ClientNode
that will communicate with the network.
Explanation:
We parse the client and setup node details from the command-line arguments.
make_client_node<CPUCryptoSystem>
creates a client node using the CPU-based cryptosystem.We obtain a reference to the cryptosystem to perform local cryptographic operations.
Last updated