Skip to main content

Python bindings for picnic

Project description

Python bindings for Picnic

python-picnic provides Python bindings based on Cython for the Picnic post-quantum signature scheme.


  • 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 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


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)


The code is licensed under the MIT license.

Project details

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 hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page