mcl-python
is a Python library that creates bindings for mcl library by herumi.
For now mcl-python
supports Linux only.
- Preinstalled mcl library
To install mcl-python clone this repository and use setup.py
script
git clone https://github.com/Fadion96/mcl-python.git
cd mcl-python
python3 setup.py install
And set mcl installation dir to MCL_PATH
environment variable
export MCL_PATH=<path_to_mcl>
import mcl
mcl.mcl_init(mcl.CurveType.MCL_BLS12_381)
sk = mcl.Fr()
sk.set_by_CSPRNG()
print(sk)