AsicBoost

A mining trick that rearranges the block header so part of the hashing work can be reused instead of recomputed.

Basically

AsicBoost lets Bitcoin miners reuse part of their calculations. You need less electricity for each attempt to find a block.

Key Takeaways

  • AsicBoost reduces SHA-256 computation by approximately 15-20% per hash by reusing the intermediate hash state, or midstate, from the first chunk of the block header.
  • Overt AsicBoost is visible on-chain through version bits and is standard on modern ASIC miners, while covert AsicBoost hides in the coinbase transaction and became effectively extinct after SegWit activated in August 2017.
  • Allegations that covert AsicBoost motivated opposition to SegWit sparked one of Bitcoin's most heated controversies and raised questions about mining centralisation and proof-of-work fairness.

What Is AsicBoost?

AsicBoost is a method for optimising Bitcoin mining hardware to perform proof-of-work computations more efficiently. Dr. Timo Hanke and Sergio Demian Lerner described it in a 2016 paper, though the underlying patent was filed around 2014. The technique exploits the way SHA-256 processes Bitcoin's 80-byte block header, allowing miners to skip redundant computation and find valid blocks using less energy per hash.

AsicBoost is a legitimate engineering optimisation, but its covert variant became deeply controversial. Allegations that certain mining hardware manufacturers used covert AsicBoost and opposed protocol upgrades to protect that advantage fuelled years of debate within the Bitcoin community.

How It Works

Bitcoin's double-SHA-256 proof-of-work processes the block header in 64-byte (512-bit) chunks. The 80-byte Bitcoin block header is therefore split into two chunks.

SHA-256 processes these chunks sequentially and produces an intermediate hash state called the "midstate" after hashing the first chunk. The midstate feeds into the second chunk's computation. AsicBoost uses a key insight: if you find multiple block header candidates with the same first-chunk midstate, you only need to compute the first chunk once and can then vary the nonce in the second chunk across all of them.

The reuse saves approximately 15-20% of the total computation per hash, according to the original paper and analysis by Bitcoin Optech. Some sources cite theoretical gains of up to 30% under optimal conditions.

Midstate Collision Example

AsicBoost finds "collisions" in the first chunk: different header inputs that nonetheless produce the same midstate output. A constant midstate lets every nonce attempt in the second chunk benefit from the saved first-chunk computation.

AsicBoost effectively gives you multiple "free" first-chunk computations. The reuse reduces the average energy cost per hash attempt.

Overt AsicBoost

Overt AsicBoost achieves midstate collisions by manipulating the version field in the block header. The version field sits in the first chunk, so changing its unused bits can produce different inputs that collide on the same midstate. The approach is called "overt" because the modified version bits are publicly visible to anyone inspecting the blockchain.

BIP 320 formalised this by reserving 16 bits (bits 13-28) of the nVersion field for general-purpose use, represented by the mask 0x1fffe000. Mining equipment negotiates which bits to use with pools via the Stratum "version-rolling" extension. The approach is fully compatible with SegWit and all protocol upgrades.

Modern ASIC miners from all major manufacturers now ship with overt AsicBoost enabled by default. The technique is built into the silicon and firmware of current-generation hardware like the Bitmain Antminer S19/S21 series and MicroBT Whatsminer M50 series.

Covert AsicBoost

Covert AsicBoost achieves midstate collisions by manipulating the Merkle root instead of the version field. The first 28 bytes of the Merkle root sit in the first chunk, so you can rearrange transaction order or modify the coinbase transaction to vary those bytes and create collisions while keeping the last 4 bytes in the second chunk identical.

The approach is "covert" because no single on-chain indicator reveals its use. Naive implementations can leave detectable patterns, such as unusually small blocks, specific transaction ordering, or empty blocks. Chain analysis can identify these patterns.

The SegWit Controversy

Gregory Maxwell, then CTO of Blockstream and a Bitcoin Core contributor, published findings on the Bitcoin development mailing list in April 2017 revealing that a mining hardware manufacturer had implemented covert AsicBoost in its ASIC chips. The manufacturer was subsequently identified as Bitmain, whose CEO Jihan Wu had been a vocal opponent of SegWit activation.

The controversy centred on a critical technical detail: SegWit introduced a witness commitment in the coinbase transaction that changes the Merkle root in ways that make covert AsicBoost collision-finding impractical. Activating SegWit would therefore break covert AsicBoost.

Evidence cited at the time included AntPool, Bitmain's mining pool, producing blocks roughly 100KB smaller than comparable pools, which is consistent with covert AsicBoost functioning more effectively with fewer transactions. Maxwell argued that "the covert method of mining with AsicBoost is no longer possible if Segregated Witness activates."

Bitmain denied that opposition to SegWit was motivated by AsicBoost, though it acknowledged having the technology in its chips. SegWit ultimately activated on 24 August 2017, effectively ending covert AsicBoost usage on the Bitcoin network.

BIP 320 and Version Rolling

The community moved to standardise the overt variant after SegWit made covert AsicBoost no longer viable. BIP 320, authored by BtcDrak, reserves 16 bits of the block header's nVersion field for general-purpose use by mining hardware. The reservation serves a dual purpose.

BIP 320 leaves 13 bits available for parallel soft-fork signalling and does not require a soft fork to implement. Mining pools support version rolling via the Stratum protocol extension, making overt AsicBoost easy for miners to use.

Use Cases

AsicBoost applies specifically to SHA-256-based proof-of-work mining. You can use it to reduce the computation needed for each mining hash.

The research article on Bitcoin mining economics offers a deeper look at how mining economics shape the Bitcoin network. The analysis of Stratum V2 and mining decentralization provides further related detail.

Patent History and Resolution

The AsicBoost patent changed ownership multiple times before landing with Little Dragon Technology LLC. Little Dragon joined the Blockchain Defensive Patent License (BDPL) in March 2018, making the patent freely available to any manufacturer that also joins the BDPL. The BDPL is a mutual non-aggression arrangement where members license their blockchain patents to one another royalty-free.

Halong Mining soon became the first manufacturer to publicly implement overt AsicBoost in its DragonMint T1 miner. Bitmain followed by releasing overt AsicBoost firmware for its Antminer S9 line. The patent is no longer a barrier to adoption today: all major mining hardware manufacturers use AsicBoost freely under the BDPL.

Centralisation Concerns

Miners with access to AsicBoost held a significant competitive advantage before the BDPL made it freely available. A proprietary efficiency gain of 15-20% translates to substantially higher revenue at the same energy cost, potentially concentrating hashrate among a few manufacturers and showing how hardware-level optimisations can affect mining centralisation. The research on mining centralization and pool risks offers further analysis.

Protocol Upgrade Conflicts

The SegWit controversy demonstrated how mining optimisations can create misaligned incentives around protocol upgrades. Miners benefiting from covert AsicBoost had a financial reason to oppose SegWit, regardless of its technical merits. The tension between miner incentives and network-wide improvements remains a consideration in Bitcoin Core governance and future soft-fork proposals.

Detection and Transparency

Covert AsicBoost was difficult to detect definitively, which allowed it to persist without public scrutiny. Overt AsicBoost solved this transparency problem: version-bit rolling is visible on-chain and can be monitored by any full node or block explorer. The shift from covert to overt usage represents a healthier outcome for the network, even though the underlying optimisation remains the same.

Energy and Environmental Implications

AsicBoost is a net positive from an energy perspective because it allows the same hashrate to be maintained with less electricity. A 15-20% efficiency improvement represents a meaningful reduction in energy consumption per unit of security provided at the scale of Bitcoin's global mining network.

The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.

0

← All 1876 glossary terms