Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/piotrszyma/mcl-python
Python bindings for mcl library by herumi
https://github.com/piotrszyma/mcl-python
bindings cryptography pairing
Last synced: 6 days ago
JSON representation
Python bindings for mcl library by herumi
- Host: GitHub
- URL: https://github.com/piotrszyma/mcl-python
- Owner: piotrszyma
- License: mit
- Created: 2020-01-25T09:40:22.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-15T20:37:50.000Z (about 1 month ago)
- Last Synced: 2024-10-17T16:22:26.467Z (about 1 month ago)
- Topics: bindings, cryptography, pairing
- Language: Python
- Homepage:
- Size: 77.1 KB
- Stars: 2
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mcl-python
`mcl-python` is a Python library that creates bindings for [mcl](https://github.com/herumi/mcl) library by 光成滋生 MITSUNARI Shigeo([email protected]).
## Supported curves
For now the only supported curve is `BLS12_384` (named in library `BN384_256`)
## Installation
**This package requires [mcl](https://github.com/herumi/mcl) to be preinstalled.**
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install mcl-python.
```bash
pip install mcl
```## Usage
```python
import mclfr = new mcl.Fr()
fr.setByCSPRNG()
```For more examples, please check [tests](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](https://choosealicense.com/licenses/mit/)