Skip to main content

recompute-kit-verify

Recompute a recompute-kit receipt on your own machine. Trust no one — not even us.

Every recompute-kit / MCP receipt is a recompute-kit.conformance_proof_object.v0 (it embeds a receiptos.evidence_capsule.v0). This package re-derives the receipt's receipt_root locally and reads the capsule's own conformance verdict verbatim — so a receipt is only trusted once you recomputed it.

Stdlib only. No network. No dependency on us.

Install

pip install recompute-kit-verify

Use

recompute-verify receipt.json        # exit 0 = verified-good, 1 = verified-bad, 2 = UNVERIFIABLE
cat receipt.json | recompute-verify -
from recompute_kit_verify import verify_object
import json
verify_object(json.load(open("receipt.json")))
# {"status": "verified-good", "root": "0x…", "verifier_result": {"ok": true, "status": "verified"}, ...}

The tri-state (couldn't-check is its own verdict, never a silent pass)

status meaning
verified-good the root recomputes and the carried conformance verdict is ok
verified-bad the root mismatches (tampered / mis-derived) or the carried verdict is rejected
UNVERIFIABLE not parseable, no capsule to recompute, or no stored root / verdict to check

What it checks

  • Integrity — receipt_root == "0x" + sha256(JCS(receipt \ {anchor, receipt_root})) (receiptos-c14n-v0), recomputed here, compared to the stored root. A one-field tamper breaks it.
  • Verdict — the capsule's own verifier_result ({ok, status}), carried verbatim; the verdict is never inferred from the root match.
  • Signature — a lane reserved for signed receipts; today receipts are integrity-bound by receipt_root.

Recompute the source: https://github.com/trustless-ai/recompute-kit · mcp/receiptos.py.

Metadata

Release files for recompute-kit-verify 0.1.0

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

Source distribution (sdist)

Source distribution for recompute-kit-verify 0.1.0
File Size Uploaded
recompute_kit_verify-0.1.0.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for recompute-kit-verify 0.1.0
File Interpreter ABI Platform
recompute_kit_verify-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 kB

Release files / recompute_kit_verify-0.1.0.tar.gz

Download URL recompute_kit_verify-0.1.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b9990da5a0cae72e6fc309259ef9568fc5d06a1e1358a019ab4547f30e890cca
BLAKE2b-256 checksum
How to use checksums
8c4bfe8a83707487229409e182a15e1ef3391a429da2f6fe08c71f49fc2e5863
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / recompute_kit_verify-0.1.0-py3-none-any.whl

Download URL recompute_kit_verify-0.1.0-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86cebc7637b4a4e9de299b6cb01e2bcb1666555b5df71bec720f00ef89f7bc74
BLAKE2b-256 checksum
How to use checksums
c595a7eaf44331d0f7cebdcf231fa13c873f9200b30b4ced0e6254ae07e12478
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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