Quick start
The basic steps for using the high-level API of TFHE-rs are:
Client-side: Configuring and creating keys;
Client-side: Encrypting data;
Server-side: Setting the server key;
Server-side: Computing over encrypted data;
Client-side: Decrypting data.
Here is a full example (combining the client and server parts):
The default configuration for x86 Unix machines:
Configuration options for different platforms can be found here. Other rust and homomorphic types features can be found here.
Imports
tfhe
uses traits
to have a consistent API for creating FHE types and enable users to write generic functions. To be able to use associated functions and methods of a trait, the trait has to be in scope.
To make it easier, the prelude
'pattern' is used. All of the important tfhe
traits are in a prelude
module that you can glob import. With this, there is no need to remember or know the traits that you want to import.
Last updated