Skip to main content

Python wrapper for mcl library

Project description

mcl-python

mcl-python is a Python library that creates bindings for mcl library by herumi. For now the only supported curve is MCLBN384_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

MIT

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

mcl-0.0.5.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

mcl-0.0.5-py2.py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page