Skip to main content

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


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.3.0.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentic_identity-0.3.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file agentic_identity-0.3.0.tar.gz.

File metadata

  • Download URL: agentic_identity-0.3.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

Hashes for agentic_identity-0.3.0.tar.gz
Algorithm Hash digest
SHA256 7c1f3c2765e7615556b3d7260ac2d914ea3eb07d0d7e4710e853330f8de14807
MD5 c9c32da91f9a6d3b4d01ad712a0a5a7f
BLAKE2b-256 baf31c22ae57b23a7bda43899ce15ed6c95dbf03ac646fac49c801b877290e79

See more details on using hashes here.

File details

Details for the file agentic_identity-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentic_identity-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74ee6e1db41cb6825d717acb453ed1aa0a44d3f36dd23ae22a4457dff9875ff8
MD5 b576f4f7bde66d3c5cdbc93ce0b3e461
BLAKE2b-256 08074f13e372626c935ad3127de4fa8693a92e36587d4cf48d8328c91b440fb6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page