Cython wrapper for the libff library for multiplications on the elliptic curve.
The module requires Python 2.7.
- Install Dependencies:
sudo apt-get install build-essential git libboost-all-dev cmake libgmp3-dev libssl-dev libprocps4-dev pkg-config python-pip
- Install libffpy
pip install libffpy
- Set LD_PRELOAD
Add to .bashrc
:
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libprocps.so
or set an environmental variable for the current session
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libprocps.so
- Install dependencies:
sudo apt-get install build-essential git libboost-all-dev cmake libgmp3-dev libssl-dev libprocps4-dev pkg-config python-pip
./install-depends.sh
pip install cython
- Install libffpy
sudo python setup.py build_ext --inplace
sudo python setup.py install
- Set LD_PRELOAD
Add to .bashrc
:
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libprocps.so
or set an environmental variable for the current session
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libprocps.so
So far we have tested these only on Ubuntu 16.04 LTS.
There exists a demo in the file demo.py of the root directory.
To run it:
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libprocps.so
python demo.py
Or you can add the following line to your .bashrc
.
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libprocps.so