verify-proof

io.github.csolomon0704-prog由 GitHub 帳號 csolomon0704-prog 發布v0.4.0更新於 Oct 26, 2026

Verify timestamp proofs offline, anchor hashes through ProofLedger, keep agent run receipts.

發布方自己的服務:Proof Holdings

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理計算檔案雜湊、離線驗證區塊鏈時間戳證明、透過 ProofLedger 錨定雜湊,並保存代理執行回執。

可以做什麼
  • 計算本機檔案的雜湊,並與證明包比對,全程離線
  • 以內嵌或檔案形式的證明資料驗證已知雜湊,並說明證明的意涵
  • 建立證明、批次錨定最多 100 個檔案、查詢錨定狀態,並把證明包存到檔案旁(需連網與 API 金鑰)
  • 建立、追加、錨定並驗證代理執行回執,只記錄步驟指紋而不保存內容
適用情境
需要證明某檔案在某個時間點已存在且之後未被更動,或在不信任簽發服務的情況下核驗這類證明時適用。也適合記錄 AI 代理做了什麼,而不保留提示詞、工具呼叫或輸出內容。
執行需求
以本機 stdio 程序執行,需安裝 verify-proof Python 套件的 MCP 附加元件(uvx 或 pip),並以 verify-proof-mcp 啟動。建立、批次、狀態與證明包工具需要環境變數 PROOFLEDGER_API_KEY 中的 ProofLedger API 金鑰及網路存取;驗證與回執工具兩者皆不需要。
安裝前請注意
建立、批次、狀態與證明包工具會把 SHA-256 雜湊以及(除非關閉)檔名傳送給 ProofLedger,檔案本身不會離開本機。錨定會消耗免費方案的每月證明額度。離線驗證不讀取鏈上資料,在區塊瀏覽器查證交易之前,錨定資訊僅為證明包所述內容。回執含每次執行產生的密鑰,分享前應移除。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 verify-proof,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

verify-proof

Check a blockchain timestamp proof on your own machine, and make one through an API.

verify-proof recomputes a file's SHA-256 hash and checks it against a proof bundle, so you can confirm that this exact file existed by the time it was anchored and has not changed by a single byte since. Verification is pure computation: it needs the file and the bundle, no account and no network call. Creating a proof is the one command that goes online, through ProofLedger's API with a free key. Free, MIT licensed, Python standard library only.

Also available for Node.js: npm install verify-proof, a zero-dependency port sharing the same proof format and semantics, tested against the same fixtures. See js/.

The sections below are the questions people ask, each answered with the shortest code that does it.

Install

bash
pip install verify-proof

The base install pulls no dependencies (it uses only the Python standard library) and gives you a verify-proof command:

bash
verify-proof --help

To use it as an MCP server for Claude Desktop or Cursor, install the optional extra instead (details below):

bash
pip install "verify-proof[mcp]"

Prefer to run from source? Clone it; the CLI works the same:

bash
git clone https://github.com/Fulcrum-Enterprises/verify-proof.gitcd verify-proofpython verify_proof.py --help

How do I prove a file existed at a certain time, in code?

Hash the file locally, anchor the hash in a public blockchain transaction, and keep the record of that transaction next to the file. The transaction's block time is the "no later than" date; the hash ties it to these exact bytes. The file itself never leaves your machine.

This package does the hashing and the verifying; ProofLedger does the anchoring, on Polygon, usually within a minute, with a free API key (100 API proofs a month on the Free plan):

Get a free key at proofledger.io

From the command line:

bash
export PROOFLEDGER_API_KEY=sk_...      # Account > API Keysverify-proof create contract.pdfverify-proof create contract.pdf --no-filename   # send only the hash

Only the 64-character SHA-256 digest leaves your machine, plus the filename unless you pass --no-filename. Then save the proof's bundle next to the file; the offline verify command below works on it from then on, without ProofLedger:

bash
curl -H "Authorization: Bearer $PROOFLEDGER_API_KEY" \  "https://proofledger.io/api/v1/proof/42/bundle?download=1" -o contract.pdf.proof.json

From Python, with the small API client the package carries (standard library only):

python
from proofledger_api import submit_proof, get_bundlefrom verify_proof import hash_fileimport json
proof = submit_proof(hash_file("contract.pdf"), filename="contract.pdf",                     external_id="contract-2026-10")   # key from PROOFLEDGER_API_KEYprint(proof["id"], proof["certificate_url"])
bundle = get_bundle(proof["id"])                        # once the anchor has landedjson.dump(bundle, open("contract.pdf.proof.json", "w"), indent=2)

From Node.js:

js
import { hashFile, ProofLedger } from "verify-proof";
const pl = new ProofLedger({ apiKey: process.env.PROOFLEDGER_API_KEY });const proof = await pl.createProof({ sha256: hashFile("contract.pdf"), externalId: "contract-2026-10" });const bundle = await pl.getBundle(proof.id);           // once the anchor has landed

Or straight at the API: POST https://proofledger.io/api/v1/proof with {"sha256": "<64 hex>"} and a Bearer sk_... header. The API is documented at proofledger.io/api, with an OpenAPI spec at /openapi.json.

external_id is your own record id: sending the same one again returns the existing proof instead of making a new one, so a retried job never double-anchors.

How do I verify a timestamp proof offline, without trusting the service?

bash
verify-proof verify contract.pdf --proof bundle.json# VERIFIED: File matches the proof bundle. The bundle says it was anchored on polygon at 2026-10-15T02:11:09.512Z in transaction 0xabc123.... Look that transaction up on a block explorer to confirm it: https://polygonscan.com/tx/0xabc123...

The check runs locally: it hashes the file, compares the result with the hash in the bundle, computes the Merkle root if the bundle has a path, and reports the transaction to look up on a block explorer. It does not read the chain, so until you look that transaction up, the anchor is what the bundle says. Nothing is sent anywhere, so it works the same whether or not the service that issued the proof still exists.

The same check from Python:

python
from verify_proof import hash_file, load_proof, verify_proof
result = verify_proof(hash_file("contract.pdf"), load_proof("bundle.json"))print(result["verified"], result["tx_id"], result.get("explorer_url"))

And from Node.js: verifyProof(hashFile("contract.pdf"), loadProof("bundle.json")).

A test you can run on any vendor's proof: block the vendor's domain, then verify. If the check still passes, the proof is yours; if it needs the vendor's server to say "valid", you are relying on them staying in business.

Compute a file's SHA-256 hash

bash
verify-proof hash contract.pdf# SHA256: a1b2c3d4e5f6...# File: contract.pdf

Quiet by default

A successful verify prints one line to stderr saying where to make proofs like it. It is suppressed whenever the output is piped or redirected, so scripts never see it, and stdout is unchanged either way. To silence it everywhere:

bash
export VERIFY_PROOF_NO_HINT=1

How do I validate a Merkle proof in code?

A Merkle path is the list of sibling hashes between your leaf (the file's hash) and the root that was recorded on chain. Validating it means folding your hash up through the siblings and comparing the result with the root in the transaction. The rule this package uses, in full:

python
import hashlib
def merkle_root(leaf_hex: str, path: list[dict]) -> str:    current = leaf_hex    for step in path:                      # [{"hash": "<hex>", "position": "left" | "right"}, ...]        sibling = step["hash"]        combined = sibling + current if step.get("position") == "left" else current + sibling        current = hashlib.sha256(bytes.fromhex(combined)).hexdigest()    return current

Each level concatenates the two hashes as raw bytes, in the order the position says, and hashes the result with SHA-256. verify_proof() runs exactly this when a bundle carries a merkle_path, returns the root as merkle_root, and prints it so you can compare it with the root recorded in the transaction. The comparison with the chain is yours to make: this package never reads the chain.

On Polygon, ProofLedger anchors each proof in its own transaction, so merkle_path is empty and the hash in the transaction is your file's hash directly. Bitcoin-anchored proofs from other services, and the few ProofLedger proofs anchored on Bitcoin before 2026-10-15, carry a path.

How do I anchor many files at once, with my own record IDs?

Up to 100 hashes in one call, each with your own external_id, so a re-run returns the proofs that already exist instead of anchoring twice:

python
from proofledger_api import submit_batch, get_proof_by_external_idfrom verify_proof import hash_file
result = submit_batch([    {"sha256": hash_file("invoice-1001.pdf"), "external_id": "invoice-1001", "filename": "invoice-1001.pdf"},    {"sha256": hash_file("invoice-1002.pdf"), "external_id": "invoice-1002"},])print(result["summary"])                         # created / exists / invalid countsfor item in result["items"]:    print(item["result"], (item.get("proof") or {}).get("id"))
later = get_proof_by_external_id("invoice-1001")  # None if you never anchored it

Node.js: await pl.createProofs(items) takes the same list, and pl.getProofByExternalId(id) looks one up. From an AI assistant, the create_proofs_batch MCP tool does this for a list of files, using each file's name as its record id.

Items are checked first and written together; a batch is Polygon only. For plain request retries there is also an optional Idempotency-Key header on the creating endpoints (the same key and body within 24 hours replays the stored response), but external_id is the simpler way to make submissions safe to retry.

How do I get a webhook when the anchor is confirmed?

Register a public https URL once; ProofLedger then POSTs a signed JSON event, proof.polygon.anchored, when a proof's Polygon anchor lands. The event carries the proof's bundle, so your handler can save it next to the file with nothing further to fetch.

js
import { ProofLedger, verifyWebhookSignature } from "verify-proof";
const pl = new ProofLedger({ apiKey: process.env.PROOFLEDGER_API_KEY });const hook = await pl.registerWebhook("https://example.com/proofledger", ["proof.polygon.anchored"]);// hook.secret is shown once; keep it for the check below

Check every delivery before trusting it. The header is ProofLedger-Signature: t=<unix>,v1=<hex HMAC-SHA256> over t + "." + raw body; pass the body exactly as received:

python
from proofledger_api import verify_webhook_signature
ok = verify_webhook_signature(secret, request.headers["ProofLedger-Signature"], request.get_data())

Node.js: verifyWebhookSignature(secret, header, rawBody). Both are pure computation, no network. Failed deliveries are retried seven times over almost two days, then the endpoint is switched off and the account emailed. Webhooks fire only for proofs created after the endpoint was registered. Management endpoints: POST /api/v1/webhooks, GET to list, DELETE /api/v1/webhooks/:id, POST /api/v1/webhooks/:id/test.

Can I run this against a server I host myself?

Yes. ProofLedger Community is the same proof core as an open-source (AGPL-3.0) Node + SQLite server you run with your own Polygon key: the same v1 API shapes (single and batch proofs with external_id, bundles, lists, public verify, certificates, signed webhooks, Idempotency-Key, per-key rate limits), writing the same transaction shape as proofledger.io, so this tool checks its bundles the same way.

bash
git clone https://github.com/Fulcrum-Enterprises/proofledger-community.gitcd proofledger-communitycp .env.example .env        # set PUBLIC_BASE_URL, POLYGON_RPC_URL and POLYGON_PRIVATE_KEYdocker compose up -d        # pulls ghcr.io/fulcrum-enterprises/proofledger-communitydocker compose exec proofledger node src/cli.js user add [email protected]docker compose exec proofledger node src/cli.js key create [email protected] "laptop"

Then point this package at it: --base-url https://proofs.example.com on the CLI, base_url= in Python, baseUrl in Node. The hosted service at proofledger.io is a separate product (managed signer, backups, branding, the integrations and support) and is not open source.

How do I add a timestamp step to a Zapier, Make or n8n workflow?

All three produce ordinary ProofLedger proofs, so the bundles verify with this tool like any other.

  • n8n: the community node n8n-nodes-proofledger (installed from Settings > Community Nodes). The ProofLedger node hashes a binary field inside n8n and sends only the hash, or takes a hash you already have, one at a time or 100 per call; it reads proofs back, fetches bundles, verifies and manages webhooks. The ProofLedger Trigger registers the webhook itself and checks every delivery's signature. Source: github.com/Fulcrum-Enterprises/n8n-nodes-proofledger. It is a community node, not an n8n-verified one.
  • Zapier: a private integration, by invite link only until Zapier lists it: join here. Trigger Proof Anchored (signature-checked), creates Create Proof From Hash and Create Proof From File (hashed inside the Zap run; only the hash reaches ProofLedger), searches Find Proof by External ID and Verify Hash.
  • Make: a custom app, by invite link only: install here. Modules for creating a proof from a SHA-256 hash, getting one by id or external id, fetching a bundle, verifying a hash, listing proofs, and an instant trigger, Watch anchored proofs. There is no file module on Make; hash the file first.

How do I prove what an AI agent did without storing what it saw?

With an agent run receipt: a hash chain over the steps of one run. Each step keeps only a SHA-256 fingerprint of its content (salted with a per-run secret), its type, its time and an optional short label. The chain head is anchored on ProofLedger as one ordinary proof, and the bundle is saved into the receipt. Anyone holding the receipt can recompute the chain and check the head against the bundle offline; nobody can read the prompts, tool calls or outputs from it.

python
from agent_receipt import RunReceipt
r = RunReceipt("support-ticket-48213", agent={"name": "support-bot", "model": "claude-sonnet-5-5"})r.prompt(customer_message, label="customer message")r.tool_call(json.dumps(call), label="lookup_order")r.tool_result(result_text)r.output(reply, label="reply sent")r.anchor()                              # one API proof; waits for the Polygon anchor (key from PROOFLEDGER_API_KEY)r.save("ticket-48213.receipt.json")
bash
verify-proof receipt verify ticket-48213.receipt.json                       # offline: chain + bundleverify-proof receipt verify ticket-48213.receipt.json --step 0 --content customer-message.txtverify-proof receipt show ticket-48213.receipt.json                         # labels and fingerprints, never contentverify-proof receipt anchor ticket-48213.receipt.json                       # anchor a saved, unanchored receipt

Remove the secret field before handing a receipt to a third party: the chain still verifies, and nothing in the file can be guessed; checking a step against its content then needs your secret (--secret). The format is proofledger-agent-run-receipt/1; examples/receipt.json is a sample the Python and Node ports both verify, and examples/langchain_receipt_callback.py is a LangChain callback handler that builds a receipt from a run. The chain rule is in the module docstring of agent_receipt.py, so it can be recomputed in any language. Node.js has the same RunReceipt, verifyReceipt and verifyStep.

A receipt shows that this exact sequence of steps existed by the anchor time and has not changed since, and, given a step's content and the secret, that the step was made from that content. It does not show that the agent was right, or who ran it.

Is there a GitHub Action or GitHub App that timestamps release artifacts?

Both, from the same account.

The Action, ProofLedger Release Timestamp in the GitHub Marketplace, hashes the artifact on the runner (the file never leaves it), submits the hash, waits for the Polygon anchor, writes the proof into the release notes and attaches the bundle (<label>.proof.json) to the release, which is what this tool verifies the file against later:

yaml
name: Timestamp Releaseon:  release:    types: [published]
jobs:  timestamp:    runs-on: ubuntu-latest    permissions:      contents: write  # needed to update the release body and attach the proof bundle    steps:      - uses: actions/checkout@v4
      - name: Build release artifact        run: zip -r dist/release.zip src/
      - name: Timestamp with ProofLedger        uses: Fulcrum-Enterprises/proofanchor-github-action@v2        with:          api-key: ${{ secrets.PROOFLEDGER_API_KEY }}          file: dist/release.zip

(The repository kept its old name; uses: lines stay as above.)

The App, github.com/apps/proofledger, needs no workflow: install it on a repository, connect it to a ProofLedger account once, and every release published there is anchored on its own, one proof per release file from the SHA-256 GitHub reports (no file is downloaded), with a proof table in the release notes and the bundle attached once the hash is on Polygon. It holds Contents read and write on the chosen repositories and nothing else. It installs from that page; it is not in the GitHub Marketplace. Docs: proofledger.io/api.html#sec-github.

Use it from an AI assistant (MCP server, Claude Code, Cursor)

verify-proof ships an optional Model Context Protocol server, so MCP-compatible AI clients (Claude Desktop, Cursor and others) can verify blockchain timestamp proofs directly in a conversation. The file never leaves your machine: hashing and verification run locally, and only the resulting hash is ever compared against the proof.

Install with the MCP extra

bash
pip install "verify-proof[mcp]"

The base install stays dependency-free; the [mcp] extra adds the MCP SDK and installs a verify-proof-mcp command (a stdio server).

Tools exposed

ToolWhat it does
compute_file_hashCompute the SHA-256 (or other) hash of a local file
verify_fileVerify a local file against a proof JSON file
verify_hashVerify a known hash against inline or file-based proof data
explain_proofDescribe, in plain language, what a proof asserts and how to check it on a block explorer
create_proofAnchor a file's hash on ProofLedger to create a new proof. Uses the network and needs an API key
create_proofs_batchAnchor up to 100 files in one API call; file names double as external ids, so re-running on unchanged files returns their existing proofs. If a file changed but kept its name, you get its old proof back, so rename it or anchor it with create_proof. Network, API key
get_proof_statusCurrent anchoring status of one of your proofs. Network, API key
save_proof_bundleDownload a proof's bundle (this package's proof format) and save it next to the file, so verification needs nothing from ProofLedger later. Network, API key
start_run_receiptStart an agent run receipt file (fresh secret, no steps). Offline
add_receipt_stepFingerprint one step (prompt, tool_call, tool_result, output, note) into the receipt; the content is only hashed. Offline
anchor_run_receiptAnchor the receipt's chain head as one proof and save the bundle into the receipt. Network, API key
verify_run_receiptRecompute the chain and check it against the bundle, optionally checking one step's content. Offline

Claude Code (plugin)

This repository is also a Claude Code plugin marketplace. The proofledger plugin bundles the MCP server (started with uvx, so it needs uv and nothing else) and three skills, /proofledger:anchor, /proofledger:verify and /proofledger:receipt:

/plugin marketplace add Fulcrum-Enterprises/verify-proof/plugin install proofledger@proofledger

Then ask: "Anchor dist/app-1.4.0.zip and save its proof next to it." Creating proofs reads PROOFLEDGER_API_KEY from the shell that starts Claude Code; verifying needs no key. Details in claude-plugin/.

Claude Desktop

Add this to your claude_desktop_config.json (see examples/claude_desktop_config.json):

json
{  "mcpServers": {    "verify-proof": {      "command": "verify-proof-mcp"    }  }}

Restart Claude Desktop. If verify-proof-mcp isn't found on your PATH, use the Python module form instead: "command": "python", "args": ["-m", "verify_proof_mcp"].

Cursor

One click, with uv installed (Cursor starts the server with uvx, nothing to pip install):

[Add verify-proof to Cursor]

Or add it by hand to ~/.cursor/mcp.json (or a project's .cursor/mcp.json):

json
{  "mcpServers": {    "verify-proof": {      "command": "uvx",      "args": ["--from", "verify-proof[mcp]", "verify-proof-mcp"]    }  }}

Creating proofs reads PROOFLEDGER_API_KEY from the environment Cursor runs in; verifying needs no key. The claude-plugin/ folder also carries a Cursor plugin manifest (.cursor-plugin/plugin.json, mcp.json, the same three skills), so the repository can be imported as a Cursor marketplace.

Then ask the assistant things like:

  • "Verify ~/contract.pdf against ~/contract-proof.json."
  • "What does this proof file actually prove?"
  • "Timestamp this file and save its bundle next to it."

The verification tools need no account and make no network calls. To confirm the anchor itself, look up the transaction on any block explorer. The create, batch, status and bundle tools are the exception: they send hashes and file names, never files, to ProofLedger with your API key.

Proof file format

A bundle is one JSON document. Abridged:

json
{  "format": "verify-proof/1",  "service": "proofledger",  "hash": "a1b2c3d4e5f6...",  "algorithm": "sha256",  "blockchain": "polygon",  "tx_id": "0xabc123...",  "anchored_at": "2026-10-15T02:11:09.512Z",  "merkle_path": [],  "proof_id": 42,  "certificate_url": "https://proofledger.io/cert/42"}

If a Merkle path is present, verify computes the Merkle root and prints it (see How do I validate a Merkle proof in code?). Compare it with the root recorded in the transaction:

json
"merkle_path": [  {"hash": "def456...", "position": "right"},  {"hash": "789abc...", "position": "left"}]

examples/ holds a format sample: sample.txt and a proof.json that carries its hash. The transaction in it is made up and does not exist on Polygon, so a block explorer finds nothing. It shows the file format only, not a real anchor.

How it works

  1. verify-proof computes the SHA-256 hash of your local file
  2. It reads the proof JSON to get the originally anchored hash
  3. If the hashes match, the file hasn't been modified since timestamping
  4. If a Merkle path is present, it computes the Merkle root and prints it; compare it with the root recorded in the transaction
  5. It does not read the chain: look the transaction up on any block explorer to confirm the anchor (for Polygon, the verdict prints the polygonscan link)

What a proof shows, and what it does not

A proof shows that a file with this exact SHA-256 fingerprint existed by the anchor time, and that the file has not changed since. The record sits on a public chain rather than in any one company's database, so anyone can check it without an account and without seeing the file.

It does not show who made the file, it is not a copyright registration, and it does not stop anyone copying the file.

Compatible services

This tool verifies proofs created by:

  • ProofLedger: proof of existence as an API. Send a hash, get a Polygon-anchored certificate anyone can verify without us. Free plan with 100 API proofs a month.
  • ProofLedger Community: the same proof core as an open-source (AGPL-3.0) server you host with your own Polygon key. Same API and bundle format; point this tool at it with --base-url (Python base_url=, Node baseUrl).
  • Any service producing SHA-256 hash proofs with blockchain transaction references.

License

MIT License. Free to use, modify, and distribute.

About

Built by Fulcrum Enterprises LLC, building tools for blockchain-verified proof of existence.

來源:README.md,提交 a56adc3

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

5
  1. v0.4.0最新Oct 19, 2026
  2. v0.3.4Oct 18, 2026
  3. v0.3.3Oct 17, 2026
  4. v0.3.2Oct 15, 2026
  5. v0.3.0Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Proof 整合