This repository provides a proof-of-concept library that acts as a framework for performing privacy-preserving billing in peer-to-peer energy trading markets. Additionally, this library contains a default implementation of the UCS billing model.
Documentation for this library can be found here.
Installation involves the following steps:
-
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 this package
git clone [email protected]:3MI-Labs/private-billings.git
python3 -m pip install -e private-billings
and you should be good to go!
More details on the installation may futhermore be derived from the Dockerfile
.