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.1.1.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.1.1.tar.gz.
File metadata
- Download URL: agentic_identity-0.1.1.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 |
e6c84e24f64714536350bd9dcf9a97bfad0830928ed1af98f4854914926bed6b
|
|
| MD5 |
d9ad6d9384a1f22451ad1870772a3edc
|
|
| BLAKE2b-256 |
bd5f17bb8618c8567521cb443cf3a7b0584b8694696ba6829a35c6e3a29fedf7
|
File details
Details for the file agentic_identity-0.1.1-py3-none-any.whl.
File metadata
- Download URL: agentic_identity-0.1.1-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 |
069a71f48ba2ffd901370fe9fa501408110f2d1f90d8167b70d9161df3d9bcf7
|
|
| MD5 |
bfd4e193206608a6e24a72bbf0ca58f8
|
|
| BLAKE2b-256 |
1acb6c805be53bc95a0e69603d28d96dcc27459fab1d2d766edabfaa88ee0e03
|