Skip to main content

SLH-DSA

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. 🔖 This project doesn't use any c-extension so it can be run in any version of Python or any kind of system.
  5. 🎉 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.2

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.2
File Size Uploaded Provenance Actions
slh_dsa-0.1.2.tar.gz 69.1 kB Without provenance Details for slh_dsa-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 94.5 kB

Release files / slh_dsa-0.1.2.tar.gz

Download URL slh_dsa-0.1.2.tar.gz
Size 69.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e3908d40113f63cd1fa3a5f09cf897bfb5ce1bfc9f9c69170f70ddd29a62594c
BLAKE2b-256 checksum
How to use checksums
2c30b684541ac2da534e6113c529752b2ca9de12c28dfdad6ffb0b8781219bd2
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.2-py3-none-any.whl

Download URL slh_dsa-0.1.2-py3-none-any.whl
Size 25.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dde1fca289671c01b0f060e4f9e9701095d68a8f6f26fdd96d8c789f3d530f26
BLAKE2b-256 checksum
How to use checksums
dbe06d717aa7eadd79d10e48d0fd4937d2655e7d402228bae0fd51640942f264
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.2

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