Installation
Concrete is built in Rust (💛). Here is how to install it.
Installing Rust
Concrete requires Rust 1.46 or above. Run the following to install the latest Rust version, or refer to the rust website for more options.
Installing FFTW
Concrete uses the FFTW library for fast FFT calculations. Use the following commands to install it:
On macOS using Homebrew
On Debian Linux
From source
To install FFTW from source, follow the steps described in FFTW's website.
Importing Concrete in your project
Create a new Rust project if needed using Cargo:
Then add the Concrete dependency concrete_lib = "0.1.0"
to the Cargo.toml
file. For the code examples in this guide, you will also need to import itertools
. Your configuration should look something like:
To use the Concrete library in your code, simply import the concrete
root module:
Then compile and run to test everything works fine:
Next, we will learn about homomorphic encryption and how to use Concrete to execute a program over encrypted data!
Last updated