{
 "v": 1,
 "description": "A real Lampo receipt (free-trial call of 27 November 2026) with everything an independent verifier needs. Two separate checks: the receipt signature, and inclusion in the signed, anchored daily root. The tampered case changes one sibling of the audit path: the signature check still passes, the inclusion check must fail.",
 "spec": "https://github.com/lamporun/l402-receipts/blob/main/SPEC.md",
 "receipt": {
  "v": 1,
  "issuer": "30699c5071a8dc6b6e01e3b96d98ad8563b44b418aa85bf06dab3160baa31d50",
  "token": "996e565d6f25445a16c8c3cec67d182d75eff0f5848c0468c5a2c5065c6955cd",
  "payment_hash": "552cdc2887f694a248418686f7f8459bbb425ab1b1783807edace8e9939b55f8",
  "seq": 8,
  "event": 31,
  "time": 1795794068,
  "model": "deepseek-ai/DeepSeek-V4-Flash-0731",
  "price_sats": 1000,
  "source": "split",
  "usage": {
   "prompt": 22755,
   "cached": 20736,
   "completion": 55
  },
  "rates": {
   "input_msat_per_ktok": 260,
   "output_msat_per_ktok": 520,
   "cached_input_permille": 216
  },
  "debit": 4406,
  "remaining": 2483778,
  "prev": "7f0224b814f5470564ffa1eb2fac3ded3aab9c5a0e9f2b654bf48afc5c2f1b34",
  "id": "b63a73ec9e9b0e25d5a75a47c206859889908989cf518ac041cdb1d4f51444d1",
  "sig": "ddffde7740376f1bbe77efdc748ed7dd1e50fe75fc28a154fa6c3bb9142f1613675261197100083e6f64aedce5a4b74f9a59bfa0766abc73ce340460a0ff4973"
 },
 "signature": {
  "canonical_json": "{\"debit\":4406,\"event\":31,\"issuer\":\"30699c5071a8dc6b6e01e3b96d98ad8563b44b418aa85bf06dab3160baa31d50\",\"model\":\"deepseek-ai/DeepSeek-V4-Flash-0731\",\"payment_hash\":\"552cdc2887f694a248418686f7f8459bbb425ab1b1783807edace8e9939b55f8\",\"prev\":\"7f0224b814f5470564ffa1eb2fac3ded3aab9c5a0e9f2b654bf48afc5c2f1b34\",\"price_sats\":1000,\"rates\":{\"cached_input_permille\":216,\"input_msat_per_ktok\":260,\"output_msat_per_ktok\":520},\"remaining\":2483778,\"seq\":8,\"source\":\"split\",\"time\":1795794068,\"token\":\"996e565d6f25445a16c8c3cec67d182d75eff0f5848c0468c5a2c5065c6955cd\",\"usage\":{\"cached\":20736,\"completion\":55,\"prompt\":22755},\"v\":1}",
  "canonical_json_note": "RFC 8785 JSON Canonicalization of every receipt field except id and sig; these exact UTF-8 bytes are hashed",
  "id_rule": "id = SHA-256(canonical_json bytes)",
  "id": "b63a73ec9e9b0e25d5a75a47c206859889908989cf518ac041cdb1d4f51444d1",
  "scheme": "BIP-340 Schnorr signature of the 32-byte id",
  "issuer": "30699c5071a8dc6b6e01e3b96d98ad8563b44b418aa85bf06dab3160baa31d50",
  "sig": "ddffde7740376f1bbe77efdc748ed7dd1e50fe75fc28a154fa6c3bb9142f1613675261197100083e6f64aedce5a4b74f9a59bfa0766abc73ce340460a0ff4973"
 },
 "inclusion": {
  "day": "2026-11-27",
  "rule": "RFC 6962/9162: leaf = SHA-256(0x00 || id), node = SHA-256(0x01 || left || right)",
  "leaf_hash": "635c3b058b1086578d0cb5b10f957fa418dba1a7e54abcea32eea677ce9fb45a",
  "index": 3,
  "size": 6,
  "path": [
   "653d4c271e1c59c8061010a597fe12c8b3a50d2971833b568b6771daaf9db611",
   "4f809219cc6a3b95801422029771dc59f0cfd2cbec675ba52fb9668f79c99988",
   "7f606697cfba03c392391ba4660ddd9568f8e991a530404f69974eb215874cba"
  ],
  "root": "c727a96db3de60730828a0a86ea8854318d5ef534ab7b1337b1cb4c59817463f"
 },
 "anchor": {
  "url": "https://lampo.run/receipts/anchors/2026-11-27.json",
  "document": {
   "v": 1,
   "issuer": "30699c5071a8dc6b6e01e3b96d98ad8563b44b418aa85bf06dab3160baa31d50",
   "day": "2026-11-27",
   "count": 6,
   "root": "c727a96db3de60730828a0a86ea8854318d5ef534ab7b1337b1cb4c59817463f",
   "first_event": 28,
   "last_event": 33,
   "prev": "8346001a345e13b684ab0e6c7a41e81c34e296c2e4440a2bca43be2f7dd25cb3",
   "id": "8ee276ac7e03071ea1cf86e5c7540d223917515e1547c59535c514a29d80a0c6",
   "sig": "d8949d40b722f229611a48456eb7dbb9f20f00b0cc30c199d793949b6fb77e1b8423eb0ad7c6beed7cb2d64ef5fbf3582a2062170a8373f1903528d198189ac0"
  },
  "anchor_rule": "the anchor id is SHA-256 of the canonical JSON of the anchor without id and sig, signed by the same issuer",
  "nostr_events": [
   "bf1ccd3b95fcbba797b23e5da6da4374032448f825ef524b9e065c220f390f86"
  ],
  "opentimestamps": {
   "url": "https://lampo.run/receipts/anchors/2026-11-27.ots",
   "digest": "8ee276ac7e03071ea1cf86e5c7540d223917515e1547c59535c514a29d80a0c6",
   "bitcoin": [
    {
     "height": 977871,
     "merkle_root": "eb805e9c81e9cf36cb734de6332e1d10ef65ff9ac8e4e9c7212cbfad5fbc9446",
     "block_hash": "0000000000000000000041beca886e5ca30d67fa3e09a09300517a4f1f56b824",
     "explorer": "blockstream.info",
     "explorer_merkle_root_matches": true
    },
    {
     "height": 977911,
     "merkle_root": "e1cfe85f7bb2191e05bfdef3abb8df48d4b5cc130420c480cd16f1af9904a1fc",
     "block_hash": "000000000000000000001f4b41cf4bc5658aa7f9053aead8e3b37fc860c95e40",
     "explorer": "blockstream.info",
     "explorer_merkle_root_matches": true
    }
   ]
  }
 },
 "expected": {
  "signature_valid": true,
  "included_in_anchored_root": true
 },
 "tampered": {
  "path": [
   "653d4c271e1c59c8061010a597fe12c8b3a50d2971833b568b6771daaf9db610",
   "4f809219cc6a3b95801422029771dc59f0cfd2cbec675ba52fb9668f79c99988",
   "7f606697cfba03c392391ba4660ddd9568f8e991a530404f69974eb215874cba"
  ],
  "expected": {
   "signature_valid": true,
   "included_in_anchored_root": false
  }
 }
}
