Skip to main content

langchain-aotrust

LangChain tools for AOTrust notarization — cryptographic proof-of-existence for AI agent outputs. Free tier (no wallet required), PDRs signed with Ed25519, Merkle-included and anchored on NEAR.

Works with any agent built on langchain-core (LangChain, LangGraph, CrewAI via the standard BaseTool interface, pydantic-ai adapters).

Install

pip install langchain-aotrust

Quickstart

from langchain_aotrust import (
    aotrust_notarize_free,
    aotrust_verify,
    aotrust_status,
)

# 1. Notarize an artifact (free tier — no API key, no wallet)
print(aotrust_notarize_free.invoke({"artifact_text": "analysis v3: portfolio risk moderate"}))
# Notarized (tier=free). shield_id=9f2c... job_id=7a1b... work_hash=...
# Verify later at https://verify.aotrust.link or with aotrust_verify(job_id).

# 2. Check pipeline status
print(aotrust_status.invoke({"job_id": "<job_id>"}))
# Status for job_id=7a1b...: status=anchored, anchored=yes, payment_hash=...

# 3. Full cryptographic verification
print(aotrust_verify.invoke({"job_id": "<job_id>"}))
# Verification for job_id=7a1b...: valid=True, payment_anchor_type=0, ...

Wiring into a LangChain agent:

from langchain_aotrust import aotrust_notarize_free, aotrust_verify
from langchain.agents import create_tool_calling_agent  # any agent works

tools = [aotrust_notarize_free, aotrust_verify, aotrust_status]

Async agents (LangGraph) can await the plain functions directly:

from langchain_aotrust import aotrust_notarize_free_async
result = await aotrust_notarize_free_async(artifact_text="...")

Configuration (optional — defaults to the public endpoint):

from langchain_aotrust import configure
configure(base_url="https://api.aotrust.link")  # NO /v1 suffix — the SDK appends paths

What the proofs mean

Horizon Guarantee
Instant SHA-256 work_hash bound into a signed PDR (Ed25519, notary key) — tamper-evident from notarization time
Python PDR bytes verifiable offline by anyone with the notary public key
Forever Daily Merkle root anchored on NEAR blockchain — proof survives even if the service disappears

Free tier

  • No API key, no wallet, no payment.
  • Rate limited per IP (5 notarizations / 24h) — paid x402 tier ($0.01) in a future release for higher throughput.

License

MIT

Metadata

Release files for langchain-aotrust 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-aotrust 0.1.1
File Size Uploaded Provenance Actions
langchain_aotrust-0.1.1.tar.gz 7.5 kB With provenance Details for langchain_aotrust-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-aotrust 0.1.1
File Interpreter ABI Platform Actions
langchain_aotrust-0.1.1-py3-none-any.whl Python 3 none any Details for langchain_aotrust-0.1.1-py3-none-any.whl

Total release size: 14.3 kB

Release files / langchain_aotrust-0.1.1.tar.gz

Download URL langchain_aotrust-0.1.1.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f45b650860c82ccfec627818d3bd2d2e3c9ef5f6a392945ae92af6a992504566
BLAKE2b-256 checksum
How to use checksums
7578a909ad5c94b3766f646d327de8e411ef4e5a0e9608a62e719df2f01cabec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / langchain_aotrust-0.1.1-py3-none-any.whl

Download URL langchain_aotrust-0.1.1-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff7d9c91a27bd550f242625ab2d3f684067628964b7332085111e0d968b54c4f
BLAKE2b-256 checksum
How to use checksums
7cd2471d9f30cdd9a57bcfb22fe3528178b5832458d17f5410b1124b000d5f26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for langchain-aotrust 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for langchain_aotrust-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page