EIP-4844: Technical Deep Dive into Ethereum's Proto-Danksharding Proposal

·

Introduction: EIP-4844 represents the cornerstone of Ethereum's Dencun Upgrade, marking a pivotal advancement in Ethereum's decentralized scaling roadmap. With the Dencun Upgrade going live on Ethereum Mainnet, EIP-4844's implementation introduces transformative changes to Layer 2 economics.


A. Overview

EIP-4844 introduces blob-carrying transactions—a novel data storage mechanism using Binary Large Objects (blobs). This innovation:

Key characteristics:

👉 Explore how blobs revolutionize L2 economics


B. Historical Context

The Rollup Cost Dilemma

Current L2 solutions primarily expense comes from:

MetricData SourceCost Driver
Typical L2 TX feel2fees.info70-85% calldata
OP Mainnet cost splitDune Analytics92% L1 storage

Proto-Danksharding as Bridge Solution

While data sharding (16MB/slot dedicated space) remains the long-term scaling answer, EIP-4844 delivers immediate relief through:


C. Technical Architecture

1. Blob Data Structure

ByteVector[n] where n = FIELD_ELEMENTS_PER_BLOB × BYTES_PER_FIELD_ELEMENT

Components:

  1. Core payload: Actual L2 transaction batches
  2. Commitment scheme: KZG polynomial commitments for integrity verification

2. Transaction Format (EIP-2718 Compliant)

TransactionPayloadBody = [
  chain_id, nonce, max_priority_fee_per_gas, 
  max_fee_per_gas, gas_limit, to, value, 
  data, access_list, max_fee_per_blob_gas, 
  blob_versioned_hashes, y_parity, r, s
]

Key distinctions:

3. Dual Gas Market Mechanism

ParameterValueDescription
GAS_PER_BLOB131,072Gas units per blob
TARGET_BLOB_GAS_PER_BLOCK393,2163 blobs worth (0.375MB)
MAX_BLOB_GAS_PER_BLOCK786,4326 blobs capacity (0.75MB)
BLOB_BASE_FEE_UPDATE_FRACTION3,338,477Adjustment rate parameter

Fee calculation:

def get_blob_base_fee(excess_gas: int) -> int:
    return fake_exponential(
        MIN_BLOB_BASE_FEE,
        excess_gas,
        BLOB_BASE_FEE_UPDATE_FRACTION
    )

👉 Understand Ethereum's fee market evolution


D. Network Enhancements

Consensus Layer Changes

Execution Layer Validation

New checks include:

  1. Versioned hash prefix verification (VERSIONED_HASH_VERSION_KZG = 0x01)
  2. Blob count validation (len(blob_versioned_hashes) > 0)
  3. Cumulative blob gas accounting per block
// Pseudo-validation logic
assert block.header.blob_gas_used == sum(
    GAS_PER_BLOB * len(tx.blob_versioned_hashes) 
    for tx in block.transactions
)

E. Future Implications

The Sharding Roadmap

PhaseFeature SetThroughput
Proto-Danksharding0.75MB blobs, KZG commitments300-600 TPS (L2)
Full Danksharding16MB data shards, DAS implementation100,000+ TPS

Rollup Integration Patterns

  1. Optimistic Rollups:

    • Fraud proofs with partial blob loading
    • KZG proofs for step verification
  2. ZK Rollups:

    • Dual commitment scheme (blob + ZK)
    • Equivalence proofs via point evaluation

FAQ: EIP-4844 Explained

Q: How does blob storage differ from calldata?
A: Blobs provide temporary, high-capacity storage (~18 days) at ~90% lower cost than permanent calldata storage.

Q: What prevents blob spam attacks?
A: The self-adjusting blob base fee follows EIP-1559 mechanics—excess usage exponentially increases costs.

Q: When will full sharding replace this?
A: Estimated 2-3 years post-Dencun, requiring PBS (Proposer-Builder Separation) and DAS implementation.

Q: How do nodes handle blob data?
A: Nodes store blobs as sidecars for minimum 4096 epochs before optional pruning, while only storing commitments permanently.

Q: Why versioned hashes?
A: Enables future KZG scheme upgrades without breaking existing rollup contracts.


Conclusion

EIP-4844 delivers immediate L2 scaling benefits while strategically aligning with Ethereum's sharding roadmap. By introducing:

This upgrade catalyzes Ethereum's transition toward sustainable scalability without compromising decentralization. The Dencun Upgrade marks just the beginning—subsequent phases will further amplify throughput as the network matures.