Function concrete_boolean::gen_keys

source ·
pub fn gen_keys() -> (ClientKey, ServerKey)
Expand description

Generate a couple of client and server keys with the default cryptographic parameters: DEFAULT_PARAMETERS. The client is the one generating both keys.

  • the client key is used to encrypt and decrypt and has to be kept secret;
  • the server key is used to perform homomorphic operations on the server side and it is meant to be published (the client sends it to the server).
use concrete_boolean::gen_keys;
use concrete_boolean::prelude::*;
// generate the client key and the server key:
let (cks, sks) = gen_keys();