Metadata-Version: 2.4
Name: quantumsafe
Version: 1.0.0
Summary: QuantumSafe — Post-quantum cryptography SDK for blockchain
License: MIT
Project-URL: Homepage, https://qsafe.dev
Project-URL: Documentation, https://docs.qsafe.dev
Project-URL: Repository, https://github.com/quantumsafe/sdk
Keywords: quantum,pqc,blockchain,ml-dsa,post-quantum,cryptography,ethereum,solana,bitcoin
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Security :: Cryptography
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: httpx>=0.27.0
Requires-Dist: pqcrypto>=0.1.0
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
Requires-Dist: ruff>=0.4.0; extra == "dev"
Requires-Dist: respx>=0.21.0; extra == "dev"
Dynamic: license-file

# quantumsafe

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

## Install

```bash
pip install quantumsafe
```

## Quick Start

```python
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](https://docs.qsafe.dev)

## License

MIT — see [LICENSE](./LICENSE)
