Skip to main content

QuantumSafe — Post-quantum cryptography SDK for blockchain

Project description

quantumsafe

Post-quantum cryptography SDK for blockchain. Scan wallets for quantum risk, generate PQC keys, and verify hybrid signatures.

Install

pip install quantumsafe

Quick Start

import asyncio
from quantumsafe import QuantumSafe

async def main():
    qs = QuantumSafe(api_key="your-api-key")

    # 1. Scan a wallet for quantum risk
    scan = await qs.scan_wallet(chain="ethereum", address="0xYourAddress")
    print(f"Risk score: {scan.risk_score}")

    # 2. Generate a post-quantum key pair
    keys = await qs.generate_key(algorithm="ml-dsa-65", chain="ethereum")
    print(f"Public key: {keys.public_key}")

    # 3. Register key on-chain & verify
    registered = await qs.register_key(chain="ethereum", public_key=keys.public_key)

    result = await qs.verify(
        chain="ethereum",
        address="0xYourAddress",
        attestation_id=registered.attestation_id,
    )
    print(f"Verified: {result.verified}")

asyncio.run(main())

Supported Chains

  • Ethereum
  • Solana
  • Bitcoin
  • Polygon
  • Avalanche
  • Cosmos

Documentation

Full API docs: https://docs.qsafe.dev

License

MIT — see LICENSE

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

quantumsafe-1.0.1.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

quantumsafe-1.0.1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file quantumsafe-1.0.1.tar.gz.

File metadata

  • Download URL: quantumsafe-1.0.1.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for quantumsafe-1.0.1.tar.gz
Algorithm Hash digest
SHA256 96989cf1de9c1cbeb6102aa2b3c16b043256ec7c47b8ec453c98558525ec6ec3
MD5 e89871bc84b50d5b6f83d0e9010c4bff
BLAKE2b-256 7771695b6dae44045a360f5365239e49b4503d5130ea3c73cb424f20075ce65d

See more details on using hashes here.

File details

Details for the file quantumsafe-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: quantumsafe-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for quantumsafe-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 816f1590cdc8f33219b5687f39d3c5f506964815c428da725a3119a3637472b3
MD5 28dab1c6716af92d05a1a8c21d451b52
BLAKE2b-256 1074438cd84dfb814664a115c7f035de68b9151e50db26f734536c165befd548

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