Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sebastinas/python-picnic
Python bindings for Picnic
https://github.com/sebastinas/python-picnic
Last synced: about 1 month ago
JSON representation
Python bindings for Picnic
- Host: GitHub
- URL: https://github.com/sebastinas/python-picnic
- Owner: sebastinas
- License: mit
- Created: 2020-08-10T12:05:54.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-11T07:39:12.000Z (about 1 year ago)
- Last Synced: 2024-11-14T10:26:30.999Z (about 1 month ago)
- Language: Python
- Size: 1.06 MB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Python bindings for Picnic
python-picnic provides Python bindings based on [Cython](https://cython.org/) for the
[Picnic](https://microsoft.github.io/Picnic/) post-quantum signature scheme.## Dependencies
* `Cython >= 0.28` (only for building)
* `pkgconfig` (only for building)
* [Picnic](https://github.com/IAIK/Picnic)## Quick installation guilde
python-picnic can be installed via `pip`:
```sh
pip install python-picnic
```
or by running:
```sh
python3 setup.py install
```Packages for Ubuntu are also available via the [picnic
PPA](https://launchpad.net/~s-ramacher/+archive/ubuntu/picnic):
```sh
sudo add-apt-repository ppa:s-ramacher/picnic
sudo apt update
sudo apt install python3-picnic
```## Usage
```python3
import picnic# create keypair
sk, pk = picnic.keygen(picinc.Picnic_L1_full)
# sign a message
sig = picnic.sign(sk, b"a message")
# verify a signature
picnic.verify(pk, b"a message", sig)
```## License
The code is licensed under the MIT license.