Almost everyone who owns Bitcoin owns it through a light wallet. The phone app, the desktop wallet paired with a hardware device, the browser extension: none of them has the chain. They are all asking somebody else what happened, and they differ mainly in how carefully they check the answer and how much they give away while asking.
That difference is worth understanding, because it is the whole security gap between a wallet and a full node, and because nothing in the interface tells you which model you are using.
What does a light wallet actually check?
It checks work, and it checks inclusion. Nothing else.
A light wallet downloads the chain of block headers — 80 bytes per block, which at present heights is on the order of 70 MB rather than the hundreds of gigabytes a full chain takes. Each header contains the hash of the previous one, a timestamp, the difficulty target, and the Merkle root of that block’s transactions. From the headers alone the wallet can verify that each block’s hash meets its stated target, and that the targets themselves follow the difficulty rules. That is a real proof: it shows somebody spent an enormous amount of electricity building this sequence.
What it does not show is that the sequence is valid. A header commits to a Merkle root, not to the contents under it. A chain of headers with perfectly good proof of work can sit above blocks containing transactions that spend coins twice, create coins from nothing, or break every script rule in the protocol. The light wallet has no way to notice, because it never sees the transactions. It is trusting that whoever produced the most-work chain had an economic reason not to cheat.
Then, for its own coins, it checks inclusion. Given a transaction and the block that claims to contain it, a server supplies the handful of hashes needed to recompute the Merkle root — a Merkle branch, typically a dozen or so hashes for a full block. If the recomputed root matches the header the wallet already has, the transaction really is in that block. Count the headers above it and you have a confirmation count.
What is simplified payment verification?
It is the model described in section 8 of the whitepaper, and it is exactly the two checks above.
Satoshi’s framing was explicit about the limitation: verification is reliable as long as honest nodes control the network, and vulnerable if an attacker can overpower it. The suggested mitigation was that light clients accept alerts from full nodes when an invalid block is detected — a mechanism that was never built and would not have worked, because a full node cannot prove to a light client that a block is invalid without sending the block.
The asymmetry matters. Proving a transaction is present takes a few hundred bytes. Proving a block is invalid takes the block. Fraud proofs that would close this gap have been discussed for a decade and exist in no deployed wallet. So the honest description of SPV is not “verification with less data” but “a work check, an inclusion check, and the assumption that the majority of hash rate is following the rules you think it is.”
How did a wallet find its own transactions?
Originally, by asking a full node to watch for them, which turned out to be the hardest part to do well.
The wallet knows its addresses; the network does not. Early light wallets simply downloaded whole blocks and scanned them, which works and is expensive. BIP 37 replaced that with a Bloom filter: the wallet builds a compact probabilistic set containing its addresses, sends it to a peer, and the peer returns matching transactions plus the Merkle branches proving they are in their blocks. The false-positive rate is tunable, so in principle a wallet can hide its real addresses in noise.
It did not work. Gervais and co-authors showed in 2014 that the noise does not hide much: a peer receiving filters from the same wallet across reconnects, or receiving a filter plus the wallet’s own outgoing transactions, can recover the real addresses with high confidence, and raising the false-positive rate enough to prevent that costs most of the bandwidth saving. Worse, the wallet is handing one chosen peer a list of everything it cares about, and that peer can also lie by omission — simply not report a matching transaction — which the wallet cannot detect, because absence has no proof.
Bitcoin Core stopped serving these filters by default in 0.19.0. The stated reason in the release notes was denial of service rather than privacy: matching every incoming filter against block data is cheap for the requester and expensive for the server, especially on spinning disks. The privacy problem was real too, but the thing that killed BIP 37 in practice was that serving it was a liability.
What do compact block filters change?
They invert the direction of the query. The server no longer learns what the wallet is looking for.
Under BIP 158, every node computes the same filter for each block, with no
input from any client: a Golomb-coded set containing the script of every
output created in the block and the script of every output spent by it,
excluding OP_RETURN outputs. The filter is deterministic, so any node can
produce it and any two honest nodes produce the same bytes. The wallet
downloads filters, tests its own scripts against them locally, and when a
filter matches, downloads that entire block.
The privacy gain is structural rather than statistical. There is no filter to tune and no noise to calibrate, because the query never leaves the wallet. The cost is bandwidth: a filter runs on the order of 1–2% of its block, which is cheap, but every match means fetching a whole block, and false positives are guaranteed by design. A wallet with many addresses matches often.
BIP 157 defines how this travels over the peer-to-peer protocol, including
a chain of filter headers so a wallet can ask several peers for the same
commitment and notice when they disagree. That is detection, not proof. A
wallet that fetches a block can verify the filter it was given was correct
for that block; what it cannot do is prove a filter was wrong without
fetching the block, which brings back the same asymmetry as SPV in a
smaller form. BIP 158’s exclusion of OP_RETURN outputs exists precisely
so that a future soft fork could commit filters in the coinbase and remove
the issue. That commitment has not been proposed as a live change.
What does an Electrum server see?
Everything. The address-indexing model is the most convenient and the least private of the three.
An Electrum-style server keeps an index of the chain by script hash. The wallet subscribes to each of its script hashes and receives the full history for each, plus Merkle proofs against headers the wallet holds independently. Inclusion is therefore verifiable, and sync is close to instant even for a wallet with thousands of addresses — which is why this is what most desktop wallets and most hardware-wallet companions actually use.
What the server learns is the complete contents of the wallet: every address, how they cluster, their balances, their transaction history, and the IP address asking. One server operator with a popular public endpoint has a view of thousands of wallets that no amount of chain analysis could reconstruct from the ledger alone, because the clustering is handed over directly. The usual advice — run your own Electrum server — is sound and quietly implies running a full node anyway, at which point the light wallet is a convenience layer over your own data rather than a trust reduction. What your wallet tells the servers it uses judges the same three models on what they disclose rather than on what they check, and adds the leaks that never touch the chain at all.
Which model is your wallet using?
Usually it does not say, and the answer changes what you are trusting.
A few things are checkable. If a wallet syncs a fresh twelve-word seed with a long history in seconds, it is using an address index, because neither filters nor block scanning can be that fast. If it offers a setting for a “server” or “node URL”, it is Electrum-style or it is talking to a vendor’s API. If it mentions Neutrino, or warns that first sync takes a while and uses significant data, it is using compact filters. If it offers to connect to your own node, take the offer: it is the one configuration where the privacy question disappears entirely.
Worth separating from all of this: the signing device. A hardware wallet holds keys and signs what it is shown, and it has no opinion about the chain. The trust model described here belongs to the software that tells it what to sign, which is why a transaction it displays is worth reading carefully regardless of how the balance arrived.
Check it yourself
If you run Bitcoin Core, the filter index is one flag:
blockfilterindex=1
peerblockfilters=1
With those set, the node builds BIP 158 filters for the whole chain and serves them over the P2P protocol, and a compatible wallet can sync against your own machine without an address index and without handing anyone a list of your scripts.
To see the asymmetry at the heart of SPV, fetch a Merkle proof for any confirmed transaction and compare its size to the block containing it:
bitcoin-cli gettxoutproof '["<txid>"]'
bitcoin-cli getblock <blockhash> 0 | wc -c
The proof is a few hundred bytes. The block is over a million. Everything in this article follows from that ratio.
What remains uncertain
Whether fraud proofs are possible at all. The gap in SPV — cheap proof of inclusion, no cheap proof of invalidity — has been known since the whitepaper, and proposals to close it have never converged. Some invalid blocks could be proved invalid compactly; others, particularly inflation, appear to require data the light client does not have. Nobody has shown the general case is solvable without changing what blocks commit to.
Whether filter commitments will ship. BIP 158 was written to leave room for a soft fork committing filters in the coinbase, which would let a wallet verify a filter against the header chain rather than compare peers. There has been no serious push for it in years, and the demand that would justify it depends on light-client adoption that has not arrived.
How much the privacy difference matters in practice. The argument against address-indexing servers is strong in principle. Measuring the harm is harder: what fraction of wallets use public servers, how that data is retained, and whether it is sold or subpoenaed are questions with no published answers. The honest position is that the exposure is real, the consequences are undocumented, and the people best placed to document them are the server operators.
Sources
- PrimaryBitcoin: A Peer-to-Peer Electronic Cash System ↗
- PrimaryBIP 37 — Connection Bloom filtering ↗
- PrimaryBIP 157 — Client Side Block Filtering ↗
- PrimaryBIP 158 — Compact Block Filters for Light Clients ↗
- First-partyBitcoin Core 0.19.0 release notes ↗
- TechnicalOn the Privacy Provisions of Bloom Filters in Lightweight Bitcoin Clients ↗
- First-partyElectrumX — protocol documentation ↗