Skip to main content

LangChain tools for Trust Gate post-quantum receipts (Ed25519 + ML-DSA-65, verifiable offline).

Project description

langchain-trust-gate

LangChain tools for Trust Gate post-quantum, tamper-evident receipts on consequential agent actions.

Trust Gate receipts are signed Ed25519 + ML-DSA-65 (FIPS 204) by the hosted MCP server (no local signing key). Each receipt is verifiable offline from the certificate alone. The hosted server defaults to PQ-required verify (defends against Ed25519-only downgrade); set TRUST_GATE_REQUIRE_PQ=false on your own deployment to allow Ed25519-only receipts.

Install

pip install cwn-langchain-trust-gate

Usage

from langchain_trust_gate import MintActionReceiptTool, VerifyReceiptTool

# wire into any LangChain agent
tools = [MintActionReceiptTool(), VerifyReceiptTool()]

# typical flow inside an agent:
#   1. the agent decides to do something consequential
#   2. it calls trust_gate_mint_action_receipt(agent_id, operation, target)
#   3. the receipt is stored, attached to the audit log, returned to the user
#   4. later anyone can call trust_gate_verify_receipt(receipt) to confirm tamper-free

Configuration

# point at a different deployment (Render / Smithery / self-hosted)
export TRUST_GATE_URL="https://trust-gate-mcp.onrender.com"

Tools

Tool Purpose
trust_gate_mint_action_receipt Mint a post-quantum receipt for any consequential agent action.
trust_gate_verify_receipt Verify a Trust Gate receipt from the certificate alone. Defaults to PQ-required.

Telemetry

Each tool invocation makes one fire-and-forget GET /x?via=langchain&kind=api against the Trust Gate server. No PII, no cookies, no fingerprinting -- just a channel tag so we can measure adoption per framework. Telemetry never blocks or fails the tool.

Background

License

Apache-2.0.

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

cwn_langchain_trust_gate-0.1.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

cwn_langchain_trust_gate-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file cwn_langchain_trust_gate-0.1.0.tar.gz.

File metadata

  • Download URL: cwn_langchain_trust_gate-0.1.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for cwn_langchain_trust_gate-0.1.0.tar.gz
Algorithm Hash digest
SHA256 97dd01a83dc126463e35d811541ccb214f5bbdaa906bf3b20289401d9bf57e85
MD5 2488c7af18bbd8f3642ab306aca55657
BLAKE2b-256 2437030322a74bc6f730950f09fd7addd5eef9e0186645e268831f247d87af66

See more details on using hashes here.

Provenance

The following attestation bundles were made for cwn_langchain_trust_gate-0.1.0.tar.gz:

Publisher: release.yml on CWNApps/langchain-trust-gate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cwn_langchain_trust_gate-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cwn_langchain_trust_gate-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 91c14242fc05da2825a72bddc6730da48843864a5d2e710fc57314302564f799
MD5 eff87b93addc0401cb84f3c7fd939c30
BLAKE2b-256 c490cc970175b771c8b131187cb33c08c7eb96b4a9e5e9b961e33cfaf7914863

See more details on using hashes here.

Provenance

The following attestation bundles were made for cwn_langchain_trust_gate-0.1.0-py3-none-any.whl:

Publisher: release.yml on CWNApps/langchain-trust-gate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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