The library exposes utility functions for TFHE operations. The goal of the library is to provide a seamless developer experience for writing smart contracts that can operate on confidential data.
The library provides a type system that is checked both at compile time and at run time. The structure and operations related to these types are described in this sections.
We currently support encrypted integers of bit length up to 32 bits.
Our library provides the following types :
ebool
euint8
euint16
euint32
In the back-end, encrypted integers are TFHE ciphertexts. The library abstracts away the ciphertexts and presents pointers to ciphertexts, or ciphertext handles, to the smart contract developer. The euint
types are wrappers over these handles.
The library exposes utility functions for operations on TFHE ciphertexts. The list of supported operations is presented below.