hatshufflepy

Cython wrapper for hat shuffle implementation


Keywords
mixnet, ecc
License
MIT
Install
pip install hatshufflepy==0.0.6

Documentation

hatshufflepy

Cython wrapper for the hat_shuffle_implementation mixnet.

Python

The module requires Python 2.7.

Installing hatshufflepy

From PyPI

  1. Install Dependencies:
sudo apt-get install libgmp3-dev
pip install cython >= 0.22.1
  1. Install hatshufflepy
pip install hatshufflepy

From source

  1. Install dependencies:
sudo apt-get install build-essential git libboost-all-dev cmake libgmp3-dev libssl-dev libprocps4-dev pkg-config python-pip
pip install cython setuptools
  1. Install hatshufflepy
sudo python setup.py install

ImportError: libhatshuffle.so

Set LD_LIBRARY_PATH

Add to .bashrc:

export LD_LIBRARY_PATH=/path/to/python/site-packages/hatshufflepy

or set an environmental variable for the current session

export LD_LIBRARY_PATH=/path/to/python/site-packages/hatshufflepy

You can find your path to site-packages with the command:

python -m site

So far we have tested these only on Ubuntu 16.04 LTS.