Experiment code for the Private Billings library.
Installation involves the following steps:
- Clone this repository and its submodules
git clone git@github.com:3MI-Labs/private-billings-experiment.git --include-submodules
-
Install OpenFHE-development, following its installation procedure.
-
Install OpenFHE-python, following its installation procedure. We recommend installing at commit
87700c2c250ff39eaaa5cbe4daed3e5cb5d9b726
; later installations introduce an obscure bug. Afterwards, make sure to add the installation file to your PYTHONPATH.
export PYTHONPATH=/path/to/OPENFHE_so_files:$PYTHONPATH
- (recommended) Setup a virtual environment
python3 -m venv .env
- Install the dependencies
pip install -r requirements.txt
- Install the private billings dependency
python3 -m pip install -e deps/private-billings
At this point you should be able to launch a python shell and utilize the private_billings
library.
To verify this, open a shell and simply
import private_billings
- Install the
private-billings-data-generation
repository. This repository can be used to generate the data required for this experiment. The generated data should be placed in thedata/
folder.
More details in the installation procedure can be derived from the Dockerfile.