{
  "id": "2026/2468",
  "url": "https://opencryptology.org/2026/2468",
  "original_url": "https://eprint.iacr.org/2026/2468",
  "title": "FlatMerkle: Logarithmic-Space Inclusion Proofs over a Single Linear Hash Stream",
  "authors": [
    "Sergio Demian Lerner"
  ],
  "affiliations": null,
  "abstract": "Merkle trees are the standard way to obtain logarithmic-size, logarithmic-time\ninclusion proofs over a large dataset, but they require a tree-shaped hash\nstructure distinct from the ordinary, linear (Merkle--Damg\\aa rd) hashing that\nmost deployed systems -- including Bitcoin's own transaction and witness\nhashing -- actually perform. We present FlatMerkle, a construction that\nachieves the same asymptotic guarantees, $O(\\log N)$ proof size and\n$O(\\log N)$ verification time, over a single ordinary linear hash stream, by\nperiodically re-injecting the hash function's own past internal states\n(``checkpoints'') back into the stream as ordinary message content. The\nresult is a flat byte sequence whose digest is a single, unmodified\ninvocation of the underlying hash function -- syntactically an ordinary\ndigest of an ordinary byte string, not a distinguishable commitment format\n-- while still supporting compact inclusion proofs for any element, and\ncompact proofs that a published file is malformed, so that an honest party\ncan always answer a malicious committer in logarithmic space. We give the recursive\nconstruction, a closed-form formula locating any element in the structured\nstream, worked examples with illustrations, a security reduction to free-start\ncollision resistance of the hash function's compression step, an optimal\nelement-size analysis for both a flexible toy primitive and real SHA-256,\na batched multi-element proof construction, a measured construction-speed\ncomparison against Merkle trees, a concrete application to committing data\ninside a Bitcoin transaction annex (BIP-341), a design sketch using that\napplication as a data-availability layer for an optimistic Bitcoin rollup,\na from-scratch gas-cost comparison, on Ethereum, Rootstock, and Arbitrum,\nof an in-contract FlatMerkle commitment against an in-contract Merkle\ntree, tracing the three chains' differing verdicts to specific protocol\ndesign choices rather than to anything intrinsic to either construction,\nand a comparison against the closest prior art we are aware of,\nauthenticated append-only skip lists.",
  "category": "Cryptographic protocols",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“FlatMerkle: Logarithmic-Space Inclusion Proofs over a Single Linear Hash Stream” by Sergio Demian Lerner, Cryptology ePrint Archive, Paper 2026/2468, https://eprint.iacr.org/2026/2468. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2026-10-14T03:48:48Z",
    "updated": "2026-10-14T03:48:48Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2026/2468.pdf",
    "sha256": "5639b5b3e5db94fa5f51d56a5ad7bceab99ce5db0e66b7412cc78ad598a7311c",
    "size": 884909,
    "source": "upload",
    "source_date": "2026-11-11T20:52:28.636Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2026/2468/versions/20261111T205228Z.pdf",
      "captured_at": "2026-11-11T20:52:28.636Z",
      "label": "copy captured 2026-11-11",
      "source": "upload",
      "source_url": null,
      "size": 884909,
      "sha256": "5639b5b3e5db94fa5f51d56a5ad7bceab99ce5db0e66b7412cc78ad598a7311c",
      "is_default_pdf": true
    }
  ],
  "other_sources": [],
  "bibtex": "@misc{cryptoeprint:2026/2468,\n      author = {Sergio Demian Lerner},\n      title = {FlatMerkle: Logarithmic-Space Inclusion Proofs over a Single Linear Hash Stream},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2026/2468},\n      year = {2026},\n      url = {https://eprint.iacr.org/2026/2468}\n}"
}
