Skip to content

sebastinas/python-picnic

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

Python bindings for Picnic

Resources

License

Stars

Watchers

Forks

Packages

No packages published