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.

Metadata

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 Provenance Actions
python-picnic-1.0.1.tar.gz 1.1 MB Without provenance Details for python-picnic-1.0.1.tar.gz

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

Security for python-picnic 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file No provenance

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