51% Attack

A 51% attack happens when a single participant or group gains more than half of a Proof of Work network's computing power, or of the stake in Proof of Stake, and can rewrite recent block history, reversing their own payments and blocking those of others.

How the attack works

In a Proof of Work network, the valid chain is the one with the most computational work behind it. An attacker with majority power can secretly build a separate chain in parallel with the main one. For example, the attacker sends coins to an exchange, waits for them to be credited, swaps them for other assets and withdraws, then publishes the private, longer chain in which the original transfer never happened. The network switches to it, and the coins return to the attacker: that is a double spend. The more confirmations the recipient waits for, the longer the attacker must hold the advantage.

What an attacker can and cannot do

With a majority, an attacker can reverse their own recent transactions, leave other people's transactions out of blocks and so censor particular users, and collect all the block rewards. But they cannot steal coins from someone else's address without the key, create more coins than the rules allow or change the rules themselves: honest nodes will reject such blocks. Rewriting old history is also practically impossible, as it would mean redoing an enormous amount of work.

Real cases

Attacking a large network is extremely expensive: for bitcoin it would take hardware and electricity on the scale of the whole industry. Smaller Proof of Work networks, however, have been attacked. Ethereum Classic suffered several 51% attacks in 2019 and 2020, and Bitcoin Gold in 2018; the attackers carried out double spends on exchanges. Networks that share an algorithm with larger ones are especially vulnerable, because computing power can be rented or redirected for a while. In Proof of Stake networks, an attacker would need to acquire a huge share of the stake, which the network penalises for misbehaviour.

What it means for users

Exchanges protect themselves by requiring more confirmations for coins on small networks, so deposits of such coins can take hours. When accepting a large payment in an obscure coin, it is sensible to wait for many confirmations. News of an attack usually hits the coin's price and trust in the network. Before buying a small coin, it helps to know how widely its mining or staking is distributed. This is not investment advice.

Example

A small Proof of Work network has a hypothetical 100 units of power. An attacker rents 120 units for a day at a cost of $20,000. The attacker deposits $200,000 worth of coins on an exchange, which waits for 30 confirmations and credits them, then sells the coins for USDT and withdraws. Next, the attacker publishes a longer chain without the original deposit: the coins are back with the attacker, and the exchange loses $200,000. That is why exchanges raise confirmation requirements for such networks.

Related terms

Double SpendingProof of WorkHashrateBlockchain ConsensusDecentralisationTransaction Confirmations

On the site

CryptocurrenciesHow to buy cryptoBitcoin Price PredictionCrypto market Monopoly

This article was written by AI. Check specific rates, taxes and broker terms with primary sources.

↑ Top