This is a rust extension to efficiently compute discrete logarithms for small exponents using the baby-step giant-step algorithm.
Use ./install.sh
to automatically install babygiant-lib (uses wheels in a best-effort manner).
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
Installing from source requires the rust compiler toolchain (install using rustup
first).
pip install .
cd tests
python -m unittest discover .
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
pip uninstall babygiant-lib