EIP-7594 · Final · Core · 2024-01-12
EIP-7594: PeerDAS - Peer Data Availability Sampling
PeerDAS lets each consensus node download only a slice of every block's blob data while still being confident all of it was published, so Ethereum can raise blob capacity for rollups without raising per-node bandwidth.
What problem does it solve?
EIP-4844 gave rollups cheap "blob" space, but every node had to download every blob to check it was actually published. That makes blob capacity bounded by what a modest home node can download, and data availability is the main bottleneck for rollups.
Data availability sampling (DAS) breaks that link. If data is erasure-coded, a node only needs to fetch a few random pieces to be statistically sure the whole thing is retrievable. PeerDAS is a practical DAS design built on the existing peer-to-peer network.
How it works
- Extend each blob. Each blob is erasure-coded in one dimension to twice its size. The extended blob is a row, split into cells, the smallest pieces that can be proven against the blob's KZG commitment.
- Columns. Taking the same cell index from every blob in a block gives a column. Each column has its own gossip subnet.
- Custody. Every node custodies a deterministic set of columns derived from its node ID. Nodes running validators custody more, scaling with how many validators they run, which strengthens the network backbone. Nodes may voluntarily custody more.
- Sampling. Each slot a node samples columns from its peers. With the current parameters this is about 1/8 of the block's blob data, and it can shrink in future by using more, smaller columns.
- Reconstruction. Anyone holding at least 50 % of the columns can rebuild the full data and re-serve missing columns.
- Columns rather than rows are sampled because the row extension can be computed ahead of time from the mempool, off the block-building critical path.
On the execution side, computing cell proofs is expensive, so blob transaction senders now compute them. The mempool wrapper changes from 4844's per-blob proofs to a versioned list of cell proofs, and nodes batch-verify them. The EIP also caps a single transaction at 6 blobs.
Sample code
The new network wrapper for blob transactions in PooledTransactions responses (RLP):
rlp([tx_payload_body, wrapper_version, blobs, commitments, cell_proofs])
wrapper_version = 1
cell_proofs = [proof for every cell of every *extended* blob]
# len == CELLS_PER_EXT_BLOB * len(blobs)
# cell_proofs[i * CELLS_PER_EXT_BLOB + j] proves cell j of compute_cells(blobs[i])
Validation a node performs (pseudocode):
assert len(tx.blob_versioned_hashes) == len(blobs) == len(commitments)
assert len(cell_proofs) == CELLS_PER_EXT_BLOB * len(blobs)
for i, c in enumerate(commitments):
assert kzg_to_versioned_hash(c) == tx.blob_versioned_hashes[i]
cells = [compute_cells(b) for b in blobs] # blobs travel un-extended
assert verify_cell_kzg_proof_batch(commitments_per_cell, cell_indices, flat(cells), cell_proofs)
Things to know
- Status is Final; PeerDAS shipped with the Fusaka network upgrade. Most of the detail lives in the consensus specs (the
fulufolder), not in the EIP text. - Wallets and libraries that build blob transactions must now produce cell proofs and the version-1 wrapper.
- The 6-blob-per-transaction cap is enforced at submission, gossip and block processing.
- The security argument is probabilistic. The spec computes that, with about 10,000 nodes, fooling even 2 % of them about withheld data has a negligible probability.
- Blob counts can be raised later via "blob parameter only" forks (EIP-7892) as PeerDAS proves itself.