Skip to content

Latest commit

 

History

History
 
 

babygiant-lib

babygiant-lib

This is a rust extension to efficiently compute discrete logarithms for small exponents using the baby-step giant-step algorithm.

Install

Automatic (recommended)

Use ./install.sh to automatically install babygiant-lib (uses wheels in a best-effort manner).

From wheel

Install using precompiled binary (select whl file matching your platform; use pip debug --verbose to show compatible tags):

pip install dist/babygiant_lib-1.0-<your-architecture>.whl

From source

Installing from source requires the rust compiler toolchain (install using rustup first).

pip install .

Tests

cd tests
python -m unittest discover .

Build Wheels

According to here:

docker pull quay.io/pypa/manylinux2014_x86_64
docker run --rm -v `pwd`:/io quay.io/pypa/manylinux2014_x86_64 bash /io/build-wheels.sh

Uninstall

pip uninstall babygiant-lib