BOMBARCHIVE
Explore

A living reference collection. Written in the wiki, preserved in Git.

The archiveBitcoin

Old revision: BIP 157

Link BIP 157's historical comparison to the newly documented BIP 37

BIP 157, Client Side Block Filtering, specifies a Bitcoin peer-to-peer protocol that lets lightweight clients request deterministic summaries of blocks, check those summaries against one another and obtain complete blocks that might concern their wallets. The maintained BIP credits Olaoluwa Osuntokun, Alex Akselrod and Jim Posen and carries an assigned date of 24 May 2017. BIP 158 separately defines how to construct the initial basic filter. The two documents describe different parts of the same system. BIP 157 — maintained specification · BIP 158

Reversing the Bloom-filter model

Under BIP 37, a lightweight wallet submitted a customised Bloom filter to a full node, which used it to decide which transactions to return. That revealed information about the wallet's interests and imposed work on the serving node. BIP 157 reverses the direction: a serving node prepares the same deterministic filter for a given block and filter type; the client checks the filter against its own private set of scripts and requests a full block when it might match. The protocol was proposed partly to address BIP 37 privacy and denial-of-service problems. Motivation · BIP 111, Bloom-filter service signaling

The privacy difference is meaningful but bounded. A node supplying the filter need not learn the wallet's script set. A peer observing which full blocks the client subsequently requests may still learn something. The specification recommends retrieving matching blocks from randomly chosen peers; it does not promise network anonymity. Client operation

The separate responsibilities of BIP 157 and BIP 158

BIP 157 defines the network messages, filter-header commitments, checkpoints and recommended client workflow. BIP 158 defines the Golomb-coded set format and what the basic filter contains. A client can implement the former protocol only usefully when it and its serving peers agree on the latter filter's type and contents. Protocol specification · Filter construction

The message family includes getcfilters/cfilter for actual block filters, getcfheaders/cfheaders for sequential filter hashes, and getcfcheckpt/cfcheckpt for sparse checkpoints. A cfcheckpt response covers filter-header checkpoints at positive multiples of 1,000 blocks. The BIP bounds getcfilters requests to up to 1,000 blocks and getcfheaders requests to up to 2,000. These limits are wire-protocol rules, not Bitcoin difficulty periods. Messages and limits

For each block and filter type, the filter hash is the double-SHA256 of the serialized filter. The 32-byte filter header hashes that value together with the preceding filter header, starting from an all-zero predecessor at genesis. A disagreement in the filter-header sequence can be isolated, after which a client can fetch the full Bitcoin block and recompute the specified filter. This is a useful way to identify a lying or mistaken peer when a truthful comparison is available. It is not the same thing as the chain of Bitcoin proof-of-work headers. Filter headers and client operation

Trust and completeness

The specified client first synchronises Bitcoin block headers and evaluates the chain's proof of work. It then obtains filter headers, compares peers and tests filters against their header commitments. Finally, it downloads and inspects complete matching blocks. This last step is particularly important: a filter is a probabilistic search aid, not a Merkle proof of a particular payment and not a substitute for transaction or block validation. Client operation · Merkle tree

The BIP describes a security guarantee conditioned on having at least one honest peer and using the comparison/dispute-resolution workflow. If every consulted peer colludes to give the same false filter-header sequence, that sequence is not anchored by Bitcoin consensus. Likewise, a client that skips checking filter headers or matching full blocks has weakened the protocol's intended assurance. These are protocol-model boundaries, not claims about a measured attack on a specific wallet. Abstract, client operation and rationale

A development history with several milestones

24 May 2017
The BIP's assigned date. It is document metadata, not a record of the date on which every present protocol detail was published. BIP header
22 January 2018
The earliest identified addition of both BIP 157 and BIP 158 to the present bitcoin/bips file history. This repository event follows their assigned date. Original repository addition
14 September 2018
Lightning Labs announced lnd **0.5-beta** with a Neutrino light-client implementation. Its accompanying Lightning App was a **testnet alpha**; this is contemporary first-party release testimony, not evidence of universal mainnet use. Lightning Labs release announcement
18 April 2019
Bitcoin Core merged the BlockFilterIndex storage/indexing implementation. This was groundwork for network serving, not proof that Bitcoin Core peers could yet answer BIP 157 requests. Merged indexing PR
25 October 2019
The BIP increased the getcfilters request maximum from 100 to 1,000 blocks. The maintained protocol should not be projected unaltered onto the earliest implementations. Specification revision
24 November 2019
Bitcoin Core **0.19.0.1** released with -blockfilterindex and local getblockfilter RPC access. Its notes expressly state that this version **did not serve the filters over P2P**. Primary release notes · Dated release notice
May–August 2020
The proposed network implementation was split across smaller reviewed Core PRs: checkpoint responses (12 May), checkpoint cache (21 May), header responses (26 May), filter responses (31 May), and NODE_COMPACT_FILTERS signaling (13 August). The earlier all-in-one PRs **#16442 and #18876 closed without merger**; their closure must not erase the merged smaller work. First-party split plan · Checkpoints · Cache · Headers · Filters · Signaling
14 January 2021
Bitcoin Core **0.21.0** shipped P2P serving support when explicitly enabled with both -blockfilterindex=1 and -peerblockfilters=1. Availability of a feature in a release does not mean it is active on every node. First-party release notes
11 September 2025
Two BIP commits changed the status of BIPs 157 and 158 from **Draft** to **Final**, and added cross-references to their mutual dependency. These are specification maintenance decisions, not dates of first software deployment. BIP 157 status · BIP 158 status · Dependencies
12 January 2026
A repository-wide BIP metadata change renamed **Final** and **Active** statuses to **Deployed**. The current BIP header therefore says *Deployed*, but this bulk editorial change is not a measurement of how many nodes serve filters. BIP status metadata migration

What the release history establishes

The contemporary records show successive capabilities: construct filters (Core source merged in 2018), index them (2019 merge), query locally (2019 release) and serve them over P2P if configured (2021 release). Lightning Labs had demonstrated a separate Neutrino client path in 2018. None of these source records gives a trustworthy 2026 network-wide adoption fraction. The current BIP status word must not stand in for one.

A BIP 157 server and a client are also different roles. A Bitcoin Core node with -blockfilterindex can build filters without advertising NODE_COMPACT_FILTERS to peers. Conversely, a lightweight wallet consuming those filters has not become a fully validating node simply because it checks a filter-header chain.

Where this fits

Electrum's original 2011 remote-server queries and its later block-header/Merkle verifier represent another light-client lineage. BIP 157 provides a standardised filter-fetching alternative to sending wallet interest sets to servers. BIP 155 concerns discovering peer addresses, BIP 324 concerns encrypted node transport, and BIP 330 concerns unconfirmed transaction-announcement reconciliation. BIP 157 does none of those jobs.

BIP 158 also explains why the default compact filter should not be mistaken for an Ordinals or Bitmap index: it indexes specific output scripts, not inscription bodies, Bitcoin transaction IDs or arbitrary application metadata. On-chain provenance requires different evidence.

Open research

Open question
Recover the original circulation of the 2017 proposal before its January 2018 BIPs repository addition and compare the first wire-format draft to the maintained version.
Open question
Measure the number of publicly reachable Bitcoin Core nodes actually advertising NODE_COMPACT_FILTERS under a documented sampling method; do not infer this from the BIP's *Deployed* label.
Open question
Identify dated releases of Neutrino mainnet support independently of the September 2018 testnet-alpha announcement.