RFC: Block-Range Filters (a.k.a. Hierarchical filters)

Posted by nothingmuch

Jul 22, 2026/16:01 UTC

The exploration of advanced data structures for managing and querying sets efficiently has led to significant developments, particularly in the realm of approximate set membership queries. One notable advancement is detailed in the paper Building Fast and Compact Sketches for Approximately Multi-Set Multi-Membership Querying, which introduces a clever partitioning scheme that ensures disjointness of entries pertaining to the same key at different positions. This approach is flexible regarding the underlying data structure, with quotient filters highlighted as a particularly promising choice due to their adaptability and efficiency in wire encoding versus in-memory representation.

However, the paper also acknowledges challenges such as the potential for maliciously crafted transaction IDs (txids) creating collisions with short hashes, which could undermine the effectiveness of range or aggregation querying across different blocks. To counteract this, the design must ensure a lower false positive rate to avoid excessive block downloads, suggesting a shift from traditional Golomb-coded sets which have been optimal for compact block filters (CBFs).

In practical applications, deploying approximate multi-set multi-membership query structures (AMSMMQs) in a server or repository can provide rapid sync capabilities akin to LDK's gossip protocols. By starting with the download of a root node representing a coarse-grained AMSMMQ structure, clients can selectively download additional data based on initial queries, minimizing total data transfer. This setup benefits from independent error probabilities in the AMSMMQ and CBF structures, reducing overall likelihood of false positives.

Moreover, peer-to-peer networks face additional hurdles with txid collisions, requiring consensus on handling salt adjustments to prevent extensive reindexing by nodes, a process that could lead to significant resource exhaustion. A proposed solution involves constructing a forest of trees with shared leaves, each tree featuring a randomized partitioning scheme per the AMSMMQ framework. This would facilitate more efficient data verification and synchronization processes for clients, potentially incorporating proofs of work at the leaves to enhance security and verifiability.

Despite these innovations, the evolving landscape of blockchain technologies and the integration of succinct non-interactive arguments of knowledge (SNARGs) and other future developments could make some of these complex engineering efforts obsolete. As blockchain technology continues to evolve, the need for such intricate systems may diminish, replaced by more efficient and scalable solutions.

Link to Raw Post
Bitcoin Logo

TLDR

Join Our Newsletter

We’ll email you summaries of the latest discussions from high signal bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.

Explore all Products

ChatBTC imageBitcoin searchBitcoin TranscriptsSaving SatoshiDecoding BitcoinWarnet
Built with 🧡 by the Bitcoin Dev Project
View our public visitor count

We'd love to hear your feedback on this project.

Give Feedback