Skip to main content

Verifiable receipts that prove what an AI agent did. Sign locally, verify anywhere, zero backend.

Project description

ActionProof (Python)

Verifiable receipts that prove what your AI agent did. Sign locally, verify anywhere, zero backend. Receipts are cross-compatible with the TypeScript library — a receipt signed in one verifies in the other.

from actionproof import attest, verify, generate_keypair

agent = generate_keypair()

receipt = attest(
    agent,
    type="email.send",
    summary="Sent renewal quote to jane@acme.com",
    params={"to": "jane@acme.com", "amount": 4200},  # hashed, not stored in clear
    result={"smtp": 250},
    outcome="ok",
)

verify(receipt)  # -> VerifyResult(valid=True, agent="did:key:z6Mk...")

Auto-emit receipts

Decorator — every call to the function emits a signed receipt:

from actionproof import attest_action

@attest_action(agent, type="email.send", on_receipt=store)
def send_email(to, body): ...

LangChain / CrewAI — attest every tool the agent runs, no per-tool code:

from actionproof import ActionProofCallbackHandler

handler = ActionProofCallbackHandler(agent, on_receipt=store)
agent_executor.invoke(input, config={"callbacks": [handler]})

Install & test

pip install -e ".[dev]"
pytest tests/          # 7 tests incl. a TS↔Python cross-language interop check

Requires cryptography. The optional langchain extra makes the callback handler a real BaseCallbackHandler; without it, the handler still works as a plain object.

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

actionproof-0.0.1.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

actionproof-0.0.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file actionproof-0.0.1.tar.gz.

File metadata

  • Download URL: actionproof-0.0.1.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for actionproof-0.0.1.tar.gz
Algorithm Hash digest
SHA256 dae0a0fcab4f54478ac57b1a34fba1f1fbf45551924befdb2dc9d66c2254d157
MD5 572fb81a84e0166d2cda8bc73549ac5a
BLAKE2b-256 2d9474ac478139fa13bf285327f5966116b7bd0e76978a243d193aaba4686b95

See more details on using hashes here.

File details

Details for the file actionproof-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: actionproof-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for actionproof-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 03f269461086645fb31cd803d02099d8d77ecc46067add0e4858f54ded85a7e5
MD5 470cc98f646355da2f55c9d33ccdcca8
BLAKE2b-256 4fe7af4a9dc833961261bb4201526d66fc8361b816032fb54a4e08097c4dde7d

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