BOMBARCHIVE
Explore

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

The archiveBitcoin

Simplified payment verification

Simplified payment verification (SPV) is a method proposed in section 8 of Bitcoin's white paper for checking that a transaction is included in a proof-of-work chain without independently downloading and validating every transaction in that chain. The verifier keeps Bitcoin block headers and a Merkle inclusion branch for the transaction of interest. It is a verification model, not the name of one wallet, server, or mandatory Bitcoin network feature. Nakamoto, ''Bitcoin: A Peer-to-Peer Electronic Cash System'', section 8

The proposal in 2008

The original public paper announcement was sent under Satoshi Nakamoto's name on 31 October 2008. Section 8 described a user obtaining block headers from network nodes and a Merkle branch linking a payment to a particular block. Additional blocks make the reported inclusion harder to reverse in the chain selected by the client. This is narrower than reproducing a full node's transaction and script checks. Nakamoto explicitly described the simplified method as vulnerable if an attacker controlled the network and suggested that frequent-payment businesses might prefer their own full nodes. Contemporary announcement · White paper, section 8

The paper discussed possible alerts from network nodes about invalid blocks, which a lightweight user could then investigate by downloading the relevant block and transactions. That is a proposed defence in the 2008 text, not evidence that an automatic, comprehensive fraud-proof or alert system was deployed with Bitcoin in January 2009. The Bitcoin white paper page preserves the distinction between the October eight-page text and the later nine-page revision; the present PDF address is not a frozen October 2008 file. Section 8 · Bitcoin white paper

What the client actually checks

A Bitcoin block header contains the previous block hash, the transaction Merkle root, a timestamp, difficulty target encoding and nonce, among other fixed fields. A lightweight verifier can hash a sequence of headers, check their proof of work and difficulty rules, and compare competing chains by accumulated work, not just block count. For a claimed payment it can recompute a path of transaction hashes into the header's Merkle root. Bitcoin block-header reference · Sections 4 and 8

But a header is also a commitment to information the lightweight client may never have examined. Even a correctly constructed branch is not an independent check of the transaction's inputs, scripts, double-spend status or the validity of every other transaction in the block. A dishonest server may omit relevant payments or provide a misleading history. The honest-network assumption and the means by which a client learns about transactions are therefore part of the security model, not minor implementation details. Merkle tree documents the difference between a trusted root and what it can establish. Section 8 · Merkle tree

The name SPV wallet is sometimes used loosely for any wallet that avoids a full blockchain download. That usage blurs important differences. A wallet that sends addresses to a remote server and trusts its reported balance is not thereby independently verifying the header chain and Merkle branches. Conversely, a wallet can locally hold signing keys while performing only limited checks of the chain. The earliest Electrum source demonstrates the latter distinction particularly well.

From paper design to working lightweight clients

31 October 2008
Nakamoto publicly circulates the Bitcoin design. Section 8 is the first-party statement of the **SPV model**; it is not a record of a released lightweight-wallet implementation. Announcement · Section 8
7–8 March 2011
Mike Hearn announces BitCoinJ 0.1 on **7 March**, describing native peer-to-peer operation and acknowledging incomplete fork handling and chain persistence. A contemporary discussion with **Andreas Schildbach** the following day documents an Android application being developed with *BitCoinJ* 0.1. Hearn acknowledges that its chain-download implementation keeps expanded headers in memory and will need improvement. This is evidence of **real mobile-client engineering and its limitations**, not an audited claim that all 2008 security properties had already been implemented. Dated project discussion · Original 7 March release announcement
4 November 2011
The earliest surviving Electrum source handles its wallet's address histories through a server without local header-chain/Merkle verification. Its subsequent October 2012 development should not be backdated to launch. Initial source tree · Electrum
21 December 2011
Hearn retrospectively describes BitCoinJ's development during the year from an Android experiment into infrastructure used by applications, while listing peer-to-peer efficiency and faster header retrieval as unfinished priorities for 2012. The message is contemporary first-person project testimony, not independent adoption statistics. Developer's year-end account
21–27 October 2012
Electrum's surviving Git commits introduce a transaction-Merkle and header verifier, then revise header downloading, difficulty checking and reorganisation behaviour. This is **source evolution**, not proof that every intermediate implementation offered complete verification. First verifier introduction · Header-chunk refactor · Electrum
2012–2013
BIP 37 specifies client-supplied Bloom filters and partial Merkle blocks; Bitcoin-Qt **0.8.0** ships the service on **19 February 2013**. bitcoinj 0.7 is independently announced that same day with Bloom-filter downloads enabled when supported by a peer, along with an experimental fully verifying mode. The protocol helps discover transactions and receive proofs without full blocks, but exposes clients' interests and does not turn an SPV wallet into a full validator. BIP 37 · Release notice · bitcoinj 0.7 first-party announcement
12–19 February 2013
MultiBit's own release log dates Bloom-filter discovery and the addition of manually selected peers to 0.5.8beta on **12 February** and the parallel Classic 0.4.21 line on **19 February**. Both describe peer support as conditional on Bitcoin 0.8-compatible nodes. This adds a **wallet-level adoption record** to bitcoinj's library announcement and Bitcoin Core's server-side 0.8 release, without proving how any particular installer or peer behaved. Burton's contemporaneous forum posts offered the beta for testing on **12 February** but did not announce 0.4.21 as a **live release** until **24 February**; the distinction separates source-log dating from actual public rollout. The beta notes also warn of incompatibility with some older serialized wallet files, reminding us that evolving SPV transport and local wallet persistence were separate engineering problems. Primary MultiBit release log · Contemporary 12–24 February release thread · MultiBit
2017–2021
BIP 157 and BIP 158 define deterministic block filters that wallets can scan locally instead of uploading per-wallet Bloom filters. Bitcoin Core ships optional network filter serving in **0.21.0 on 14 January 2021**. Filters change **how candidate blocks are discovered**; they do not make the inclusion proof or consensus validation unnecessary. Specification · Release notes

These records show distinct projects and evidentiary limits: a mobile-client development conversation, a server-based wallet's surviving source tree, a developer's year-end account and later verifier commits. They are not one product gradually renamed SPV.

Finding a payment is a separate problem

Nakamoto's section 8 assumed that a client could obtain the relevant transaction and Merkle branch. It did not specify a complete privacy-preserving mechanism for learning which blocks concern a particular wallet. BIP 37 later offered wallet-supplied Bloom filters, with privacy leakage and server-resource costs. BIP 111 made that service explicitly advertised and optional. BIP 157 and BIP 158 reversed the filtering direction, asking clients to inspect common block filters locally. These are discovery and transport arrangements layered around the basic header/Merkle verification idea. BIP 37 · BIP 111 · BIP 157

Local filtering does not guarantee a complete view if the filter supplier can lie unchecked. BIP 157's filter headers are also not commitments in Bitcoin's proof-of-work headers. The specification offers comparison and dispute-resolution methods, with a security assumption about obtaining at least one honest peer. This is a different kind of verification from proving inclusion of a transaction under an actual Bitcoin block header. BIP 157 records those limits.

Two Merkle commitments after SegWit

Segregated Witness introduced a detail that matters to anyone trying to verify Ordinals or Bitmap material with a compact proof. Bitcoin's ordinary block-header Merkle root commits to the transaction IDs (txids), whose hash preimages exclude SegWit witness bytes. BIP 141 separately commits to witness transaction IDs (wtxids) through a witness tree and a commitment carried in the block's coinbase output, itself included under the header's ordinary Merkle root. BIP 141, transaction IDs and commitment structure

Consequently, a Merkle branch showing a reveal transaction's txid in a block does not by itself authenticate the inscription bytes in its witness. A verifier of those bytes needs to check the witness commitment path as well as the reveal transaction and applicable interpretation rules. The archive's 0.bitmap evidence packet follows both the legacy transaction path and the witness commitment; it is a concrete case of why the two proofs must not be conflated. BIP 141 · 0.bitmap

A structural attack on a bare proof

Bitcoin's legacy transaction Merkle tree has no domain-separating prefix distinguishing a leaf from an internal hash pair. An internal node is calculated from 64 bytes, the concatenation of two 32-byte hashes. A witness-stripped transaction serialization of exactly 64 bytes can therefore be interpreted as though it were an internal tree node if a proof recipient does not independently establish the real tree shape. This is the basis of the CVE-2017-12842 SPV proof weakness. It is distinct from the older duplicate-last-leaf invalidity-cache problem. Bitcoin Optech technical history · Merkle tree

Researcher Sergio Demian Lerner published an explanation on 9 June 2018, later edited, and said he had identified and disclosed the problem in August 2017. That account is first-person retrospective evidence for the discovery dates; the described forged-payment construction is a technical attack model, not a documented successful theft. A full node's checking of transaction contents and actual tree shape addresses a different assurance from accepting a bare SPV branch. Lerner's report · Technical comparison

What remains open

Open question
Locate and compare the earliest tagged BitCoinJ and Bitcoin Wallet for Android source releases to establish precisely which header, difficulty and Merkle checks each shipped in early 2011. The March discussion documents engineering work, not a release-feature audit.
Open question
Trace historical implementations of invalid-block alerting or fraud proofs separately from the hypothetical defence discussed in section 8 of the 2008 white paper.