Skip to content

Conversation

sagiahrac
Copy link
Contributor

What

  • Introduce BlockHasher
  • Deterministic xxhash64 digest.
  • Per-block hash = H(prev_hash || block_bytes) (little-endian prev hash).
  • Maintains previousHash across calls; exposes ComputeBlockHash and GetPreviousHash.
  • Update the default LRU prefix store to use the new hasher for block keys.

Why

  • Single, canonical block-hash computation shared by prefix stores.
  • Ensures consistent keys for KV cache/prefix reuse.

#96

@sagiahrac sagiahrac force-pushed the extract-block-hasher branch from 34e1725 to b0fc5de Compare August 25, 2025 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant