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.1.tar.gz
(206.6 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.1-py3-none-any.whl
(259.4 kB
view details)
File details
Details for the file aun_core-0.1.1.tar.gz.
File metadata
- Download URL: aun_core-0.1.1.tar.gz
- Upload date:
- Size: 206.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f4bfb400e58de4c771838bcb73bfa00af934c809501f9bbfdd80a768a4f10d2
|
|
| MD5 |
304c057c0e90c67ab259ad1d93ba99c5
|
|
| BLAKE2b-256 |
a0d9c5e4a4bca5cbbc6981b7059ae7bcc9cae8429781494ea8e7bf42f334b65f
|
File details
Details for the file aun_core-0.1.1-py3-none-any.whl.
File metadata
- Download URL: aun_core-0.1.1-py3-none-any.whl
- Upload date:
- Size: 259.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 |
c59e7922f3932dad54073f195aa136aec1f036f15332494c3d1cdfb3d9bdcbb8
|
|
| MD5 |
ed32343b90fb50c25e3f7052e7f5b763
|
|
| BLAKE2b-256 |
704a3fba39981fbd2a13e43c2fb1da0f9b3813978cebe541e77e4b357714fe7d
|