r/btc • Redditor for less than 60 days • May 24 '19

BCH suffered a 51% attack by colluding miners to re-org the chain in order to reverse transactions - why is nobody talking about this? Dangerous precident

https://twitter.com/TheCryptoconomy/status/1131962447823278080
174 Upvotes

327 comments sorted by

148

u/m4ktub1st May 24 '19

It was talked a lot. The twitter thread points to several resources and r/btc also contains several discussion threads.

Long story short:

  • Miners (BTC.top, others?) decided to prevent the appropriation of segwit coins for which keys had been exposed in the BTC chain.

  • A smaller miner tried to collect all those coins.

  • Some person (either independently or in coordination with the miner) exploited a bug in Bitcoin ABC which prevented miners running Bitcoin ABC from creating new blocks.

  • The Bitcoin ABC team released a patch.

  • Miners upgraded and BTC.top proceeded with the plan.

  • An unknown miner mined a block appropriating many segwit coins.

  • Prohashing mined a block on top of the unknown miner.

  • BTC.top orphaned the two blocks.

  • Prohashing team complained.

  • Most discussion was about

    • The reality that the majority of the power uses Bitcoin ABC and the risk it represents.

    • If the person exploiting the bug was a gray or black hat working with the unknown miner.

    • If it was morally correct or not for a miner to take that action.

    • If enabling segwit recovery had been properly planned.

Bitcoin Cash is a minority chain. In theory the chain can be 51% attacked by most BTC pools. In practice it cannot. In this case I believe most saw BTC.top actions as honest and there is no such thing as a 51% attack by honest miners.

27

u/FTL_Ian May 24 '19

Is there somewhere I can go to learn about why "segwit coins" exist on the BCH blockchain, which is not supposed to be segwit? How did they get there and how can they be moved at all if there is no segwit? This is very confusing and surprising to me. Thank you.

40

u/[deleted] May 24 '19

There are no segwit coins on the BCH blockchain, but Segwit addresses are also valid BCH addresses so it is possible to send coins to them by mistake.

If everyone used the Cash Address format "bitcoincash:...." then this mistake could not happen, but lots of people still use the legacy address format.

19

u/m4ktub1st May 24 '19

^ this. When I used "segwit coins" I actually meant addresses meant to be used with segwit on Bitcoin but used, by mistake, on Bitcoin Cash.

0

u/[deleted] May 25 '19

[deleted]

2

u/sqrt7744 May 25 '19

You'd be amazed at the mistakes people make.

→ More replies (2)
→ More replies (14)

14

u/BriefCoat Redditor for less than 6 months May 24 '19

Tldr: Segwit transactions are transactions that (per bitcoin rules) do not require a signature to spend. You can make them on any Bitcoin chain, but only BTC ensures they are spent according to Segwit rules.

So if you send money on BTC, BTC will ensure only the recipient can spend. If you send it on BCH then anyone can pick up the money

11

u/cryptos4pz May 24 '19

Is there somewhere I can go to learn about why "segwit coins" exist on the BCH blockchain, which is not supposed to be segwit?

This article covers it: https://coinster.pro/content/35/yet-another-example-of-harm-money-lost-caused-by-lack-of-foresight-by-core-developers

→ More replies (38)

4

u/bill_mcgonigle May 25 '19

The trick that becomes apparent is that Core stopped using the Bitcoin rules (a chain of signatures) when they introduced the Segwit scheme, and it's only by having nodes and miners agree to use a different ruleset that abandons the signatures in the blocks that Segwit can work at all.

This is why the Cash community forked off - to remain valid Bitcoin. Large blocks were needed anyway, but they get too much attention as motivation.

The way it was shoehorned into Bitcoin left those funds spendable by anybody, except that miners wouldn't mine any such transactions by agreement.

Meanwhile the Cash nodes were effectively ignoring any accidental Segwit transactions on the Cash chain, which made those effectively lost coins . But with the May upgrade the Cash community agreed to stop ignoring them and to allow them to be processed as regular Bitcoin. Since they're marked as payable to anybody, effectively, people took the opportunity to go collecting all those Segwit payments.

That's where the current controversy begins.

As an aside, Segwit was originally pitched as necessary to solve the malleability problem, and Lightning needed non-malleable transactions so Segwit was sold as necessary for scaling, on Lightning. However, also with the May upgrade, the Cash version of Bitcoin solves the malleability problem (with Schnorr signatures) so Lightning could rebase to using Cash as its settlement layer, with Cash remaining valid Bitcoin back to the genesis block and Lightning becoming much faster, cheaper, and more useful.

I'm not a fan of Lightning personally but Bitcoin is permissionless so if they pay their mining fee they're welcome to utilize the chain.

→ More replies (1)

0

u/[deleted] May 24 '19

[deleted]

2

u/nolo_me May 25 '19

"Breaking consensus" is an interesting phrase, in context. Segwit-as-a-softfork happened because they wanted to sneak it in the back door when it didn't have consensus.

→ More replies (1)

10

u/optionsanarchist May 25 '19
    • If it was morally correct or not for a miner to take that action.

Let me answer this with a quote from a rather famous paper:

They vote with their CPU power, expressing their acceptance of valid blocks by working on extending them and rejecting invalid blocks by refusing to work on them

In other words, thanks go out to the GOOD miners who rejected invalid blocks (they seemed to opine that theft constitutes an invalid transaction).

Miners are free to extend whatever chain they want. It's their hashing power.

23

u/imaginary_username May 24 '19

Additionally, the only party that "lost" coins is the malicious miner; arguing that it's a "51% attack" is as asinine as arguing that whenever a block got orphaned, its block reward was "51% attacked".

There's free coins on the ground, a miner tried to swipe it, got owned because he didn't pack enough gear. Deal with it.

0

u/[deleted] May 24 '19

[deleted]

8

u/m4ktub1st May 24 '19

Can you point me why?

0

u/[deleted] May 24 '19

[deleted]

4

u/you-schau May 25 '19

Clearly the dishonest miner her was btc.top by reversing valid transactions according to consensus. So it is a 51% attack even if the outcome is the "morally right thing".

6

u/michalpk May 24 '19

Definition of honest miner can be wastly different depending on people writing that definition. CSW believes honest miners mine BSV.

8

u/m4ktub1st May 24 '19

Obviously "honest" is a subjective criteria but I was making a reference to bitcoin's security model

secure as long as honest nodes collectively control more CPU power

and juxtaposing the words "attack" and "honest". In that sense, typically if people describe an action as an attack then hey won't say, at the same time, the miner is honest (eg. SW2X-signaling and BCH/BSV split).

I still don't see why you say it's a narrow way of thinking or why would it lead to the loss of coins. But maybe it's mostly a pedantic discussion.

0

u/[deleted] May 24 '19

[deleted]

4

u/m4ktub1st May 25 '19

Allowing miners to re-org

Like if I could stop them. They do it and I call it an attack or a defense. I won't say honest miners attack or that dishonest miners defend. Calling honest or dishonest, to miners, speaks nothing about them, their actions, or their intentions. It only speaks about my judgment of their actions.

If you see me write "a miner is honest" please read "I believe this particular action by this miner adds value to the network".

Literally 2 people just got together and changed the BCH chain.

Literally.

Tell me what stops them

The same that motivates them: self-interest.

...

What actually don't know what you're arguing about. At the end of the day the way you punish or reward the behavior of miners is by selling or buying coins. I believe the alternative to what happened would be worse so I'm buying.

→ More replies (1)
→ More replies (2)

2

u/liquidify May 24 '19

I think the only reasonable definition of honest that should be accepted is doing something that is in those miners belief good for bitcoin. If a miner believes what they are doing is beneficial to bitcoin, then they are honest, even if you disagree with that. Being selfish as a miner is generally good for bitcoin, as are many other things that might be considered human nature.

Dishonest vs honest is pretty tough to define.

2

u/nolo_me May 25 '19

Other people believe the earth is flat or vaccines cause autism. We don't take them into account when launching GPS satellites or writing medical textbooks.

→ More replies (7)
→ More replies (3)
→ More replies (1)

5

u/t9b May 24 '19

Absolutely spot on. In fact although alleged collusion between miners may have occurred, it should be remembered that on at least two occasions in the past it has been necessary for collusion to happen in order to save BTC as well. The first was the very early fork in 2012 I think, which was solved in about 30 mins by miners getting together and more recently by developers fixing BlueMatt’s code cock-up that could have allowed the 21M limit to have been broken. Collusion by the community for the sake of honesty is exactly what Bitcoin was designed to show is possible. Great to see it working so well on BCH.

→ More replies (22)