{
  "slug": "dynamic-merkle-tree",
  "term": "Dynamic Merkle Tree",
  "aliases": [
    "DMT"
  ],
  "definition": "A Dynamic Merkle Tree is a research hash-tree design that adapts its shape to storage access patterns to reduce authentication-path costs.",
  "note": "Burke and colleagues use modified splay operations to move frequently accessed regions closer to the root while preserving hash-tree invariants. Their FAST 2025 evaluation uses a block-device-in-user-space prototype on cloud virtual machines with locally attached NVMe storage, synthetic Zipfian workloads and application traces. [dmt2025]\n\nThe motivating measurement is that a balanced tree grows taller as capacity grows. In their setup a balanced binary tree lost about 60% of throughput relative to encryption without integrity at 16 MB and about 75% at 4 TB, and 4-ary and 8-ary trees lost about 70% at 4 TB. The adaptive tree reached more than 85% of the optimal throughput, improved throughput and latency by up to 2.2 times and cost about 6% relative to binary trees under uniform access. [dmt2025]\n\nLinux dm-verity is a contrasting design. Its target is read-only, hashes are verified on demand up to the root hash and each hash block packs as many digests as fit, so a SHA-256 tree over 4096-byte blocks holds 128 digests per block. The shape is fixed by device size and does not adapt to access frequency. [dm-verity]",
  "status": "research",
  "advantages": [
    {
      "text": "Shortens authentication paths for hot blocks, which reduces hashing and metadata I/O on skewed workloads.",
      "citationIds": [
        "dmt2025"
      ]
    }
  ],
  "limitations": [
    {
      "text": "Reported gains are workload- and prototype-specific and are not measurements of stock Linux dm-verity or evidence of a deployed confidential-VM guarantee.",
      "citationIds": [
        "dmt2025"
      ]
    },
    {
      "text": "The threat model trusts the virtual machine and its memory and keeps the root hash in a secure location, so it does not cover a compromised guest.",
      "citationIds": [
        "dmt2025"
      ]
    }
  ],
  "related": [
    "merkle-tree",
    "dm-verity",
    "rollback-protection"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "citations": [
    {
      "id": "dmt2025",
      "title": "Burke et al. On Scalable Integrity Checking for Secure Cloud Disks. FAST 2025, sections 3, 6 and 7.",
      "url": "https://www.usenix.org/system/files/fast25-burke.pdf",
      "accessed": "2026-10-22"
    },
    {
      "id": "hesela-integrity",
      "title": "Hesela: Why a valid checksum can still return the wrong data",
      "url": "https://hesela.com/analyses/checksums-identity-and-lost-writes/#verity-freshness",
      "accessed": "2026-10-18"
    },
    {
      "id": "dm-verity",
      "title": "Linux kernel documentation. dm-verity: table parameters, theory of operation and hash tree.",
      "url": "https://docs.kernel.org/admin-guide/device-mapper/verity.html",
      "accessed": "2026-10-22"
    }
  ],
  "updated": "2026-10-22",
  "provenance": [
    "dmt2025 is the FAST 2025 paper by Burke and colleagues, re-read on 2026-10-22 in the motivation, design and evaluation sections.",
    "The 60%, 75%, 70%, 85%, 2.2 times and 6% figures and the 16 MB and 4 TB capacities come from dmt2025.",
    "dm-verity is the Linux kernel admin guide page for the dm-verity target, read in the table parameters, theory of operation and hash tree sections.",
    "The 128 digests per block are computed from the 4096-byte block and the 32-byte SHA-256 digest of the dm-verity example."
  ]
}
