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.0.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.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quantumsafe-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 01d8deeaa1b460cf1af324ae93ed2cd82cebc4ff3dca8165839868149ab0bcfe
MD5 abc423f0f5b3f718a01d70581b248c79
BLAKE2b-256 3e75031d9b76fa035e6909db949711adef0a04973fc0c1a420cf5d0238fc6343

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quantumsafe-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a3e6757795b4bce83c8c397a22ebeff6a822f044c785d28ea0c5b3ced7fdc5f
MD5 660dc3769e9c15c7c5977ebf202773d0
BLAKE2b-256 e4f0c47811ed17a8fa259eec4134f9a49e1639cc32f75c46ab6a5a75f17f0b15

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