Python bindings for Picnic
python-picnic provides Python bindings based on Cython for the Picnic post-quantum signature scheme.
Dependencies
Cython >= 0.28(only for building)pkgconfig(only for building)- Picnic
Quick installation guilde
python-picnic can be installed via pip:
pip install python-picnic
or by running:
python3 setup.py install
Packages for Ubuntu are also available via the picnic PPA:
sudo add-apt-repository ppa:s-ramacher/picnic
sudo apt update
sudo apt install python3-picnic
Usage
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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-picnic-1.0.1.tar.gz
(1.1 MB
view details)
File details
Details for the file python-picnic-1.0.1.tar.gz.
File metadata
- Download URL: python-picnic-1.0.1.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d5753955463aaabcb6ae10871520624cd5f6550537849108998175f4ee8fe93
|
|
| MD5 |
8cf297eb0b8a4ea10d34cfb5bf6d0424
|
|
| BLAKE2b-256 |
1d1f2a05babb6acb850a6a6113b32a868fa1bb88c030bbadf8f7b93139ffa963
|