Passer au contenu

Bitcoin accepté au paiement  |  Expédié depuis Laval, QC, Canada  |  Soutien expert depuis 2016

Replay Protection

Network & Protocol

Definition

Replay protection is a safeguard added during a chain split that ensures a transaction can be confirmed on only one of the resulting blockchains. Without it, the two chains share identical transaction formats and signature rules, so a payment you broadcast on one chain can be copied ("replayed") onto the other by anyone watching, potentially moving your coins on a chain you never intended to spend on. It is one of those consensus-layer details that most users never think about — until a fork happens and it suddenly determines whether moving your coins is safe or reckless.

The replay problem

Immediately after a split, your private keys control the same coins on both chains, because both chains inherit the identical pre-fork UTXO set. A validly signed transaction spends specific outputs that exist, byte for byte, on both ledgers, so it may satisfy the rules of both. An attacker, an automated bot, or even a careless wallet can rebroadcast your signed transaction on the second chain, draining the matching balance there. Nothing is being forged — your own signature is doing the work. This is purely a consequence of the two chains sharing history and signature schemes, and it cuts both ways: merchants can be replayed just as easily as customers, receiving a payment on one chain and unknowingly surrendering the twin on the other.

How protection is implemented

The cleanest fix is two-way replay protection baked into signature validation. When Bitcoin Cash split from Bitcoin in August 2017, it adopted a modified signature hashing scheme that sets a fork-specific flag (SIGHASH_FORKID) inside the data being signed. Signatures created with that flag are invalid under the original chain's rules, and original-chain signatures lack the flag and are rejected by the new chain. Because each transaction is cryptographically bound to exactly one chain's rules, replay becomes impossible in either direction — this is public record and remains the reference example of the technique done properly. Other splits have used distinct sighash flags, mandatory marker outputs, or new address formats to achieve similar isolation, with varying degrees of rigor. Weaker, opt-in schemes exist too, where users must deliberately construct split transactions; these put the burden on the user and have historically caused losses.

What self-custodians should check

Before moving coins after any fork, verify three things. First, does the minority chain implement mandatory two-way replay protection? If not, treat every transaction as broadcast to both networks. Second, does your wallet software understand the distinction, or will it happily sign transactions valid on both? Third, if you care about coins on both chains, split them deliberately — typically by first spending with post-fork coinbase-derived outputs or protected transaction formats — before doing anything else. Miners have a stake here as well: hashrate follows the chains, and a fork without replay protection creates chaos in mempool behavior and payout accounting that pools must handle carefully.

Why it matters beyond forks

Replay protection is a case study in why consensus changes are hard: even a "clean" split leaks value between chains unless the transaction format itself is deliberately broken apart. It is also a sovereignty lesson — exchanges handled the 2017 splits for their customers, but self-custodians had to understand the mechanics themselves. That is the trade: control of your keys means responsibility for the edge cases.

Replay protection is what makes a deliberate chain split safe to navigate; its presence or absence is a key thing self-custodians check before moving coins after any fork. Because it alters what counts as a valid signature, adding it is itself a change to the consensus rules. The rule of thumb survives every fork: know the replay policy before you sign, or let the coins sit still until you do.

In Simple Terms

Replay protection is a safeguard added during a chain split that ensures a transaction can be confirmed on only one of the resulting blockchains. Without…

Explore the Full Glossary

Browse all Bitcoin mining terms from A to Z. Whether you are a beginner or expert, deepen your understanding of the mining ecosystem.

Glossaire du minage

ASIC Miner Database

Compare 500+ miners with real-time profitability data, home mining scores, and detailed specs.

Comparer les mineurs