HomeEtherumAvoiding Disaster: Tackling Ethereum State Issues

Avoiding Disaster: Tackling Ethereum State Issues

Published on

Official Disclosure of Severe Threat Against Ethereum Platform

In this blog post, we aim to officially disclose a severe threat that posed a clear and present danger to the Ethereum platform until the Berlin hardfork.

Ethereum and State

The Ethereum state consists of a patricia-merkle trie, a prefix-tree. As the state grows, the branches in this tree become more dense. Each added account is another leaf, and between the root of the tree and the leaf, there are intermediate nodes. To look up a specific account in this tree, multiple hashes need to be resolved, resulting in multiple database lookups. The number of disk operations is difficult to estimate but can be significant.

The Problem

In March 2019, an investigation into EVM opcode performance led to the creation of EIP-1884. Subsequently, an exploit utilizing random trie lookups was discovered. Although EIP 1884 had some impact in reducing the effects of the attack, it was not sufficient. This posed a significant threat to the Ethereum platform.

The Solution

To address the problem, a two-pronged approach was taken. Firstly, work was done on the Ethereum protocol to solve the issue at the protocol layer without breaking contracts or penalizing legitimate behavior. This led to the development of EIP 2929 and EIP 2930, which effectively solved many of the issues.

Secondly, changes were made to the data models and structures within the client software through the implementation of dynamic state snapshots. This allowed for faster state accesses and provided additional benefits such as offline-pruning of the state trie.

Conclusion

The severe threat against the Ethereum platform was addressed through a combination of protocol improvements and software engineering. The implementation of EIP 2929 and EIP 2930, along with the introduction of dynamic state snapshots, has significantly mitigated the risk posed by the exploit. Users and developers can now have greater confidence in the security and stability of the Ethereum platform.

Latest articles

Analyst Suggests Ethereum Price Could Surge to $3,100 with Bullish Momentum

Ethereum (ETH), the second-largest cryptocurrency, has seen a significant price increase over the past...

Cboe Digital Announces Plan to Introduce Margin Futures Trading for Bitcoin and Ethereum by 2024

On Nov. 13, Cboe Digital announced that it will soon launch trading and clearing...

Top Trader Predicts Significant Price Increases for Sushi and Apecoin – Check Out His Projections

A crypto strategist says more rallies are up ahead for prominent decentralized exchange (DEX)...

What is the difference between NVMe and M.2?

`` Over the last decade, solid-state drives (SSDs) have become the top choice for many...

More like this

Analyst Suggests Ethereum Price Could Surge to $3,100 with Bullish Momentum

Ethereum (ETH), the second-largest cryptocurrency, has seen a significant price increase over the past...

Cboe Digital Announces Plan to Introduce Margin Futures Trading for Bitcoin and Ethereum by 2024

On Nov. 13, Cboe Digital announced that it will soon launch trading and clearing...

Top Trader Predicts Significant Price Increases for Sushi and Apecoin – Check Out His Projections

A crypto strategist says more rallies are up ahead for prominent decentralized exchange (DEX)...
bitcoin
Bitcoin (BTC) $ 61,849.57 0.23%
ethereum
Ethereum (ETH) $ 3,409.56 0.36%
tether
Tether (USDT) $ 1.00 0.08%
bnb
BNB (BNB) $ 409.29 0.16%
solana
Solana (SOL) $ 127.62 1.87%
xrp
XRP (XRP) $ 0.619329 2.21%
staked-ether
Lido Staked Ether (STETH) $ 3,404.86 0.36%
usd-coin
USDC (USDC) $ 1.00 0.16%
cardano
Cardano (ADA) $ 0.729025 2.13%
dogecoin
Dogecoin (DOGE) $ 0.134148 7.46%