Metadata-Version: 2.4
Name: qzkp
Version: 0.1.0
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Security :: Cryptography
Classifier: License :: OSI Approved :: MIT License
Summary: Quantum Zero-Knowledge Proof protocol with BB84 simulation and Aadhaar integration (Rust-powered)
Keywords: quantum,zero-knowledge-proof,bb84,aadhaar,cryptography
License: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Documentation, https://github.com/vrag99/QZKP-simulation#readme
Project-URL: Repository, https://github.com/vrag99/QZKP-simulation

# qzkp

Quantum Zero-Knowledge Proof protocol with BB84 simulation and Aadhaar identity verification -- powered by Rust.

## Install

```bash
pip install qzkp
```

## Quick start

```python
from qzkp import QZKPProtocol, QAadhaarProtocol, ServiceProvider, BB84QKD

# QZKP proof: same secret => valid
proto = QZKPProtocol("shared_secret", "shared_secret", 32, 0.025)
result = proto.run_protocol()
print(result["verification_status"])  # True
print(result["qber"])                 # ~0.02-0.09

# QZKP proof: different secrets => invalid
proto2 = QZKPProtocol("secret_a", "secret_b", 32, 0.025)
result2 = proto2.run_protocol()
print(result2["verification_status"])  # False

# Aadhaar authentication
aadhaar = QAadhaarProtocol(
    aadhaar_id="1234-5678-9012",
    master_secret="my_secret",
    attributes={"name": "Alice", "age": "25"},
)
challenge = aadhaar.request_authentication("Gov Portal", "identity_verification")
proof, qzkp_result = aadhaar.generate_proof(challenge)

verifier = ServiceProvider("Gov Portal")
print(verifier.verify_proof(proof))  # True

# BB84 key distribution
bb84 = BB84QKD(100, 0.02)
keys = bb84.generate_key()
print(keys["error_rate"])  # < 0.11
```

## Reproducibility

All methods accept an optional `seed` parameter for deterministic results:

```python
result = proto.run_protocol(seed=42)
```

## License

MIT

