Long-range attack
A long-range attack takes advantage of the longest chain rule. Whichever of two chains is the longest is accepted by other nodes
The attacker builds a fake version of the chain from a block where they have some stake. When they are selected to create a block, they build one. When someone else is selected, they skip that block
Over time, the attacker's block rewards give them a controlling stake on the chain. This allows it to grow quickly enough to eventually overtake the main chain
Key points
Long-Range Attack: A long-range attack is a type of attack that takes advantage of the longest chain rule in a blockchain. The attacker aims to create a longer chain where they control all the stake.
Building a Divergent Blockchain: To perform a long-range attack, the attacker starts by building a divergent blockchain right away. They create a malicious chain alongside the main chain.
Actions on the Malicious Chain: On the malicious chain, if the attacker is selected to create a block, they build a legitimate block and add it to their chain. If they are not selected, they don't create a block.
Actions on the Main Chain: On the main chain, the attacker deliberately skips their opportunity to create a block. This is because every block they create on the main chain is one more block they have to catch up with later.
Growing the Malicious Chain: The goal of the attack is to continuously reinvest the block rewards on the malicious chain, increasing the attacker's stake percentage. Over time, the attacker aims to overtake the main chain.
Overtaking the Main Chain: Through continuous block creation and stake reinvestment, the attacker eventually reaches a point where they control all the stake in their malicious chain. They can then overtake the main chain and become the longest chain.
Time and Feasibility: The time it takes to perform a long-range attack depends on the percentage of staked resources the attacker controls at the beginning. If they control a significant portion, the attack can be executed more quickly.
Last updated