Python wrapper for mcl library
Project description
mcl-python
mcl-python is a Python library that creates bindings for mcl library by 光成滋生 MITSUNARI Shigeo(herumi@nifty.com).
Supported curves
For now the only supported curve is BLS12_384 (named in library BN384_256)
Installation
This package requires mcl to be preinstalled.
Use the package manager pip to install mcl-python.
pip install mcl
Usage
import mcl
fr = new mcl.Fr()
fr.setByCSPRNG()
For more examples, please check tests.
Tests
Tests are written in unittest.
python3 -m unittest discover tests/
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcl-0.0.6.tar.gz.
File metadata
- Download URL: mcl-0.0.6.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db4674d768dc8af692b6422a237c6756a27f289446d03f04650170a80bee8f29
|
|
| MD5 |
eee3293dd7f80c229375de1d0c79039a
|
|
| BLAKE2b-256 |
25132021c724b8cf8aa1a950240aeb7764d1872231eb816c2f29a24584604b05
|
File details
Details for the file mcl-0.0.6-py2.py3-none-any.whl.
File metadata
- Download URL: mcl-0.0.6-py2.py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6ff6ef68c13efb949668c8e35910bb4b1b0429783b586cb3f009e67848febde
|
|
| MD5 |
da5e8e55fa219fccd397c734ae901e0b
|
|
| BLAKE2b-256 |
1ab64a81f0339222eb8637e34aa79b69b9ddfeed690a0c84de9a6d4377d959b4
|