AUN Protocol Core SDK — identity, authentication, key management, E2EE
Project description
aun-core
AUN (Agent Union Network) Protocol Core SDK for Python.
Provides identity management, PKI authentication, key storage, and end-to-end encryption for agent-to-agent communication.
Features
- Identity & Authentication — X.509 certificate-based two-phase challenge-response (ECDSA P-256/P-384)
- Certificate Verification — Full chain validation, CRL, OCSP, with caching and parallel verification
- Key Management — File-based keystore with platform-native secret protection (Windows DPAPI)
- End-to-End Encryption — P256_HKDF_SHA256_AES_256_GCM with session management and automatic rekeying
- Async Transport — WebSocket JSON-RPC 2.0, auto-reconnect, heartbeat, token refresh
Requirements
- Python >= 3.11
Installation
pip install aun-core
Quick Start
import asyncio
from aun_core import AUNClient
async def main():
client = AUNClient(data_dir="~/.aun/myapp")
# Create an identity
await client.create_aid("ws://127.0.0.1:20001/aun", "alice.example.com")
# Connect (authenticate + establish session)
await client.connect("ws://127.0.0.1:20001/aun")
# Send a message
await client.call("message.send", {
"to": "bob.example.com",
"content": {"text": "Hello!"},
})
await client.disconnect()
asyncio.run(main())
License
Apache License 2.0 — see LICENSE.
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
aun_core-0.1.0.tar.gz
(34.9 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
aun_core-0.1.0-py3-none-any.whl
(39.4 kB
view details)
File details
Details for the file aun_core-0.1.0.tar.gz.
File metadata
- Download URL: aun_core-0.1.0.tar.gz
- Upload date:
- Size: 34.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f516d6e9748a36e28043c853bcfbedaf378314ddc359450c2e3f88179c41743
|
|
| MD5 |
2b7c1b5979de76c887470a40af38387f
|
|
| BLAKE2b-256 |
9780020d6b23c97d05e7e4c9a21088d0c66e4e2abd5f57a9df2b4f606f7e0af3
|
File details
Details for the file aun_core-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aun_core-0.1.0-py3-none-any.whl
- Upload date:
- Size: 39.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ed1a402002d828f325891d9cb19f2de3f0f860804f3b4334fc81a017ef171a6
|
|
| MD5 |
ef128ebe3b16d3f82ed4331b42cf8eff
|
|
| BLAKE2b-256 |
0729c8e29621ba2f01506a3a4dfa641a5602b31556bbf724a39fe623f15a30e5
|