Skip to main content

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.

Release files for python-picnic 1.0.1

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

Source distribution (sdist)

Source distribution for python-picnic 1.0.1
File Size Uploaded
python-picnic-1.0.1.tar.gz 1.1 MB Details

Release files / python-picnic-1.0.1.tar.gz

Download URL python-picnic-1.0.1.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
5d5753955463aaabcb6ae10871520624cd5f6550537849108998175f4ee8fe93
BLAKE2b-256 checksum
How to use checksums
1d1f2a05babb6acb850a6a6113b32a868fa1bb88c030bbadf8f7b93139ffa963
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0

1 release file

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