Stay Safe During Bitcoin Forks: Replay Protection
These days, many developers are attempting to establish their own fork of the world's largest cryptocurrency. Though many enthusiasts eagerly wait to get their hands on "free money," depending on how a fork is implemented, there can be serious security and financial drawbacks.
This article will help you understand how to stay safe and secure during a Bitcoin Fork, and will also in the process guide you through Replay Protection, and important forking concept to understand.

We'll cover hard forks through these sections:
- What is a hard fork? - Know the definition of a hard fork, and how they generally work on the blockchain.
- What is replay protection? - Covers what replay protection is and how it's so important in keeping your coins safe.
- How can I stay safe? - Broad tips to help you keep your coins safe during a hard fork.
Let's hop in!
What is Hard Fork?
The original creator of cryptocurrencies, who goes by Satoshi Nakamoto, first published the code for Bitcoin almost a decade ago. However, the code has largely been left unchanged since, with only minor changes which are still completely backwards-compatible.
However, what happens when a developer wants to introduce change? Depending on the type of the proposed change, either a soft fork or a hard fork would occur.
A fork in general refers to a "splitting of paths." Think of a trail in the forest, where the road suddenly forks into two paths— something very similar happens in the blockchain.
Soft Fork
A soft fork is when changes that are optional are applied to the blockchain. Segregated Witness (SegWit) was a soft fork, because though the changes are now available for everyone, not everyone needs to use it. Though many miners do mine SegWit blocks, not all of them do.
Soft forks allow those who aren't updated for the fork to still utilize the blockchain and work normally. Soft forks generally don't change major features because those may not be backwards-compatible. SegWit was backwards-compatible in that non-SegWit miners and non-SegWit users could still use Bitcoin without updating, and it didn't require a hardware/software update.
Hard Fork
Hard Forks seem to be the most popular ones, and also seem to cause the most chaos or disagreement. Here's a diagram of all of the planned soft and hard forks:

When a hard fork occurs, the cryptocurrency gets split into two separate blockchains. Sometimes, everyone has consensus and supports one side of the fork (this has always happened in STEEM hard-forks). However, most of the time with Bitcoin, this does not occur.
When there isn't consensus, a new cryptocurrency might form out of the new fork, which is what happened with the Bitcoin Cash (BCH) fork. The developers of hard forks generally add radical new features that are not backwards-compatible, from blocksize increases to a change of the mining algorithm.
However, an important feature that some choose to ignore is something called "replay protection". Let's explore this in the next section.
What is Replay Protection?
Replay Protection is an important feature that distinguishes cryptocurrencies born out of hard forks.
In general, Bitcoin Transactions are relayed as text that contains the recipient, sender, and the amount.
They also contain a signature, or *witness from the sender that tells the blockchain the sender is who they say they are, and transactions are identified by their SHA-256 hash.
However, the format of the transaction for the Bitcoin blockchain is very particular. Only if a transaction follows that particular format (let's call it the BTC Format) can get accepted by the blockchain. However, if any valid transaction follows the BTC format, it can be sent to a miner on the blockchain and confirmed/verified.
Replay protection basically means that the forked cryptocurrency has a different transactional format than the original one. This means that transactions from the forked cryptocurrency are completely invalid on the original chain, and vice-versa.
When a fork doesn't have replay protection
If a fork does not have replay protection, users can be seriously harmed when sending coins. The upcoming Bitcoin Gold (BTG) fork currently does not have implemented replay protection, so we'll use it as an example.
Say I have 2 BTC in my wallet, and I receive 2 BTG through the forking process. Now, I send 0.5 BTC to an exchange. I sign my transaction, and relay it on the blockchain.
Now, a replay attacker or hacker decides that he wants to relay my BTC transaction on the Bitcoin Gold blockchain as well.
Thus, he copies the public transaction Send 0.5 BTC from me to exchange from the BTC blockchain, and broadcasts it to the Bitcoin Gold chain.
However, Bitcoin Gold doesn't have replay protection! This means the transaction format is the same for both BTC and BTG, and the Gold blockchain accepts the attacker's broadcast. Effectively, now both 0.5 BTC and 0.5 BTG have been transferred to the recipient/exchange address, even though I didn't intend to transfer the 0.5 BTG as well.
However, things would be even worse if I meant to transfer the BTG, and the attacker relayed my BTG transaction onto the BTC chain. This would mean I would lose 0.5 BTC rather than BTG, and with BTC at nearly $6000 right now, that would leave me in lots of trauma!
I highly recommend reading @mooncryption's comment below this post, for a sidenote on the Bitcoin Gold (BTG) fork coming soon.
When a fork does have replay protection
The Bitcoin Cash (BCH) fork did have replay protection, so let's model using that fork. Suppose I transfer 0.5 BCH from my wallet to the exchange.
An uneducated replay attacker attempts to replay my BCH transaction on my BTC wallet. (which, if it worked, would send 0.5 BTC to the exchange as well!) However, BCH does have replay protection, meaning its transaction format is slightly different from BTC's.
This means that the BTC blockchain and BTC miners wouldn't accept the replayed transaction, and my BTC is safe.
Staying Safe During Hard Forks
In this section, let's go over some tips to keep your coins secure and to stay safe during forks.
In general, don't make transactions on either chain a few hours before and up to a few days after the fork. Your transactions may become invalid or may be used maliciously, and you may end up losing coins! Additionally, don't make any purchases or sells during forks, even though it might be tempting to do so.
If the fork does not have replay protection, avoid making transactions until instructions are given. If you create a transaction on one chain, it might become accepted on the other, effectively spending your coins on both chains.
To avoid this, you need to split your coins. You can click here for a detailed how-to on splitting your fork coins in case this happens.
After you've split your coins, you're safe from any attempted replay attacks and can begin creating transactions on either chain. A lot of people immediately sell their forked coins without splitting or waiting for instructions, and replay attackers can prey on these people by replaying their transaction on the other chain, effectively emptying their pockets of all cryptocurrency.
Lastly, look to your wallet provider for information regarding the hard fork. If your wallet provider did not give any information or press releases on the subject, try contacting them. For the upcoming Bitcoin Gold (BTG) fork, @mooncryption's comment below this post should serve as a good outline.
Conclusions
Bitcoin's forks can cause a lot of chaos and disagreement in the cryptocurrency community, with lots of developers announcing their own ideas on how to make Bitcoin "better." These forks, if unorganized, can lead to lots of financial loss. Remember to follow the above tips to keep all of your cryptos safe during any forks!
Thanks for reading,
— @mooncryption





@mooncryption are you sure about this? I thought Bitcoin Gold DOES have replay protection and it is the upcoming Segwit2X fork which does not.
SegWit2x Developers have announced they're not putting in replay protection because they believe the legacy/core Bitcoin will die after the fork (which is quite a gamble), and they believe their fork to be an "upgrade" of Bitcoin rather than an altcoin.
Bitcoin Gold is definitely much more weird. First of all, there's only one developer actively working on it, and he hasn't even done that much work. Also, there's a huge premine of about 100,000 coins for "coin development." If BTG is valued the same as BTC, this is hundreds of millions of dollars for small fork changes.
Trezor, Bittrex, and many exchanges have stated they will not support BTG without Replay Protection, and they don't have it in yet. See articles like this for more information; BTG hasn't implemented replay protection yet.
Thanks, looks like I misunderstood!
Sure! :)
The hope is that the BTG developer can come to his/her senses and implement replay protection. However, currently it's not implemented, and I always like to prepare for the worst possible scenario.
Please read the comment below for some notable information on the BTG fork.
Bitcoin Gold Fork Information
The BTG fork does not have implemented replay protection yet. As such, many companies, wallets, and users have spoken out about this.
Trezor made a statement about BTG here, stating that:
Additionally, popular exchange Bittrex agrees. Bittrex (in their statement) does not support implementation of BTG, because:
Splitting Your Coins
It is imperative that if you plan to make any transaction on any chain after the fork, that you split your coins (unless they add in replay protection).
If you happen to use the Electrum wallet, you can click here for a guide on splitting coins. There's also another guide here for other users. Otherwise, the principle is the same; basically, you use your BTC wallet to send all of your BTC back to yourself. Do the same on your BTG wallet.
If both your transactions confirm, check that they have different transaction hashes on a block explorer. If they do, you're done! If not, simply try again— there's no harm in it not working, because you simply sent your coins back to yourself.
More Information
Bitcoin Gold's official website is http://btcgpu.org, and their official Twitter is @bitcoingold. The open-source repository for BTG is at https://github.com/BTCGPU/BTCGPU.
Well you learn something everyday.
Thanks for taking the time to explain these subjects so clearly.
img credz: pixabay.com
Nice, you got a 8.0% @minnowbooster upgoat, thanks to @mooncryption
Want a boost? Minnowbooster's got your back!
The @OriginalWorks bot has determined this post by @mooncryption to be original material and upvoted it!
To call @OriginalWorks, simply reply to any post with @originalworks or !originalworks in your message!
For more information, Click Here!
Special thanks to @reggaemuffin for being a supporter! Vote him as a witness to help make Steemit a better place!
Great post, luckily I got it here, I was looking for same on Google but got it here ☺☺ so nicely explained soft and hard fork even the term replay protection, only one confusion is left how I came to know coin is split or not, any simple example if u can give. @mooncryption
Thnx for this great post 👍👌
I m new to steemit plz help and follow me @singhrajat 😊
If you happen to use the Electrum wallet, you can click here for a guide on splitting coins. There's also another guide here for other users.
Otherwise, the principle is the same; basically, you use your BTC wallet to send all of your BTC back to yourself. Do the same on your BTG wallet.
If both transactions confirmed, you've split your coins! Otherwise, try again (it doesn't matter if it fails; you sent your coins to yourself anyways).
Splitting your coins means that the blockchain will start viewing them as different, and it will completely prevent replay attackers from replaying your transactions.
This post was resteemed by @resteembot!
Good Luck!
Curious? Check out:
The @resteembot users are a small but growing community.
Check out the other resteemed posts in resteembot's feed.
Some of them are truly great.
Thanks for posting..... Also visit my post and comment @vindy
Resteemed your article. This article was resteemed because you are part of the New Steemians project. You can learn more about it here: https://steemit.com/introduceyourself/@gaman/new-steemians-project-launch
wow important post
Great breakdown. Why wouldn't BTG have Replay Protection? Seems like a no brainer to have. Resteemed.
I'm not sure. There's an issue (and public talk) on BTG's official repository here. Many people are working to pressure the developer to add replay protection.