This repository conatins the code for the schemes UZP-IPFE and UAB-IPFE.
Steps to reproduce the experiments.
- Install dependencies of CiFEr
- Build our modified CiFEr library
- Compile and run an example
The requirements have to be installed manually (via package manager or building the source code).
To be able to build CiFEr as described below, AMCL must be compiled with BN254
curve. This can be done manually, but for convenience, we provide a Bash script
that runs a modified AMCL setup (a Python script) and installs a minimal version
of AMCL in the standard directory /usr/local/lib
and header files in
/usr/local/include
. These default values can be changed in
external/amcl/setup_amcl.sh
. To use the script, run:
cd external/amcl
sudo ./setup_amcl.sh
cd ../..
To build and install, first clone the repo, then run the following commands in the source code directory:
mkdir build
cd build
cmake ..
make
sudo make install
This builds the shared library (libcifer.so
) and installs it.
By default, it places the shared library in /usr/local/lib
and the header
files in /usr/local/include
To compile and run an example go to the example folder and run make. There is an example for each proposed scheme e.g. uzpipfe / uabipfe :
cd example
make uzpipfe
./uzpipfe.out