langchain-popcorn
LangChain tools for POPCORN, the witness service at 767-2676.com, run by Violet Herod (Briarwood).
POPCORN stands outside the parties to a deal and signs what it saw, at the time it saw it. A POPCORN receipt witnesses only that the node received a fingerprint within a stated interval. It does not witness agreement, authorship, competence, completion, fairness, or payment. A receipt is evidence, not permission. Verification depends on accepting the node's key and clock.
Install
pip install langchain-popcorn
This package is not on PyPI yet. Until it is, install it from this folder:
pip install .
Use
from langchain_popcorn import get_tools
tools = get_tools()
That returns the five free tools. They call the POPCORN MCP endpoint at
https://767-2676.com/mcp (Streamable HTTP, POST JSON-RPC 2.0).
| Tool | Cost | What it does |
|---|---|---|
popcorn_sample |
Free | Checks the published October 14, 2026 sample receipt and a changed-digest control. |
popcorn_catalog |
Free | Reads the live catalog, the offer, and the published verification keys. |
popcorn_hash |
Free | Hashes public bytes on the server. Hash private work locally instead; submitted text reaches the server. |
popcorn_verify |
Free | Verifies a time or witness receipt against a caller-trusted JWKS and expected values. |
popcorn_verify_v2 |
Free | Verifies leTAIN TAIN 2.0 evidence against the keys published by the issuer. |
Paid tools
Two tools cost money:
| Tool | Cost | What it does |
|---|---|---|
popcorn_time |
$0.001 | Buys a fresh signed time anchor. |
popcorn_witness |
$0.001 | Buys a fresh witness receipt for a payload digest. |
$0.001 is a tenth of a penny. Payment is in USDC on Base through x402.
Paid tools are off by default. They are returned only when you ask for them, and each one checks the flag again before it calls:
tools = get_tools(allow_paid_tools=True)
Calling a paid tool while the flag is off raises
PopcornPaidToolDisabledError with the price and the condition stated
in the error. Turning the flag on is the caller's statement that the
owner has authorized the payment. Paying also needs an x402-capable
wallet on the calling side. This package never pays on its own.
What a receipt proves, and what it does not
A verified receipt proves that the holder of the published key signed
that fingerprint and that stated time interval, and that the bytes
were not changed after signing. It does not prove the claim inside the
bytes was checked by the witness, and it does not prove delivery,
completion, or agreement. Verification is free and can be done offline
against the published keys at
https://767-2676.com/.well-known/popcorn-keys.json.
License
POPCORN Read-and-Use Terms v1.2
(LicenseRef-POPCORN-Read-and-Use-Terms). Copyright 2026 Violet Herod.
The code is open to see and to use under those terms. It is not MIT.
Metadata
Release files for langchain-popcorn 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| langchain_popcorn-0.1.0.tar.gz | 8.1 kB | With provenance | Details for langchain_popcorn-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langchain_popcorn-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for langchain_popcorn-0.1.0-py3-none-any.whl |
Total release size: 16.4 kB
Release files / langchain_popcorn-0.1.0.tar.gz
| Download URL | langchain_popcorn-0.1.0.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
329bbd036d2a6e4e6986ee6a0821bcac81c90ead26ea640f4bab48b8c2942c22
|
|
BLAKE2b-256 checksum How to use checksums |
7e767083db5ecd26764591b9227e2fd595fb95d13c79274c51329fa3b5ce84db
|
| 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 Dec 2, 2026.
Transparency logRelease files / langchain_popcorn-0.1.0-py3-none-any.whl
| Download URL | langchain_popcorn-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b7faed7474341df976e8857ae894be66dd19dcb21f7ac06c5bf5190d0d65dff
|
|
BLAKE2b-256 checksum How to use checksums |
47935b1fbe4bd21ca7a06a54055ca52a4f2a28c6d849b8f613c170b7792e0bf0
|
| 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 Dec 2, 2026.
Transparency logSecurity for langchain-popcorn 0.1.0
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.
Attestation for langchain_popcorn-0.1.0.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 Dec 2, 2026.
Transparency logA 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.