Skip to main content

No project description provided

Project description

Falcon Python Bindings

Python bindings for the Falcon post-quantum signature scheme, implemented in Rust using PyO3.

Features

  • Two security levels:
    • Falcon-512 (NIST security level 1)
    • Falcon-1024 (NIST security level 5)
  • Complete functionality:
    • Key pair generation
    • Message signing (both attached and detached signatures)
    • Signature verification
  • High performance - Rust implementation provides faster operations than pure Python
  • Type annotated - full .pyi stub file included

Installation

pip install falcon-python

For building from source:

pip install maturin
maturin build --release
pip install ./target/wheels/falcon_python-*.whl

Quick Start

from falcon_python import Falcon512, Falcon1024

# Falcon-512 example
pub, priv = Falcon512.generate_keypair()
message = b"Important message"

# Attached signature
signed = Falcon512.sign_message(message, priv)
verified_msg = Falcon512.verify_sign(signed, pub)

# Detached signature
signature = Falcon512.detached_sign(priv, message)
is_valid = Falcon512.verify_detached_sign(signature, message, pub)

Key Sizes

Algorithm Public Key Secret Key Signature
Falcon-512 897 bytes 1281 bytes 666 bytes
Falcon-1024 1793 bytes 2305 bytes 1280 bytes

Security Notice

This implementation uses the reference implementation from PQClean. While Falcon has been selected for standardization by NIST, this is still a relatively new cryptographic algorithm. Use in production systems should be done with proper security considerations.

License

MIT License. Contains code derived from PQClean project (also MIT licensed).

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

falcon_python-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

falcon_python-0.1.0-cp312-cp312-win_amd64.whl (257.3 kB view details)

Uploaded CPython 3.12Windows x86-64

falcon_python-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl (523.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

Details for the file falcon_python-0.1.0.tar.gz.

File metadata

  • Download URL: falcon_python-0.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for falcon_python-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e4d3c9742cb882a76c61c4d68390662413b774961cb15d2607fee22b9447c670
MD5 6b404a642969cace40686d60d638d3c0
BLAKE2b-256 4b103d2d3e4789ee500d62e621a9cbe803933a24be5566c65f20fbb909d194b4

See more details on using hashes here.

File details

Details for the file falcon_python-0.1.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for falcon_python-0.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fa7c3ec809265b87e3abecc28677d241768910cb465ec7b5b6324d1c10fcc311
MD5 6dd399a9d342c9df9912159721419290
BLAKE2b-256 60e2cc6fb7099c478aa3ecfc8beea004bc5b01e69feff19d8f135c3ac67f4f22

See more details on using hashes here.

File details

Details for the file falcon_python-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for falcon_python-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 5bef34c17c7c427dad92e1a7ffe83e10edb31e9ad7df2133ac4e98dd9794d82b
MD5 b9bb3a3e60069efb77ead2d02692aba7
BLAKE2b-256 34c5a8ac863fae47288a97d6ad00d81d14c820529e79076c461d73fec1177c5d

See more details on using hashes here.

Supported by

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