What is a 51% attack, and how would it affect Monero?
A 51% attack is often cited as a theoretical threat to proof-of-work systems. Here is how it impacts a network like Monero.
Quick Answer
A 51% attack occurs when a single entity gains control of more than half of the network's hashrate. This allows them to influence which transactions are confirmed, potentially excluding or censoring certain transactions and enabling double-spends. However, they cannot change consensus rules or steal funds from other users, as the private keys remain secure and the rules are enforced by honest nodes.
What an Attacker Cannot Do
An attacker with 51% of the hashrate can reorder transactions or prevent specific ones from being included. They cannot, however, steal other people's funds, as they do not possess the private keys. Furthermore, they cannot force the network to accept invalid blocks, such as creating new coins, because honest nodes would reject them immediately.
Resilience through RandomX
Monero uses the RandomX algorithm to remain ASIC-resistant, meaning that hashing power is distributed among thousands of participants using consumer hardware. This high degree of decentralization makes it significantly more expensive and difficult for any single attacker to acquire a majority of the hashrate compared to networks dominated by large-scale mining farms.
Sources
Related reading
Key takeaways
- A 51% attack can delay or censor transactions.
- Attackers cannot steal funds or alter protocol consensus rules.
- ASIC-resistance increases the difficulty of performing such an attack.
