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
- Trust Gate MCP -- the hosted server: https://trust-gate-mcp.onrender.com
- Smithery listing -- https://smithery.ai/servers/apps/cwn-trust-gate
- Official MCP Registry --
io.github.CWNApps/trust-gate-mcp - OAO -- the open-source receipt primitive: https://github.com/CWNApps/openagentontology
License
Apache-2.0.
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97dd01a83dc126463e35d811541ccb214f5bbdaa906bf3b20289401d9bf57e85
|
|
| MD5 |
2488c7af18bbd8f3642ab306aca55657
|
|
| BLAKE2b-256 |
2437030322a74bc6f730950f09fd7addd5eef9e0186645e268831f247d87af66
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cwn_langchain_trust_gate-0.1.0.tar.gz -
Subject digest:
97dd01a83dc126463e35d811541ccb214f5bbdaa906bf3b20289401d9bf57e85 - Sigstore transparency entry: 1958594970
- Sigstore integration time:
-
Permalink:
CWNApps/langchain-trust-gate@20194d6fb6efddb85c87089781a05abe4492beb7 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/CWNApps
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@20194d6fb6efddb85c87089781a05abe4492beb7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file cwn_langchain_trust_gate-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cwn_langchain_trust_gate-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91c14242fc05da2825a72bddc6730da48843864a5d2e710fc57314302564f799
|
|
| MD5 |
eff87b93addc0401cb84f3c7fd939c30
|
|
| BLAKE2b-256 |
c490cc970175b771c8b131187cb33c08c7eb96b4a9e5e9b961e33cfaf7914863
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cwn_langchain_trust_gate-0.1.0-py3-none-any.whl -
Subject digest:
91c14242fc05da2825a72bddc6730da48843864a5d2e710fc57314302564f799 - Sigstore transparency entry: 1958595082
- Sigstore integration time:
-
Permalink:
CWNApps/langchain-trust-gate@20194d6fb6efddb85c87089781a05abe4492beb7 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/CWNApps
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@20194d6fb6efddb85c87089781a05abe4492beb7 -
Trigger Event:
push
-
Statement type: