Bitcoin Data Markets: Content Integrity Receipts
Bitcoin Data Markets: Content Integrity Receipts
Check a delivered dataset against an independently approved digest.
Design and trust boundary
Obtain the expected digest through an authenticated agreement before delivery. A matching digest establishes byte integrity, not data accuracy, licensing, availability or fair exchange. Do not automatically pay a seller merely because a hash matches. Large datasets need streaming verification and explicit size limits.
Independent reference implementation
1import hashlib
2import hmac
3
4def verify_delivery(payload, expected_sha256):
5 if not isinstance(payload, bytes) or len(payload) > 1024*1024:
6 raise ValueError("invalid payload")
7 if not isinstance(expected_sha256, str) or len(expected_sha256) != 64:
8 return False
9 return hmac.compare_digest(hashlib.sha256(payload).hexdigest(), expected_sha256)
10
11fixture = b"synthetic dataset"
12digest = hashlib.sha256(fixture).hexdigest()
13assert verify_delivery(fixture, digest)
14assert not verify_delivery(b"changed", digest)Operational boundaries
Run with Python 3. The assertions use synthetic data only. No SEND, wallet credentials or live API calls are included. Use a separate authorized execution service for actual settlement. Preserve the WAB Engine API and immutable signed fee law. These are proposed application patterns, not interoperability standards or production financial systems.
Related research
https://thamer.org/learn/bitcoin-for-ai-agents-open-integration-guide
https://thamer.org/api
