Start investing in Bitcoin with Pix, in a few minutesSponsoredOpen free account
51% attack
Learn

51% attack: what it is, how it works and why it's so hard on bitcoin

The attack does not steal Bitcoins from wallets, but it can allow you to spend the same coin twice.

Image: Marko Ahtisaari, CC BY 2.0, via Wikimedia Commons

By Boletim Bitcoin newsroom

. 3 min reading.

In short: Understand the 51% attack: when a group controls most of the mining, what it can and cannot do, real cases in other currencies and why Bitcoin is the most expensive target.

In numbers

51%of mining power
6Confirmations used as a reference
2014Year in which the Ghash.io pool passed from 50%
2020Ethereum Classic suffers attacks

The attack does not steal Bitcoins from wallets, but it can allow you to spend the same coin twice.

What is a 51% attack

In Bitcoin, miners compete to add blocks to the blockchain, and the network follows the chain with the most accumulated work. A 51% attack It happens when a person or group controls more than half of the processing power (hashrate) and starts to produce blocks faster than the rest of the network. Understand the basis in bitcoin mining.

What the attacker can and cannot do

He canCan not
Spend your own coins twice, reversing a paymentStealing Bitcoins from other people's wallets
Prevent certain transactions from being confirmedCreate bitcoins beyond the rules or change the limit of 21 million
Rearrange recent blocksFake signatures

The most common blow is the double spending: The attacker deposits coins at a brokerage firm, exchanges it for something else, draws, and then publishes an alternative chain in which the deposit never took place.

Real cases

  • Bitcoin Gold (2018): It suffered a double spending that caused millions of dollars to damage brokerages.
  • Ethereum Classic (2019 and 2020): underwent deep reorganizations of the chain.
  • Bitcoin (2014): The Ghash.io pool has passed 50% of the hashrate for a short time. Miners left the pool and there was no attack.

The targets were smaller coins, where renting enough mining power is cheap, according to Wikipedia.

Why is it so hard on Bitcoin

Bitcoin has the highest hashrate among the proof of work coins. To attack it, it would be necessary to buy and connect a huge amount of machinery and energy, a cost of billions of dollars. And the attack would overturn confidence in the coin, devaluing precisely what the attacker invested. See the current size of the network in What is hashrate.

Why brokers expect confirmations: Each more block on a transaction makes the reversion exponentially more expensive. Six confirmations, about an hour, is the classic reference for high values.

And the mining pools?

Pools bring together thousands of miners, and sometimes two or three add up to more than half of the hashrate. But who decides where to point the machines is each miner, who can switch pools in minutes. Learn more at mining pool.

This content is informative and is not an investment recommendation. Cryptocurrencies are volatile and you can lose money.

Frequently asked questions

Has Bitcoin ever been attacked by 51%?

There is no record of 51% successful attack against Bitcoin.

Can a 51% attack steal my bitcoins?

No. It doesn't allow you to spend other people's coins, just reverse the attacker's own transactions and block transactions.

How much would it cost to attack Bitcoin?

Billions of dollars in machinery and energy, in addition to the risk of lowering the value of the currency.

How many confirmations should I expect?

For high values, six confirmations is the classic reference.

References

  1. Wikipedia: Double-spending
  2. Bitcoin.org: Whitepaper (Section 11, calculations)
  • 51% attack
  • mining
  • security
  • double spending
  • proof of work

This content is informative and is not an investment recommendation.

Read also

Start in crypto today

Open your free account, deposit with PIX and access Spot, Futures, Copy Trading and Trading Robots in one app.

  • Easy deposits
  • Copy trading
  • Grid and DCA bots
  • All-in-one app
Advertising. Crypto involves risk, invest responsibly.
Create free account