This demo uses Concrete library to implement exact homomorphic computation with 3-bit integers.
The following functions are implemented:
- addition between a ciphertext and a constant
- subtraction between a ciphertext and a constant
- multiplication between a ciphertext and a constant
- addition between two ciphertexts
- subtraction between two ciphertexts
- multiplication between two ciphertexts
- max between two ciphertexts
To run this demo, you have to install Rust and Concrete Library.
By default in the main and in the test we call the setup
function which takes quite some time to generate the bootstrapping key and to write it in a file.
It only needs to be done once, then you can use the setup_load
function instead which will simply load the key from the local file.
make test
: to run hundreds of homomorphic additions multiplications and moremake build
: to buildmake run
: to run the simple main program
This software is distributed under the AGPL-v3 license. If you have any question, please contact us at hello@zama.ai.