A Python 3 library for fully homomorphic encryption. Currently, this library includes an implementation of the Brakerski-Fan-Vercauteren (BFV) scheme, the Cheon-Kim-Kim-Song (CKKS) scheme, and bootstrapping for CKKS.
To install the library run the following command in the root folder:
pip install -e .This should install the necessary dependencies.
You can run all the unit tests as follows:
pytestTo run a specific test file (i.e. test_polynomial.py), you can run the file using Python 3 with the command
python3 tests/test_polynomial.pyTo run all tests in a single class from a test file (i.e. TestPolynomial from tests/test_polynomial.py), you can use the command
python3 tests/test_polynomial.py TestPolynomialTo run a specific test from a test file (i.e. TestPolynomial.test_add from tests/test_polynomial.py), you can use the command
python3 tests/test_polynomial.py TestPolynomial.test_addSee the examples folder for examples on how to use the library.