zama-ai/tfhe-rs

TFHE-rs: A Pure Rust implementation of the TFHE Scheme for Boolean and Integer Arithmetics Over Encrypted Data.

What it solves

TFHE-rs provides a way to perform computations on data while it remains encrypted, eliminating the need to decrypt data before processing it. This allows for secure, private computation of boolean and integer arithmetics over encrypted data.

How it works

It is a pure Rust implementation of the TFHE (Torus Fully Homomorphic Encryption) scheme. The library provides high-level APIs for boolean and short integer arithmetics, as well as a low-level cryptographic library that implements programmable bootstrapping. It supports multiple interfaces, including a native Rust API, C bindings, and a client-side JavaScript API via WASM.

Who it’s for

It is designed for developers and researchers who need a production-ready, high-performance library for Fully Homomorphic Encryption (FHE) without having to manage the-low level cryptographic implementation details.

Highlights

  • Multi-language support: Offers APIs for Rust, C, and JavaScript (WASM).
  • Ciphertest and server key compression: Enables efficient data transfer of encrypted data.
  • Flexible arithmetic: Supports both boolean and exact, unbounded FHE integer arithmetics (up to 8 bits of message space).
  • Size-efficient public key encryption: Optimizes the storage and storage of public keys.

Related

  • Project
  • Project
  • Project
  • Project
  • Project