Skip to main content

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

MIT

Metadata

Release files for mcl 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcl 0.0.6
File Size Uploaded
mcl-0.0.6.tar.gz 7.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcl 0.0.6
File Interpreter ABI Platform
mcl-0.0.6-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 15.8 kB

Release files / mcl-0.0.6.tar.gz

Download URL mcl-0.0.6.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
db4674d768dc8af692b6422a237c6756a27f289446d03f04650170a80bee8f29
BLAKE2b-256 checksum
How to use checksums
25132021c724b8cf8aa1a950240aeb7764d1872231eb816c2f29a24584604b05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / mcl-0.0.6-py2.py3-none-any.whl

Download URL mcl-0.0.6-py2.py3-none-any.whl
Size 8.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c6ff6ef68c13efb949668c8e35910bb4b1b0429783b586cb3f009e67848febde
BLAKE2b-256 checksum
How to use checksums
1ab64a81f0339222eb8637e34aa79b69b9ddfeed690a0c84de9a6d4377d959b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page