sp-hydra-veil-core/core/services/crypto/cython
2026-08-22 20:48:22 -04:00
..
bls12_381_pairing.pyx Cython for Miller's Loop Cryptography first introduced, which dramatically reduces verification times. Includes a setup.py option for manual builds if desired. README for manual compile if desired. And a fallback import using the legacy python-only system. 2026-08-22 20:48:22 -04:00
README.md Cython for Miller's Loop Cryptography first introduced, which dramatically reduces verification times. Includes a setup.py option for manual builds if desired. README for manual compile if desired. And a fallback import using the legacy python-only system. 2026-08-22 20:48:22 -04:00
setup.py Cython for Miller's Loop Cryptography first introduced, which dramatically reduces verification times. Includes a setup.py option for manual builds if desired. README for manual compile if desired. And a fallback import using the legacy python-only system. 2026-08-22 20:48:22 -04:00

Overview

We use Cython to compile certain cryptographic operations to C, to make it faster. This is the situation with miller's loop from py_ecc.

Pre-reqs:

In the same venv as the project itself:

pip install cython  
pip install setuptools  

Setup Compile

python3 setup.py build_ext --inplace

If any issues

Try the exact path to your venv.

path/to/your/venv/python3 setup.py build_ext --inplace