Mar 20, 2024

Ethereum's ‘Dencun’ - Blobs, Transient Storage, Block Root and Web3 Security

Ethereum Dencun Upgrade - Smart Contracts with New Capabilities: Blobs, Transient Storage, Beacon Block Root and What They Mean for Web3 Security

Ethereum Dencun Upgrade
Ethereum Dencun Upgrade
Ethereum Dencun Upgrade

In the ever-evolving landscape of blockchain and smart contracts, Ethereum's latest upgrade ‘Dencun’ represents a significant leap forward. Here is Audita’s take on Dencun:

‘Dencun’ is a blend of two smaller upgrades, Cancun and Deneb.

For Ethereum users, Dencun is a milestone that promises to enhance the network's functionality, reduce transaction costs, and pave the way for new possibilities in dApps. At the heart of this upgrade are several pivotal Ethereum Improvement Proposals (EIPs) that are set to redefine the Ethereum ecosystem:


Shard Blob Transactions (EIP-4844) 

EIP-4844, often referred to as "proto-danksharding," is a groundbreaking proposal aimed at significantly lowering the cost of data on the Ethereum network. By introducing a new type of transaction called "blob transactions," this EIP allows for large amounts of data to be included in blocks without being processed by the Ethereum Virtual Machine (EVM), thus not consuming valuable block space that could be used for executing transactions. This approach is particularly beneficial for layer 2 scaling solutions, which rely on posting data to the Ethereum blockchain to secure their operations. 

For end users, the implication is clear: faster transaction speeds and reduced fees, especially for activities involving complex smart contracts or decentralized finance (DeFi) protocols.


Transient Storage (EIP-1153)

EIP-1153 introduces a novel concept called "transient storage" to the Ethereum blockchain. This proposal allows smart contracts to use temporary storage that is wiped clean at the end of a transaction. This mechanism is designed to reduce the costs associated with smart contract execution by offering a more efficient way to handle intermediate states during computations. For developers, this means enhanced flexibility in designing smart contracts, leading to more sophisticated and resource-efficient dApps. 


An important part of transient storage implementation is its usage by anticipated Uniswap V4. Uniswap V4 plans to leverage transient storage to enable flash accounting. Flash accounting would transfer only on net balances, that is - will provide information about the results of all swaps that have happened in a period of time, hence reducing gas costs even further.

For users, the benefits manifest as lower transaction fees and quicker execution times, making the Ethereum ecosystem more accessible and user-friendly.


Alter the Validator Churn Limit (EIP-7514)

EIP-7514 represents a crucial adjustment to Ethereum's validator churn limit, marking a strategic move to maintain the network's robustness and scalability.

By capping the per-epoch churn limit at 8, this proposal shifts Ethereum's validator growth rate from an exponential trajectory to a linear one. In the Ethereum ecosystem, the churn limit signifies the maximum number of validators that can be added to or removed from the active validator set every epoch (approximately every 6.4 minutes). Historically, this limit has been variable, starting at a minimum of four and increasing with the validator population. 

The introduction of a capped churn limit aims to mitigate potential risks associated with rapid validator set expansion, such as state-size bloat and the operational strain on nodes required to monitor an ever-growing list of peers.

This forward-thinking approach, prompted by testnet simulations revealing difficulties in client software performance beyond 2 million validators, ensures the network remains sustainable and efficient as it scales. While the mainnet's active validator count stood at around 800,000 at the time of the proposal's inclusion, the measure primarily addresses the rate of increase rather than the absolute number, safeguarding the network against unforeseen market fluctuations.


Beacon Block Root in the EVM (EIP-4788)

EIP-4788 bridges the gap between the Ethereum mainnet and the Beacon Chain by making the Beacon Chain's block root accessible within the EVM. This integration facilitates a new realm of possibilities for dApp developers, including more seamless interactions between Ethereum and its proof-of-stake consensus layer. By enabling smart contracts to verify data from the Beacon Chain directly, EIP-4788 opens the door to innovative applications that leverage the security and decentralization of the consensus layer.

For end users, this means a richer ecosystem of applications and services that can operate with greater trust and efficiency.


Smart Contract Audits: What These Improvements Mean for Web3 Security

By optimizing the way data is stored, processed, and validated on the Ethereum network, these improvements inherently bolster security measures against a wide array of vulnerabilities and threats. 

Our experts at Audita have been around long enough to know that the only constant is change. History shows that each change is accompanied by some challenges. We’re eager to research and develop safety nets for new vulnerabilities arising as a result of these upgrades. 

EIP-4844's introduction of shard blob transactions, for example, reduces the network's congestion and, by extension, its susceptibility to spam and DoS attacks, making it more resilient against efforts to destabilize the network.

Similarly, EIP-1153's transient storage opcodes enhance smart contract execution efficiency, reducing the attack surface for exploits that leverage contract complexity and state manipulation. EIP-4788's integration of the Beacon Chain within the EVM introduces new possibilities for leveraging proof-of-stake consensus mechanisms to secure smart contracts. 

Moreover, EIP-7514's cap on validator churn directly impacts the network's stability and security by preventing rapid, uncontrolled growth in the number of validators, which could otherwise lead to vulnerabilities in network consensus and governance. By ensuring a manageable growth rate, Ethereum can maintain a more secure and resilient network, critical for supporting secure transactions and applications on the Web3.


Looking Ahead: A Brighter Future for Ethereum Smart Contracts

By addressing critical aspects of scalability, Dencun sets the stage for a new era of blockchain technology where the full potential of decentralized applications can be realized. For users, the upgrade creates a future where engaging with the Ethereum network is more affordable, faster, and more versatile than ever before. 

As Ethereum continues to evolve, the Dencun upgrade serves as a reminder of the blockchain's ability to adapt and improve. With these new EIPs, Ethereum not only strengthens its foundation but also reaffirms its position as a leading platform for decentralization.

The road ahead is bright, and for Ethereum and its users, the possibilities are boundless.

Looking to audit? Get in touch with Audita's team today!

Stay SAFU
Audita's Team

Tell us about your project

Tell us about your project

Tell us about your project

Blog

More from Audita

Our take on Web3 security

Our CLIENTS

Testimonials