Post-quantum cryptographic identity and verification SDK for AI agents.
Project description
pqagents
Post-quantum cryptographic identity and verification SDK for AI agents.
Secure your AI agents against future quantum computer threats using NIST-approved post-quantum algorithms (ML-DSA-65).
Installation
pip install pqagents
Usage
1. Generating Agent Keys
from pqagents import generate_agent_keys
keys = generate_agent_keys()
print("Public Key:", keys["publicKey"]) # Save to your database
print("Secret Key:", keys["secretKey"]) # Give securely to your agent
2. Signing a Payload
from pqagents import sign_agent_token
payload = {"action": "trade", "amount": 100, "asset": "BTC"}
token = sign_agent_token(payload, keys["secretKey"])
3. Verifying a Signature
from pqagents import verify_agent_token
is_valid = verify_agent_token(token, keys["publicKey"])
if is_valid: print("Cryptographically verified! Action approved.")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pqagents-1.0.0.tar.gz
(2.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pqagents-1.0.0.tar.gz.
File metadata
- Download URL: pqagents-1.0.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f01f59118e8b4ad2e0d14d4af8dbdb2625627767fc9969b25ae16cfea41d79a3
|
|
| MD5 |
eba3ce07009200e71a6873c9ace75e2c
|
|
| BLAKE2b-256 |
cfd2f08f14074da8c758bf10e4f84a3a7f22a9ccce29e2ba36b11ac5b9b60cb3
|
File details
Details for the file pqagents-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pqagents-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e522647672e5cba92c76be327cf353b98d4d20fcd905ec4cf8fe26c1c8d80a46
|
|
| MD5 |
e9fac5a3c752290985776c49ff32a6b5
|
|
| BLAKE2b-256 |
6e35bcb0408bc81ba9af9acea1a02ac88c16822ca7f7ef77c7146b8cc92ce064
|