Cryptographic trust anchor for AI agents
Project description
agentic-identity
Python bindings for the AgenticIdentity cryptographic trust anchor.
Install
pip install agentic-identity
Note: The native shared library must be built first:
cargo build --release -p agentic-identity-ffi
Quick Start
from agentic_identity import Identity, verify_receipt, version
print(f"Library version: {version()}")
# Create a new identity
identity_id = Identity.create(
path="agent.aid",
passphrase="strong-passphrase",
name="my-agent",
)
print(f"Created: {identity_id}")
# Load and use the identity
with Identity.load("agent.aid", "strong-passphrase") as identity:
print(f"ID: {identity.identity_id}")
print(f"Public key: {identity.public_key}")
# Sign an action
receipt = identity.sign_action(
action_type="decision",
description="Approved deployment to production",
)
# Verify the receipt
assert verify_receipt(receipt)
print("Receipt verified!")
Features
- Zero dependencies — only Python stdlib (
ctypes,json,dataclasses) - Ed25519 signatures — identity anchors, action receipts, trust grants
- Type-safe models — frozen dataclasses for all domain types
- Context manager — automatic cleanup of native handles
- Full FFI coverage — all 11 C API functions bound
Requirements
- Python >= 3.10
- Native library:
cargo build --release -p agentic-identity-ffi
License
MIT
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
agentic_identity-0.2.0.tar.gz
(14.2 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 agentic_identity-0.2.0.tar.gz.
File metadata
- Download URL: agentic_identity-0.2.0.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52b65c73a57a4e8d367d7650ff025e36ea572dbd61c28f61e861f078f0427063
|
|
| MD5 |
4fd05a5a27aa0496fcd8e8e92dc0ae1a
|
|
| BLAKE2b-256 |
ac7ff5f9044d4dd3bc9c2e63263d0491c6d8367eed89cfe9bac7ea3b0756573c
|
File details
Details for the file agentic_identity-0.2.0-py3-none-any.whl.
File metadata
- Download URL: agentic_identity-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1120c9a888ed0d22cdec2e7801deb04a76100cbbeed9aeeeae650334029f8173
|
|
| MD5 |
6e50c9ef89b9d33cfe33ba0f0160237f
|
|
| BLAKE2b-256 |
7640b67e9b2423d8b44d326203fc443d7110a2f544b96b0f74b53b6488b877c1
|