The Bitcoin Cash Hardfork: Three Interrelated Incidents 9357

Bitcoin Cash

The 15 May 2019 Bitcoin Cash hardfork appears to have suffered from three significant interrelated problems. A weakness exploited by an “attack transaction”, which caused miners to produce empty blocks. The uncertainty surrounding the empty blocks may have caused concern among some miners, who may have tried to mine on the original non-hardfork chain, causing a consensus chainsplit. There appears to have been a plan by developers and miners to recover funds accidentally sent to SegWit addresses and the above weakness may have scuppered this plan. This failure may have resulted in a deliberate and coordinated 2 block chain re-organisation. Based on our calculations, around 3,392 BCH may have been successfully double spent in an orchestrated transaction reversal. However, the only victim with respect to these double spent coins could have been the original “thief”.

Illustration of the Bitcoin Cash network splits on 15 May 2019

(Source: BitMEX Research)
(Notes: Graphical illustration of the split)

The three Bitcoin Cash issues

Bitcoin Cash’s May 2019 hard fork upgrade was plagued by three significant issues, two of which may have been indirectly caused by a bug which resulted in empty blocks. The below image shows the potential relationships between these three incidents.

The relationships between the three issues faced by Bitcoin Cash during the hardfork upgrade

(Source: BitMEX Research)

The empty block problem

Bitcoin ABC, an important software implementation for Bitcoin Cash, appears to have had a bug, where the validity conditions for transactions to enter the memory pool may have been less onerous than the consensus validity conditions. This is the opposite to how Bitcoin (and presumably Bitcoin Cash) are expected to operate, consensus validity rules are supposed to be looser than memory pool ones. This is actually quite an important characteristic, since it prevents a malicious spender from creating a transaction which satisfies the conditions to be relayed across the network and get into a merchants memory pools, but fails the conditions necessary to get into valid blocks. This would make 0-confirmation double spend attacks relatively easy to pull off, without one needing to hope their original payment doesn’t make it into the blockchain. In these circumstances, an attacker can be reasonably certain that the maliciously constructed transaction never makes it into the blockchain.

An attacker appears to have spotted this bug in Bitcoin Cash ABC and then exploited it, just after the hardfork, perhaps in an attempt to cause chaos and confusion. This attack could have been executed at any time. The attacker merely had to broadcast transactions which met the mempool validity conditions but failed the consensus checks. When miners then attempted to produce blocks with these transactions, they failed. Rather than not making any blocks at all, as a fail safe, miners appear to have made empty blocks, at least in most of the cases.

Bitcoin Cash – Number of transactions per block – orange line is the hardfork

(Source: BitMEX Research)

The asymmetric chainspilt

At the height of the uncertainty surrounding the empty blocks, our pre-hardfork Bitcoin ABC 0.18.2 node received a new block, 582,680. At the time, many were concerned about the empty blocks and it is possible that some miners may have reverted back to a pre-hardfork client, thinking that the longer chain was in trouble and may revert back to before the hardfork. However, this is merely speculation on our part and the empty block bug may have had nothing to do with the chainsplit, which could have just been caused by a miner who was too slow to upgrade.

Bitcoin Cash consensus chainsplit

(Source: BitMEX Research)

The chainsplit did highlight an issue to us with respect to the structure of the hardfork. We tested whether our post hardfork client, ABC 0.19.0, would consider the non-hardfork side of the split as valid. In order for the break to be “clean”, each side of the split should consider the other as invalid.

In order to test the validity of the shorter pre-hardfork chain, from the perspective of the Bitcoin ABC 0.19.0 node, we had to invalidate the first hardfork block since the split. We then observed to see whether the node would follow the chainsplit or remain stuck at the hardfork point. To our surprise, as the below screenshot indicates, the node followed the other side of the split. Therefore the split was not clean, it was asymmetric, potentially providing further opportunities for attackers.

Screenshot of the command line from our Bitcoin ABC 0.19.0 node

(Source: BitMEX Research)

The coordinated two block re-organisation

A few blocks after the hardfork, on the hardfork side of the split, there was a block chain re-organisation of length 2. At the time, we thought this was caused by normal block propagation issues and did not think much of it. For example, Bitcoin SV experienced a re-organisation a few weeks prior to this, of 6 blocks in the length. When Bitcoin SV re-organised, all transactions in the orphaned chain eventually made it into the main winning chain (except the Coinbase transactions), based on our analysis. However, in this Bitcoin Cash re-organisation, we discovered that this what not the case.

The orphaned block, 582,698, contained 137 transactions (including the Coinbase), only 111 of which made it into the winning chain. Therefore a successful 2 block double spend appears to have occurred with respect to 25 transactions. The output value of these 25 transactions summed up to over 3,300 BCH, as the below table indicates.

List of transactions in the orphaned block (582,698) which did not make it into the main chain

Transaction ID Output total (BCH)
1e7ed3efb7975c06ca46598808e17c6f42c66a085fcb65356dc090e3c434d874 Coinbase (not counted)
0cdd5afff40831199d78ac55116a94aaf4ea7d53e599ac44962c29861ef9f05e 79.9
1907e59313a5c2607f706e8439feb613ed3ff89530d17bd9deced7113928df79 358.9
27553ff15a9d58b10b33da69bef3ccd570c007fc0d695cf8b88817cfc4d49065 65.2
2ff74d9b244469dcd87f9c853b70f9bc72d4116c662ee12783a1c32a6825d45e 196.3
357e31bcf17b4d557954b2d69b7169559a64605a628c4bb9eb11adbd416967d1 117.4
3801dc4ee11ccaeda243ac287ee5e40afb0f07dc0ba26f534ea52f4bfde0d3da 161.2
83e6065dd31ef706f6a90669e460000741820c4dcb753290bd2b003a9f853211 71.2
8950cae069562893aa3583b75fd14f2aaef4f0db72292bd05e11f915ca38cd86 107.8
8e10f1f85d9707ca974ddabd9cb8188d0b890586781ef4161a9133dadefbe0e6 72.0
8fc0b3665f4734b56686ffec83f6b23000720af90102e20f39d9dddb5f1f5c25 183.0
99bd320fb7e3fc487b393c3b9afbc6a7bc765d7f9df5902201a70d3cb8fc5a63 57.8
a38b43f85cc592c4bd69b2b1f0f865df6d36f3b89dfa6119780197369e48192a 177.8
b091bf34d72444ff1669dd13b6c912d8801b94aad8a92d162a9680d46d4b727f 89.2
bd8ee13735dcbdad983fe9624c5b3fd3d257b15a62b269ddb40bb4be9d4a15cb 100.5
beae5bc9137beebddea6f5fbc6fe79b77f6d59f2aa2a5da675ccc39b2b2f8cb6 166.3
c47d1c18c39d28df21ce0e3c34021295658b56c7e669af3aebe685cea32462dc 210.3
c8031b2fd429d9e2838dccc7fa0631788139443a7609958c5d2ce195aec97f8a 85.7
cf3af954a7c3b327107aa42498ec31924075bd926a61428352695a696af8d6c4 114.8
cf8f47928c37bc24c88ff8ff8ea3c84419d4cedc907e74d113e681b055c566dc 162.0
dff4537328f2568db5b7f0fa81a57024fdeb9da23a432a893fb48eca1ab63079 115.9
e1398e628da1258db08f969efdade13e6daac6a53e5b43121dab3604c605af29 69.9
e926ce8ca0192b3ea7f971d93eec3f651e8a35839a76101512cb8c37f98caa89 126.8
e9e0482d61300d3b3d6a9340f9ee66bd6d098328cd7ced50416bb28eb8dc796e 307.4
ebc4392b27056b84a0337638f1257031172d842c148f9ffa10e80afc4080d8a1            82.7
f81267d65855040bf08bb5291a87733555067041ab611cd4e874368c8c1a2c2a 111.9
Total 3,391.7

(Source: BitMEX Research)

As the above table shows, the total output value of these 25 double spent transactions is 3,391.7 BCH, an economically significant sum. Therefore, one may conclude that the re-organisation was an orchestrated event, rather than it having occurred by accident. If it occurred by accident, it is possible there would be no mismatch between the transactions on each side of the split. However, assuming coordination and a deliberate re-org is speculation on our part.

We have provided two examples of outputs which were double spent below:

Example of one of the double spent UTXOs – “0014”

(Source: BitMEX Research)

The above table illustrates what happened to a 5 BCH output during the re-organisation. The 5 BCH was first sent to address qzyj4lzdjjq0unuka59776tv4e6up23uhyk4tr2anm in block 582,698. This chain was orphaned and the same output was eventually sent to a different address, qq4whmrz4xm6ey6sgsj4umvptrpfkmd2rvk36dw97y, 7 block later.

Second example of one of the double spent UTXOs – “0020”

(Source: BitMEX Research)

What happened to the above outputs shares characteristics with almost all the funds in the 25 double spent transactions. Most of the outputs appear to have been double spent around block 582,705 on the main chain, around 7 blocks after the orphaned block.

The SigScript, used to redeem the transaction inputs, starts with “0020” or “0014”, highlighted in the above examples. These may relate to Segregated Witness. According to the specificationin Segregated Witness, “0014” is pushed in P2WPKH (Pay to witness public key hash) and “0020” is pushed in P2WSH (Pay to witness script hash). Therefore the redemption of these inputs may have something to do with Segregated Witness, a Bitcoin upgrade, only part of which was adopted on Bitcoin Cash.

Indeed, based on our analysis, every single input in the 25 transactions in the orphaned block 582,698 was redeemed with a Sigscript starting “0014” or “0020”. Therefore it is possible that nobody lost funds related to this chain re-organisation, other than the “attacker” or “thief” who redeemed these SegWit outputs, which may have accidentally been sent to these outputs in the first place.

As part of the Bitcoin Cash May 2019 hardfork, there was a change to allow coins which were accidentally sent to a SegWit address, to be recovered. Therefore, this may have occurred in the incident.

Allow Segwit recovery

In the last upgrade, coins accidentally sent to Segwit P2SH addresses were made unspendable by the CLEANSTACK rule. This upgrade will make an exemption for these coins and return them to the previous situation, where they are spendable. This means that once the P2SH redeem script pre-image is revealed (for example by spending coins from the corresponding BTC address), any miner can take the coins.

(Source: https://github.com/bitcoincashorg/bitcoincash.org/blob/master/spec/2019-05-15-upgrade.md)

It is possible that this 2 block re-organisation is unrelated to the empty block bug. However, the split appears to have occurred just one block after the resolution of the bug, therefore it may be related. Perhaps the “honest” miners were attempting to coordinate the spend of these outputs directly after the split, perhaps to return them to the original owners and the empty block bug messed up their timing, allowing the attacker to benefit and sweep the funds.

On the other hand, the attack is quite complex, therefore the attacker is likely to have a high degree of sophistication and needed to engage in extensive planning. Therefore, it is also possible this attack may have been effective even without the empty block bug.

Conclusion

There are many lessons to learn from the events surrounding the Bitcoin Cash hardfork upgrade. A hardfork appears to provide an opportunity for malicious actors to attack and create uncertainty and therefore careful planning and coordination of a hardfork is important. On the other hand, this empty block bug, which may be the root cause of the other 2 incidents, could have occurred at any time and trying to prevent bugs like this is critical whether one is attempting to harfork or not.

Another key lesson from these events is the need for transparency. During the incidents it was difficult to know what developers were planning, the nature of the bugs, or which chain the miners were supporting. Open communication in public channels about these issues could have been more helpful. In particular, many were unaware of an apparent plan developers and miners had to coordinate and recover lost funds sent to SegWit addresses. It may have been helpful if this plan was debated and discussed in the community more beforehand, as well as during the apparent deliberate and coordinated re-organisation. Assuming of course if there was time to disclose the latter. It may also be helpful if those involved disclose the details about these events after the fact.

The largest concern from all of this, in our view, is the deliberate and coordinated re-organisation. From one side of the argument, the funds were stolen, therefore the actions were justified in returning the funds to their “rightful owners”, even if it caused some short term disruption. However, the cash like transaction finality is seen by many, or perhaps by some, as the only unique characteristic of these blockchain systems. The ability to reverse transactions, and in this case economically significant transactions, undermines the whole premise of the system. Such behavior can remove incentives to appropriately secure funds and set a precedent or change expectations, making further reversals more likely.

For all those in the Bitcoin community who dislike Bitcoin Cash, this could be seen as an opportunity to laugh at the coin. However, although Bitcoin Cash has a much lower hashrate than Bitcoin, making this reversal easier, the success of this economically significant orchestrated transaction reversal on Bitcoin Cash is not positive news for Bitcoin in our view. In some ways, these incidents contribute to setting a dangerous precedent. It shows that it may be possible in Bitcoin. Alternatively, this could just illustrate the risks Bitcoin Cash faces while being the minority chain.

Source: BitMEX

Previous ArticleNext Article

CME Group Announces Launch of Euro-denominated Bitcoin and Ether Futures 7035

CME Group, the world’s leading derivatives marketplace, today launched Bitcoin Euro and Ether Euro futures.

“The launch of these new futures contracts builds on the strong growth and deep liquidity we have seen in our existing U.S. dollar-denominated Bitcoin and Ether futures contracts,” said Tim McCourt, Global Head of Equity and FX Products, CME Group. “Our new Bitcoin Euro and Ether Euro futures will provide institutional clients, both within and outside the U.S., with more precise and regulated tools to trade and hedge exposure to the two largest cryptocurrencies by market cap.”

Bitcoin Euro and Ether Euro futures contracts will be sized at five bitcoin and 50 ether per contract. These new contracts will be cash-settled, based on the CME CF Bitcoin-Euro Reference Rate and CME CF Ether-Euro Reference Rate, which serve as once-a-day reference rates of the euro-denominated price of bitcoin and ether.

These new futures contracts will be listed on and subject to the rules of CME.

For more information on this product, please visit https://www.cmegroup.com/cryptocurrencies#explore-our-cryptocurrency-products.

As the world’s leading derivatives marketplace, CME Group (www.cmegroup.com) enables clients to trade futures, options, cash and OTC markets, optimize portfolios, and analyze data – empowering market participants worldwide to efficiently manage risk and capture opportunities. CME Group exchanges offer the widest range of global benchmark products across all major asset classes based on interest rates, equity indexes, foreign exchange, energy, agricultural products and metals. The company offers futures and options on futures trading through the CME Globex® platform, fixed income trading via BrokerTec and foreign exchange trading on the EBS platform. In addition, it operates one of the world’s leading central counterparty clearing providers, CME Clearing.

Popular BTM Operator: Bitcoin of America Welcomes Shiba Inu Coin to Its Bitcoin ATMs 8284

Bitcoin of America has officially announced the newest addition to their Bitcoin ATMs (BTMs). Shiba Inu coin is now available at Bitcoin of America ATM locations. Bitcoin of America has more than 1800 BTMs across 31 states. They recognized the growing popularity of Shiba Inu and decided it was time to include it in their BTMs. Bitcoin of America also offers Bitcoin, Litecoin, and Ethereum options. This news comes after their recent addition of Dogecoin in March of this year.

Bitcoin of America is a popular virtual currency exchange registered as a money services business with the United States Department of Treasury (FinCEN)(RegNum). They are known for their top-of-the-line customer support while also providing a fast and hassle-free transaction.

Bitcoin of America makes it easy for everyday businesses to get their hands on a Bitcoin ATM and for customers to buy Bitcoin. They take care of their host locations by providing passive income, increased foot traffic, and marketing. They even handle customer support and any maintenance/installation services.

The popular operator has made many updates to its BTMs and services over the past year. They launched their universal kiosks, which operate as a traditional ATM combined with BTM functions. Bitcoin of America has created a point-of-sale system for their tablet program, which has allowed businesses to accept cryptocurrency as a new form of payment. Bitcoin of America is constantly expanding and improving its services.

Data Mynt Payment Processing Platform Now Supports Bitcoin Payments 8171

Data Mynt, a leading provider of simple, stable cryptocurrency payment products, now enables payments over the Bitcoin network, which already supports roughly 225,000 transactions per day and $30 billion USD dollar equivalent volume per day worldwide (as of publishing).

Data Mynt merchants and partners join the 15,000 retailers that accept Bitcoin today, making it the world’s most widely used digital asset for payments. Retailers include Twitter, Whole Foods and Overstock.com.

Now the Data Mynt payment processing platform enables payments from any wallet and asset across the $2 trillion combined market cap (as of publishing) available to make a payment over the Bitcoin, Ethereum Mainnet and Polygon networks.

The Data Mynt payment processing solution enables merchants and enterprises to expand their payment options for their customers and partners. At the same time, it reduces payment processing costs and eliminates frictions such as chargebacks and crypto price volatility.

“As a payment processor, it only makes sense for us to enable our merchants and partners to accept what the world already accepts—the biggest cryptocurrency,” noted Data Mynt CEO Alex Christian. “Almost one-quarter of the US population owns Bitcoin. Many other countries such as Brazil, Indonesia, UAE, Singapore, Israel, India, Mexico, and South Africa have even higher adoption rates. Data Mynt merchants can feel good knowing they offer these Bitcoin owners another payment option.”

The dedicated Data Mynt global sales team began rolling out its payment platform in Q1 of 2022.

About Data Mynt

Data Mynt is a leading crypto payment processor. Its wallet, asset and blockchain-agnostic suite of solutions offer partners and merchants an omnichannel approach to accepting on-chain crypto payments free from volatility and the risks and costs of traditional payment methods. The Data Mynt payment platform is also designed to streamline implementation delivering a seamless customer experience. DataMynt.com

Popular BTM Operator Bitcoin of America Wins Silver in 11th Annual Best in Biz Awards 10365

Bitcoin of America has been named a silver winner in the Company of the Year – Midwest category in Best in Biz Awards, the only independent business awards program judged each year by prominent editors and reporters from top-tier publications in North America. Bitcoin of America is a popular virtual currency exchange, registered as a money services business with the United States Department of Treasury (FinCEN)(RegNum). Apart from ensuring a fast and hassle-free transaction, their customer support makes them the best in the industry.

Bitcoin of America has demonstrated rapid growth. In June of this year, Bitcoin of America’s Chief Financial Officer reported record company growth. In January, the company had a total of 630 Bitcoin ATMs. To date, they have seen a 138.095% increase in their number of locations. They even hit a major achievement of 1500 plus BTMs. Bitcoin of America has also seen enormous growth in their number of employees. In just one year their team grew over 32 percent.

Bitcoin of America also added new products, services, and even updates to their BTMS. In May, they announced the launch of their new universal kiosk. The kiosk combines the capabilities of a traditional ATM with a Bitcoin ATM. The universal kiosk is known to offer 3 different functions. The first is the traditional ATM feature where customers can dispense cash from a debit card. The second function is being able to buy bitcoin or other cryptocurrencies with cash. The last is that customers can sell crypto in return for cash. This is huge for business owners. These universal kiosks are bringing stores additional revenue streams, while also saving floor space. They also announced that Ethereum would be available for customers to purchase from any of their locations.

Besides offering cryptocurrency services to customers, Bitcoin of America has helped hundreds of businesses across the United States. Bitcoin of America offers a host program for store owners who are interested in cryptocurrency or are just looking to earn extra income. They take care of their host locations by providing them with passive income, increased foot traffic, and marketing. They even handle customer support and any maintenance/installation services.

As Digital Currencies Gain Popularity, FPA and RIA Digital Assets Council Announce Education-Focused Partnership 26526

According to the RIA Digital Assets Council, 80% of financial advisers receive questions from clients about bitcoin, but only 8% can adequately explain digital assets. As cryptocurrency becomes more mainstream, now is the time for financial planners to build competency in this asset class. To support financial planners, the Financial Planning Association® (FPA®) and RIA Digital Assets Council (RIADAC), a digital assets educational source for financial planners, announced a strategic partnership to provide education on the application of blockchain and digital assets.

“I’m pleased FPA has this opportunity to work with RIADAC to build our members’ competency in digital assets, which will allow them to augment their knowledge and better serve clients,” says Patrick D. Mahoney, FPA chief executive officer. “As the leading membership association for CERTIFIED FINANCIAL PLANNER™ professionals, we need to be on the cutting edge of supporting our members as they look to sharpen their knowledge and build their competencies. This partnership with RIADAC is consistent with that objective.”

FPA and RIADAC will provide educational programming and a wide range of content to help FPA members understand the complexities of cryptocurriencies and provide expert advice on how this transformational asset class can impact their clients’ financial plans. As an FPA partner, RIADAC’s educational content and thought leadership will be available to FPA members through a variety of channels:

  • RIA Digital Assets Council Certificate in Blockchain and Digital Assets: FPA members will receive a 50% discount when enrolling in RIADAC’s certificate program that provides financial planners practical literacy on blockchain and digital assets and introduces available options for a firm’s investment management strategy. The inaugural class debuts on Apr. 30, 2021.
  • FPA Blockchain & Digital Assets Community: FPA members will engage with dynamic guests and thought leaders from RIADAC in virtual, interactive discussions and exchange ideas with peers in the FPA Connect Blockchain & Digital Assets community.
  • Journal of Financial Planning: RIADAC will regularly contribute thought leadership content to help financial planners understand blockchain and digital assets in FPA’s flagship publication, the Journal of Financial Planning.
  • FPA Annual ConferenceRic Edelman, founder of RIADAC, will present an informative session on blockchain and digital assets at the FPA Annual Conference in Columbus, OhioSept. 22-24, 2021.

“Gaining vital knowledge about this new asset class will help financial planners attract more clients and serve them better,” said RIADAC Founder Ric Edelman. “We’re honored to be partnering with FPA to help financial planners who are committed to serving their clients’ best interests.”

Ric Edelman is known and recognized throughout financial services and his work to bring blockchain and digital assets education and awareness to the financial advisory community is commendable. I am pleased FPA members will have this opportunity to learn from Ric and his team at RIADAC,” says 2021 FPA President Skip Schweiss, CFP®, AIF®.

Over the coming months, FPA and RIADAC will explore additional educational initiatives and thought leadership programs that can benefit FPA members, their clients and the broader financial planning community.

Bitcoin Association launches Introduction to Bitcoin Development online course at Bitcoin SV Academy 24930

Bitcoin Association, the Switzerland-based global industry organisation that works to advance business with the Bitcoin SV blockchain, today announces the official launch of the Introduction to Bitcoin Development course at Bitcoin SV Academy. The course is available free of charge and can be accessed from today at http://bitcoinsv.academy.

Introduction to Bitcoin Development is part of the Bitcoin Development stream of Bitcoin SV Academy and has been designed to equip application developers with the skills, tools and techniques required to build applications on the Bitcoin SV network. The course covers Bitcoin as a data protocol – including reading, writing and advanced functionalities with the Bitcoin ledger, payment protocols, token protocols and smart contracts. At the conclusion of the course, participants will be tested on their knowledge through an online examination, with a course certificate available upon successful completion for those who have demonstrated proficiency and understanding of the subject matter.

Bitcoin SV Academy is an online education platform for Bitcoin which offers academia-quality, university-style courses and learning materials in three distinct streams, Bitcoin Theory, Bitcoin Development and Bitcoin Infrastructure. Developed and run by Bitcoin Association, Bitcoin SV Academy has been created to make learning about Bitcoin – the way creator Satoshi Nakamoto designed it – accessible, accurate and understandable.

The launch of Introduction to Bitcoin Development today follows the successful rollout of Introduction to Bitcoin Theory – the first course to be launched on Bitcoin SV Academy – in December 2020. Later this year, the first module in the Bitcoin Infrastructure stream Introduction to Bitcoin Infrastructure is due to launch, followed by intermediate and advanced level courses across the three streams.