---
title: "Anti-Replay Protection — definition | Nuri Glossary"
description: "Making transactions valid on only one side of a chain split, so a payment cannot be replayed on the other fork."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/anti-replay-protection"
---

# Anti-Replay Protection

Making transactions valid on only one side of a chain split, so a payment cannot be replayed on the other fork.

## Basically

After a blockchain splits in two, anti-replay protection stops a payment on one chain from being copied to the other. It stops you spending coins on both chains by mistake.

## Key Takeaways

- Anti-replay protection stops a signed transaction on one blockchain from being rebroadcast on a forked chain. Without it, spending coins on one side of a hard fork can move funds on the other side by mistake.
- Strong replay protection uses incompatible transaction formats or modified sighash flags, making transactions invalid across chains by default. Opt-in protection requires extra steps from you and leaves you exposed if you forget them.
- Major forks have handled replay protection differently. Bitcoin Cash introduced mandatory SIGHASH_FORKID in 2017, while Ethereum added chain IDs through EIP-155 after the ETH/ETC split caused widespread replay attacks.

## What Is Anti-Replay Protection?

Anti-replay protection stops a valid transaction on one blockchain from being copied and executed on another chain with the same transaction history. The problem arises after hard forks, when one blockchain splits into two independent networks. Both chains start with identical address formats, key pairs and balances, so a transaction signed on one chain is cryptographically valid on the other unless the chains adopt incompatible signing rules.
A user who sends 1 BTC on the Bitcoin chain after a fork could have the same signed transaction broadcast on the forked chain without anti-replay protection. The result is an unintended transfer of the equivalent forked coins. A replay attack requires no broken cryptography, only a legitimate transaction copied from one network to another.
Anti-replay protection is now a standard expectation for responsible hard fork engineering. Forks without it confuse users and exchanges, as shown by the BSV/BCH split in November 2018, when many exchanges halted trading because replay safeguards were absent.

## How It Works

Anti-replay protection has two broad approaches: strong, mandatory protection applies automatically to all transactions, while opt-in protection requires explicit action from you. Strong protection is universally preferred because it removes the risk of accidental replays.

## Strong Replay Protection

Strong replay protection changes transaction signing so that signatures from one chain are inherently invalid on the other. You do not need to take any action. The two main techniques are incompatible transaction formats and modified sighash flags.

## SIGHASH_FORKID (Bitcoin Cash)

Bitcoin Cash introduced strong two-way replay protection when it forked from Bitcoin on August 1, 2017. Its new sighash flag, SIGHASH_FORKID (0x40), triggers a modified digest algorithm adapted from BIP143, which serialises transaction data into 10 fields and hashes it with double-SHA256.
The fork ID is a 24-bit value embedded in the upper bits of the 4-byte sighash type field. Bitcoin Cash uses fork ID 0, while Bitcoin Gold later adopted the same mechanism with fork ID 79. BCH consensus rules require SIGHASH_FORKID on every transaction, so legacy Bitcoin transactions without the flag are invalid on BCH, and transactions with the flag are invalid on Bitcoin because Bitcoin nodes do not recognise it.

## EIP-155 Chain IDs (Ethereum)

Ethereum embeds a chain identifier directly into transaction signing. EIP-155, authored by Vitalik Buterin on October 14, 2016, changes the signing input from 6 RLP-encoded elements to 9.
Nodes detect EIP-155 transactions by checking whether v > 35 and recover the chain ID as (v - 35) / 2. Each network uses a unique chain ID: Ethereum mainnet is 1, Ethereum Classic is 61 and EthereumPoW (ETHW) is 10001. Ethereum activated EIP-155 at the Spurious Dragon hard fork, block 2,675,000, in November 2016.

## Opt-In Replay Protection

Opt-in replay protection requires you to modify your transactions manually so they become invalid on the other chain. You typically spend a small amount from a coin that exists on only one chain, called a "taint", or interact with a contract unique to one chain. SegWit2x proposed an opt-in mechanism in 2017 that would send dust to a specific address to invalidate your transaction on the SegWit2x chain, but it was widely criticised as insufficient because anyone skipping the extra step remained vulnerable, and the proposal was ultimately cancelled before activation.

## ETH/ETC Split (2016)

The Ethereum/Ethereum Classic split on July 20, 2016, at block 1,920,000, is the most prominent example of a fork launching without replay protection. The fork was executed to reverse the DAO hack, in which approximately $60 million was drained through a reentrancy exploit. Dissenting nodes continued the original unmodified chain as Ethereum Classic.
Replay attacks were immediate and widespread because both chains used identical transaction formats. Users withdrawing ETH from exchanges had their withdrawal transactions replayed on ETC, effectively receiving free ETC or losing ETC if unaware of the fork, while exchanges scrambled to implement splitting services. EIP-155 was proposed three months later and activated on Ethereum mainnet in November 2016, but Ethereum Classic did not adopt it with chain ID 61 until the Atlantis hard fork at block 8,772,000 in September 2019, over three years after the split.

## BCH/BTC Split (2017)

Bitcoin Cash learned from the ETH/ETC debacle. BCH included mandatory SIGHASH_FORKID-based replay protection from the first block when it forked from Bitcoin on August 1, 2017. The clean separation let exchanges support both assets simultaneously and was widely praised as responsible fork engineering, while users could transact freely on either chain without risk of accidental replays.

## BSV/BCH Split (2018)

Bitcoin SV forked from Bitcoin Cash on November 15, 2018, with neither side initially implementing replay protection because both claimed to be the legitimate Bitcoin Cash chain in the "hash war". Many exchanges halted BCH trading during this period. BSV implemented replay protection and formally established itself as a separate chain after approximately 10 days.

## SegWit as Natural Protection

SegWit (Segregated Witness), activated on Bitcoin in August 2017, introduced a new transaction serialisation format and the BIP143 digest algorithm. Bitcoin Cash forked on August 1 before SegWit activated on August 24, so transactions using SegWit output types are inherently invalid on BCH, giving one-directional natural protection: spending from a SegWit address on Bitcoin cannot be replayed on BCH. Transactions spending from legacy, non-SegWit addresses remain replayable without SIGHASH_FORKID.

## Use Cases

Anti-replay protection is not limited to blockchain forks. The same principle appears in several other areas where transaction reuse across contexts must be prevented.

## Why It Matters

Anti-replay protection directly protects your funds on forked chains. Without it, every transaction becomes a potential liability, and the ETH/ETC split showed that even sophisticated users and major exchanges can suffer losses.
You need to account for anti-replay protection when designing cross-chain interactions on Bitcoin layer 2 networks. Protocols like Spark operate as separate layers with their own transaction formats, providing inherent isolation from the base chain. The UTXO model used by Bitcoin and many layer 2 systems also offers some natural replay resistance: once a UTXO is spent on one chain, the corresponding UTXO on a forked chain is a different object with different spending conditions, assuming the fork introduced incompatible rules.
The evolution from the ETH/ETC split with no protection to the BCH/BTC split with mandatory protection from block one shows clear industry consensus: strong replay protection is not optional for responsible hard fork engineering. The history of soft fork activations explains how Bitcoin's consensus changes are managed.

## Incomplete Protection at the Application Layer

Transaction-level replay protection, such as EIP-155 chain IDs, does not automatically protect smart contracts. Attackers exploited Omni Bridge on EthereumPoW in September 2022 by replaying cross-chain bridge call data because the bridge contract had not been updated to verify the new chain ID, resulting in stolen funds. The attack showed that every layer of the stack needs anti-replay protection, not just transaction signing.

## Opt-In Protection Leaves Users Exposed

Opt-in replay protection leaves you vulnerable if you are unaware of a fork or do not understand the technical steps. The risk is asymmetric: technically sophisticated users protect themselves while less experienced users bear the losses. Strong protection is strictly superior because it requires no action from you.

## Legacy Transaction Compatibility

EIP-155 maintains backward compatibility by accepting legacy pre-EIP-155 transactions with v values of 27 or 28. Wallets and hardware devices that have not been updated to sign with chain IDs can therefore still produce transactions that are replayable across chains. You should make sure your wallet software supports the latest signing standards.

## Smart Contract Signature Replay

Smart contracts need their own replay protection for signed messages beyond transaction-level replay, including ERC-20 permit signatures and gasless meta-transactions. Standards like EIP-712 address this through domain separators that include chain ID, contract address and version. A 2025 study found over 1,700 signature-verification contracts on Ethereum with replay vulnerabilities, holding approximately $4.76 million in at-risk assets.
The glossary entry is for informational purposes only and does not constitute financial or investment advice. You should always do your own research before using any protocol or technology.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
