ProofClaim: claim verification lab - sha256 evidence, Merkle proofs, audit log, verdicts. Sim only!!
180
Claim Verification & Evidence Proof Lab β by Darion Kellar
Educational claim-verification engine in ONE pure-Python file: a claim registry on a deterministic logical clock (no wall time), evidence items content-hashed with SHA-256 and combined into a from-scratch Merkle tree whose root is the claim's proof anchor, inclusion proofs that are generated and verified, a hash-chained audit log that detects its own rewrites, a labelled proof-scoring policy (primary document > measurement > testimony > hearsay; VERIFIED needs root match + β₯ 2 independent sources + the weight bar), and a from-scratch kNN claim classifier whose labels come from the verdict model itself.
Pure Python standard library. Zero dependencies. Zero network. Honest scope: this lab verifies INTERNAL CONSISTENCY only β that filed evidence still matches its hashes and proofs. It cannot prove a claim is true in the real world: a matching hash proves the evidence is the evidence that was filed, nothing more. Every legal / financial / court / identity / attestation use is a permanent HOLD gate (14 total).
docker pull credkellar/proofclaim:latest
docker run --rm credkellar/proofclaim:latest
The default command runs the full demo plus the built-in self-checks (CHECKS 43/43).
Run a specific command instead:
docker run --rm credkellar/proofclaim:latest python3 main.py checks # CHECKS 43/43
docker run --rm credkellar/proofclaim:latest python3 main.py claims # demo verdict book + scoring
docker run --rm credkellar/proofclaim:latest python3 main.py prove # Merkle inclusion proof, one item
docker run --rm credkellar/proofclaim:latest python3 main.py verify # verify the book / one claim
docker run --rm credkellar/proofclaim:latest python3 main.py log # audit log + chain integrity
docker run --rm credkellar/proofclaim:latest python3 main.py classify # kNN claim classifier report
docker run --rm credkellar/proofclaim:latest python3 main.py holds # 14 HOLD gates
EVIDENCE_HASH_MISMATCH.sha256(left || right), odd node paired with itself) into one root, frozen at sealing; any later bundle change walks the root away from the anchor.python:3.12-slimSecurity Β· Developer tools Β· Machine learning & AI
credkellar/proofclaim:latestdocker pull credkellar/proofclaim:latest