Latest news about Bitcoin and all cryptocurrencies. Your daily crypto news habit.
On Feb. 20, the San Francisco-based cryptocurrency exchange Coinbase gave the public an inside look at how the company deals with contentious forks. Coinbase engineer Breck Stodghill specifically discussed how the trading platform dealt with the Bitcoin Cash (BCH) split on November 15, 2018.
Also read: âBitcoin Killerâ Onecoin Is Ashes But Investigations Continue to This Day
Replay Attacks, Protection, and âDust Mixingâ
Over the last few years, cryptocurrency enthusiasts have gotten used to the idea of forks and subsequent blockchain splits ever since the Ethereum network bifurcated in 2016. Since then there have been a few other notable splits that affected the crypto ecosystem. Coinbase has explained in a blog post written by developer Breck Stodghill that the company believes networks should be able to fork as itâs an âimportant tool for innovation in the ecosystem.â The only thing is, some forks â specifically ones that donât have replay protection â can pose âunique security risksâ for exchange customers.
An example of a blockchain split.
The Bitcoin Cash network fork in November was one of those instances as the upgrade was contentious in the eyes of an âopposing subgroup.â In order to protect users who held BCH on Coinbase prior to the fork, the company created its own replay protection strategy to mitigate replay attacks. When a cryptocurrency splits in half there are two chains with identical transaction histories, addresses, and balances. Essentially, without replay protection transactions can be double spent by malicious actors and other types of transaction errors can happen.
âTo overcome this unique problem, we implemented our own replay protection by using a strategy called âdust mixing,â thereby ensuring that all customer funds are isolated to a specific chain and not vulnerable to replay attacks,â explains the Coinbase developer.
One example of a replay attack is the possibility of interception. At some point, an attacker watching the chain state can sees someoneâs transaction data, copies it and re-uses it on the alternate network. Since there is no replay, the transmitter can also suffer from replay vulnerabilities just by making errors on their own by sending both currencies at the same time without splitting them.
When the fork took place, Coinbase utilized the dust mixing technique in order to be sure the firmâs hot wallet and customersâ funds were kept safe. One way to separate two identical chains is by using transaction inputs that only exist on one of the ledgers. When the BCH chain diverged into two, new outputs were created and formed within the minersâ reward. These coinbase rewards are different and separate the mirrored chains going forward.
âDust mixing refers to the practice by exchange operators of including at least one small chain-isolated input to each newly generated post-fork transaction,â Stodghillâs post details. âAt the time of the BCH/BSV fork, we obtained a BCH coinbase reward from a miner. We used the coinbase reward to generate a large set of chain-isolated dust outputs. For each newly generated post-fork BCH transaction, we make sure to include at least one input that is guaranteed to be isolated to the BCH chain (i.e. a descendant of a BCH coinbase reward).â
Coinbase continued by adding:
Any leftover change outputs of Coinbase generated BCH transactions are added back into the pool of chain isolated outputs in our hot wallet and can be used as an input to subsequent transactions to produce additional dust outputs required to service BCH sends off our platform.
How Coinbase used âdust mixingâ for replay protection during the BCH/BCV chain split on November 15, 2018.
Contentious Forks Can Lead to Big Exchange Losses
Hard forks are a part of the way blockchains upgrade but contentious forks can lead to splits and subsequent replay attacks if no protection is added by cryptocurrency developers. Back when the Ethereum network fork surprised everyone in 2016, former Coinbase executive Charlie Lee stated that the Ethereum Foundation advised the exchange not to use replay protection. Reports at the time detailed that trading platforms like Coinbase, Yunbi (40,000 ETC) and Btc-e all lost thousands of ETC and ETH during the chaos. On Aug. 6, 2016, Coinbase CEO Brian Armstrong told the cryptocurrency developer Peter Todd that the exchange lost approximately 17,500 ETC ($40,000 at the time) from replay attacks.
In its blog post about the BCH/BSV split, Coinbase explains that the company wants to continue creating an open financial system with a trusted reputation. Founded in 2012 by Armstrong and Fred Ehrsam, the exchange hasnât seen any major breaches, unlike many of the other trading platforms created back then. As for hard forks, Coinbase says the firmâs engineers are always working around the clock to find solutions to issues like blockchain splits. âOur security focused approach to hard fork management is a direct result of that mission,â the San Francisco company concludes.
What do you think about the way Coinbase dealt with the contentious BCH fork that took place last November? Let us know what you think about this subject in the comments section below.
Image credits: Shutterstock, the Coinbase blog, and Pixabay.
At Bitcoin.com thereâs a bunch of free helpful services. For instance, have you seen our Tools page? You can even look up the exchange rate for a transaction in the past. Or calculate the value of your current holdings. Or create a paper wallet. And much more.
Disclaimer
The views and opinions expressed in this article are solely those of the authors and do not reflect the views of Bitcoin Insider. Every investment and trading move involves risk - this is especially true for cryptocurrencies given their volatility. We strongly advise our readers to conduct their own research when making a decision.