BOMBARCHIVE
Explore

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

The archiveBitcoin

Merged mining

Merged mining is a proof-of-work technique in which one hashing effort can be checked against more than one blockchain. In the Bitcoin–Namecoin lineage, Bitcoin is the usual parent work source and Namecoin is an auxiliary chain: the chains keep separate consensus state, while Namecoin can accept a proof showing that a parent-chain work attempt also satisfies Namecoin's target.

Desk
Bitcoin
State
Concept, implementation and activation boundary separated
Method
Contemporary forum record and surviving source treated as primary evidence

December 2010: the architecture appears in BitDNS

The earliest Bitcoin-era form of the idea appears inside the BitDNS discussion.

On 9 December 2010, Satoshi Nakamoto proposed that Bitcoin and BitDNS remain separate networks and separate blockchains while miners searched for proof-of-work that could be useful to both. The important move was architectural: application state did not need to be merged merely because mining work was shared. Direct contemporary Satoshi post

A follow-up made the commitment structure more concrete. Nakamoto described a Merkle construction in which one proof-of-work could commit to both systems, while a submission to either network could omit the branch belonging only to the other. The chains would still keep independent chain links. Direct contemporary Satoshi post

On 10 December, he argued that proof-of-work systems should retain “separate fates” rather than forcing users of one application to download and validate every other application's data. Direct contemporary Satoshi post

This was a design sketch, not a deployed Bitcoin feature and not yet the later Namecoin implementation.

2011: from sketch to AuxPoW

The surviving Namecoin documentation records the implementation stage more concretely.

A historical Namecoin merged-mining page says the technical fundamentals were outlined by Mike Hearn and that Vincent Durham (vinced) coded the proof of concept. The page describes Bitcoin as the parent chain and Namecoin as the auxiliary chain for the expected deployment, with a proxy coordinating work between their daemons and existing miners. Historical project documentation preserved in later Git mirror

The legacy Namecoin source and its README_merged-mining.md show what that proof actually contained. An auxiliary proof of work, or AuxPoW, carries enough parent-side material for the auxiliary chain to verify the work:

  • the auxiliary chain's position and Merkle branch inside an auxiliary-chain commitment;
  • the parent coinbase transaction containing that commitment;
  • the Merkle branch proving the parent coinbase belongs to the candidate parent block;
  • the parent block header itself.

Namecoin then reconstructs the commitment path and checks whether the parent header hash satisfies the Namecoin target. Surviving implementation documentation

That detail is easy to lose in the phrase “mining two chains at once”. The reusable object is the hashing work, not necessarily one block simultaneously accepted into two ledgers.

May 2011: Hearn turns the sketch into an implementable design

The attribution bridge before the Namecoin code is visible in a contemporary design thread rather than only in later project summaries.

On 4 May 2011, Mike Hearn opened a Bitcoin Forum thread titled “Design notes for sharing work between multiple independent chains.” He said that Satoshi had already laid out the idea, but “not in sufficient detail for people to actually implement”, and then tried to specify the missing machinery. In Hearn's design, an alternative chain could keep its own block format, transactions and difficulty while asking a Bitcoin node to include the alternative block hash in the Bitcoin coinbase. A successful work result for the auxiliary difficulty would then be returned with the Bitcoin block header, the coinbase transaction and the Merkle branch needed to prove the coinbase's inclusion. Direct contemporary Hearn design thread

That post matters because it is neither Satoshi's December sketch nor Durham's later Namecoin implementation. It is an intermediate engineering proposal: Hearn names proposed RPC behaviour such as setextrahashes, explains how differing chain difficulties can be checked against the same work, and treats the parent coinbase as the commitment overlap point. Some of those details changed in the later Namecoin implementation, but the parent-header / coinbase / Merkle-proof shape is already visible.

On 7 May 2011, Vincent Durham (vinced) entered the same thread and wrote that he intended to implement “cross-mining between chains” for the Namecoin project. Hearn replied that he was looking forward to Durham's chain-work-sharing patches. This is a direct contemporary handoff between the design discussion and the developer whose surviving AuxPoW code appears two months later. Contemporary thread, posts 49–50

On 14 May, Hearn said he had written the discussion into the Bitcoin Wiki's Alternative Chains page. He described the wiki version as an expansion of his original post, including a new section on mining independently of Bitcoin and a scaling design for “millions of alt-chains” using Merkle trees. Contemporary Hearn follow-up The surviving page still contains the work-sharing design, but because it has been edited over many years, the dated forum post is the cleaner source for what Hearn had actually specified by May 2011. Surviving Bitcoin Wiki page

July–August 2011: the implementation becomes traceable

The repository history lets the deployment story be dated more precisely than the later project summaries.

On 9 July 2011, Vincent Durham (vinced) committed a change titled simply “Merged mining”. It added the first surviving CAuxPow implementation, a merged-mine-proxy, and the accompanying technical README. In that initial production-tree implementation, mainnet AuxPoW acceptance was still disabled and testnet acceptance was enabled; the code already separated parent-chain acceptance from auxiliary-chain acceptance. Direct code record

On 20 July, Durham expanded the proxy from one auxiliary chain to multiple auxiliary chains, assigning each chain a deterministic position in an auxiliary Merkle tree. This is the point where the implementation visibly grows from “Bitcoin plus one auxiliary chain” into the more general merged-mining construction described by the later specification. Direct code record

The activation height was not fixed from the start. On 5 August, Namecoin source enabled AuxPoW from height 0 on testnet while still carrying a tentative production start height of 24,000. On 6 August, the implementation added the four-byte merged-mining header fa be 6d 6d (0xfa 0xbe "mm") immediately before the auxiliary Merkle root. Importantly, validation kept a backward-compatibility path for commitments without that header, provided the Merkle root appeared within the first 20 bytes of the parent coinbase script. The familiar magic marker was therefore an implementation refinement, not part of the first July version. Testnet activation commit · Header-format commit

Finally, on 29 August 2011, Durham changed the production AuxPoW start height from 24,000 to 19,200. That commit turns a later historical summary into a directly inspectable code transition: 19,200 was a chosen deployment boundary, not a constant baked into the first merged-mining patch. Direct activation-height commit

Block 19,200: a consensus boundary

Namecoin did not switch to AuxPoW merely by convention. Its legacy validation code hard-codes GetAuxPowStartBlock() to 19,200 on production and to block 0 on testnet. The same source also starts the related full-retarget rule at 19,200. Direct surviving source

Contemporary Namecoin project documentation warned that this was a mandatory upgrade because validation rules changed at the boundary. Older clients and upgraded clients would not agree on post-activation blocks. Historical project timeline preserved in later Git mirror

The merged-mining guide likewise says production Namecoin would begin accepting the new proof form at block 19,200 and describes the migration as a synchronized network upgrade. Historical project documentation preserved in later Git mirror

So there are three different historical claims that should not be collapsed:

  1. December 2010 — the separate-chain/shared-work architecture is proposed publicly in the BitDNS discussion.
  2. 2011 development — Namecoin developers implement and test an AuxPoW mechanism.
  3. Namecoin block 19,200 — the production chain crosses the validation boundary that accepts AuxPoW.

The concept, the software and the activation are different events.

The activation block was itself AuxPoW

The activation boundary can be pushed one step further than the source-code rule.

A preserved merged-mining specification reproduces Namecoin block 19,200 as an AuxPoW block, with block hash d8a7c3e01e1e95bcee015e6fcc7583a2ca60b79e5a3aa0a171eddd344ada903d. The attached parent-style header hashes to 0000000000003d47277359fb969c43e3c7e7c0306a17f6444b8e91e19def03a9. The same worked example gives the Namecoin target as 000000000000b269… and the Bitcoin target as 00000000000009ee…: the parent hash satisfies Namecoin's easier target but not Bitcoin's. Preserved merged-mining specification and serialized block example

That closes an important archival distinction. Block 19,200 was not merely the first height at which AuxPoW was permitted by the upgraded rules; the preserved block itself carries AuxPoW authentication. And its parent candidate was not a winning Bitcoin block. The first production boundary therefore demonstrates, in one artifact, why “merged mining” does not mean that every accepted auxiliary block has a corresponding accepted parent-chain block.

The specification is a later technical preservation rather than a contemporaneous block announcement, so attribution to a particular pool needs separate evidence. In a 5 August 2012 answer, Slush stated that block 19,200 had been mined by merged mining through his pool. In the same answer he identified Bitcoin block 148,557 as, to his knowledge, the first winning Bitcoin block carrying merged-mining information. That is useful participant recollection, but the “AFAIK” qualifier belongs in the record and should not be rewritten as chain proof. Later first-person recollection by Slush

The reproduced Namecoin header contains timestamp bytes 8d 1a 90 4e, which decode as Unix time 1318066829, or 8 October 2011 09:40:29 UTC. That is a miner-supplied block-header timestamp, not an independently observed wall-clock crossing. A contemporaneous Bitcoin Stack Exchange thread was already reporting height 19,202 on 8 October, which independently bounds the activation to the same day without turning the header timestamp into an observation timestamp. Contemporary thread and 8 October observation

Reproducing the serialized AuxPoW commitments

The surviving worked example can be checked beyond its two 80-byte block headers. The lone Namecoin coinbase hashes to the Namecoin header's Merkle root. The parent coinbase script carries the fa be 6d 6d marker followed by the displayed Namecoin block hash, auxiliary tree size 1 and nonce 0. With a size-one auxiliary tree, the auxiliary Merkle branch is empty. Hashing the parent coinbase transaction through its five recorded Merkle siblings at index zero reconstructs the parent header's Merkle root e511819e6f854d958fd67c92c004c1102d2ea1be26d179f083d7f68edb42fde0. The parent hash meets Namecoin's target but not Bitcoin's. Serialized example

The result verifies the internal arithmetic of a later-preserved example. It does not authenticate the raw Namecoin block from an independently synced chain, establish best-chain inclusion or reproduce every historical validation rule. A 2019 study also gives contradictory dates for the activation in its own section 2.2 versus its appendix and table; see Namecoin for the exact evidence and the unresolved Bitcoin predecessor question. Stifter et al. (2019)

What the parent chain knows

Merged mining is asymmetric.

Namecoin's validator needs evidence about the parent work because Namecoin is deciding whether to accept an auxiliary block. Ordinary Bitcoin consensus does not need to understand Namecoin's name operations, expiration rules or auxiliary-chain history. A Bitcoin miner or pool may need software capable of constructing the commitment, but that is not the same as Bitcoin nodes validating Namecoin.

This is why BitDNS's “separate fates” language survived implementation surprisingly well. Security resources can overlap while application consensus remains independent.

Why it matters beyond Namecoin

Merged mining became one answer to a recurring Bitcoin design question: how can another system borrow something from Bitcoin without becoming Bitcoin consensus?

Compare the alternatives elsewhere in the archive:

  • Colored coins and Ordinals derive additional meaning from Bitcoin transactions while Bitcoin itself ignores that application interpretation.
  • Counterparty builds a separate deterministic state machine from Bitcoin-ordered messages.
  • Namecoin keeps its own blockchain and validation rules but can reuse Bitcoin-oriented proof-of-work.
  • Sidechains pursue a different family of relationships around asset movement and separate consensus.

These should not be flattened into one category called “built on Bitcoin”. They borrow different things: ordering, transaction space, assets, proof-of-work, software lineage or some combination.

Evidence map

Direct contemporary design record

Surviving implementation and project records

Open research

Open question
Preserve Namecoin block 19,200 and its complete AuxPoW object from an independent chain source, then reproduce the parent-header hash, coinbase commitment, Merkle branches and target checks byte-for-byte. The later specification already establishes that the activation block itself used AuxPoW; the remaining task is independent preservation and verification, not re-opening that settled distinction.
Open question
Recover the IRC discussions Hearn said preceded his 4 May 2011 post, if logs survive, and compare the May design field-by-field with Durham's July CAuxPow implementation. The public attribution bridge is now dated; the remaining question is which design details were already settled before the forum write-up and which changed during implementation.
Open question
Document the first mining pools to activate Bitcoin/Namecoin merged mining and separate announced support, testnet support and production blocks.