THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

Do Bitcoin Compact Block Filters Prove a Payment Was Received?

permalink THAMER
#bip158#bitcoin-compact-filter-payment-proof#merkle-proof#wallet-faq

No. A Bitcoin compact block filter is a discovery aid. A matching filter suggests that a block may contain a script relevant to a wallet, but it does not prove that the wallet received a valid payment.

Why not?

BIP158 basic filters use a probabilistic encoding, so a match may be a false positive. A wallet must inspect the relevant block and transaction to determine whether a matching output actually exists and whether it belongs to the wallet.

What additional evidence is needed?

A transaction can be checked for inclusion in a block, for example with a Merkle proof tied to a block header. However, inclusion evidence alone does not perform full consensus validation. A fully validating Bitcoin node independently checks the applicable consensus rules.

Can a nonmatching filter prove no payment exists?

Not when the filter came from an untrusted source. A dishonest server could omit required elements. Even an accurate filter is useful only if the wallet derived and queried the correct scripts.

Primary references

BIP158 — Compact Block Filters for Light Clients: https://github.com/bitcoin/bips/blob/master/bip-0158.mediawiki
Bitcoin whitepaper — Section 8: https://bitcoin.org/bitcoin.pdf

Questions & Answers

Explore all questions →

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects