Skip to main content

SLH-DSA

Test And Build codecov PyPI - Downloads GitHub License

The SLH-DSA project implements the stateless-hash digital signing algorithm(standardizing fips 205, adopted on Sphincs-Plus algorithm) in pure Python.

This project offers those future:

  1. 🍻 Zero dependencies;
  2. 🏷️ 100% type hint for all the codes;
  3. ✅ Extreme good 98% test coverage;
  4. 🔖 Support any newer python version!
  5. ⚒️ Design for Human!
  6. 🎉 More futures coming soon!

The functionality is extremely simple to use, as demonstrated by the following example:

from slhdsa import KeyPair, shake_256f, PublicKey

kp = KeyPair.gen(shake_256f)  # generate the keypair
sig = kp.sign(b"Hello World!")  # sign the message
kp.verify(b"Hello World!", sig)  # -> True
kp.verify(b"Hello World!", b"I'm the hacker!") # -> False
kp.verify(b"hello world!", sig)  # -> False
sig = kp.sign(b"Hello World!", randomize = True)  # sign the message randomized
kp.verify(b"Hello World!", sig)  # -> True

digest = kp.pub.digest()  # generate the digest of the public key so that other device could verify the sign
pub = PublicKey.from_digest(digest)  # generate public key
pub.verify(b"Hello World!", sig)  # -> True
pub.verify(b"Hello World", sig)  # -> False

Copyright(c) Colinxu2020 2024 All Rights Reserved.

This software is licensed under GNU Lesser General Public License Version 3 or later(on your option).

Metadata

Release files for SLH-DSA 0.1.3

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

Source distribution (sdist)

Source distribution for SLH-DSA 0.1.3
File Size Uploaded Provenance Actions
slh_dsa-0.1.3.tar.gz 255.8 kB Without provenance Details for slh_dsa-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for SLH-DSA 0.1.3
File Interpreter ABI Platform Actions
slh_dsa-0.1.3-py3-none-any.whl Python 3 none any Details for slh_dsa-0.1.3-py3-none-any.whl

Total release size: 281.8 kB

Release files / slh_dsa-0.1.3.tar.gz

Download URL slh_dsa-0.1.3.tar.gz
Size 255.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d0eb63948ff0dc5d0e5aef9fb1023d337948418d0dc78f186efa06710d002756
BLAKE2b-256 checksum
How to use checksums
1019899a14b35e40147010d3b18e29f1b3e57142a53eb18d835f673370bcb915
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.16.1 CPython/3.12.1 Windows/11

Release files / slh_dsa-0.1.3-py3-none-any.whl

Download URL slh_dsa-0.1.3-py3-none-any.whl
Size 26.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b0d13a16a668fe57d7765ec8b7e3a1f19348d7043d1a9a40a8bd48c4cacc97d
BLAKE2b-256 checksum
How to use checksums
6ab5d4f096ee227c2f6ebd2b3a6d9790d7604711b03c3817b8b0fe6c874c5ee5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.16.1 CPython/3.12.1 Windows/11

Security for SLH-DSA 0.1.3

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.

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