Data Availability
Data Availability in blockchain ensures that transaction and block data are accessible to all network participants, enabling verification and consensus.
What Is Data Availability?
Data availability is the guarantee that the full data of a block has actually been published, so that anyone can download it and check the block for themselves. A block header alone is not enough: if a block producer withholds the transactions behind it, nobody can tell whether the block is valid or what the current balances are.
On a blockchain such as Bitcoin or Ethereum, full nodes solve this by downloading every block; a block whose data is missing is not accepted. The question is harder for layer-2 networks. A rollup executes transactions elsewhere and must post enough data to a base layer for others to reconstruct its state. Ethereum offers dedicated, lower-cost space for this, known as blobs. Other designs post to a separate data availability network such as Celestia, or keep the data off-chain with a committee, an arrangement called a validium.
Data availability sampling lets light nodes fetch small random pieces of an erasure-coded block and conclude, with high probability, that the whole block is available without downloading it.
Keys on a hardware wallet prove ownership, but withdrawing from a layer 2 without the operator's cooperation also requires the data that shows the balance. Where that data is held by a small committee, the funds depend on that committee as well as on the keys.
Real-World Examples
Example 1: A rollup posts its compressed transaction batches to Ethereum as blobs. If the operator goes offline, the rollup's state can be rebuilt from that published data.
Example 2: A validium keeps its transaction data with a committee. Fees are lower, but if the committee withholds the data, users cannot prove their balances in order to exit, even though their keys are safe on a hardware wallet.
Example 3: A light node on a data availability network requests a handful of random chunks of a new block. All of them are returned, so the node treats the block as available.
Frequently Asked Questions
Why is a block header not enough to trust a block?
The header alone does not show the transactions behind it. If a block producer withholds that data, nobody can tell whether the block is valid or what the current balances are. On Bitcoin or Ethereum, full nodes download every block, and a block whose data is missing is not accepted.
How does a validium differ from a rollup in terms of data availability?
A rollup posts enough data to a base layer, on Ethereum often as blobs, for others to reconstruct its state if the operator goes offline. A validium keeps the data off-chain with a committee. Fees are lower, but if the committee withholds the data, users cannot prove their balances in order to exit.
Does a hardware wallet protect my layer-2 funds if the data is withheld?
Not on its own. The keys prove ownership, but withdrawing from a layer 2 without the operator's cooperation also requires the data that shows the balance. Where a small committee holds that data, the funds depend on that committee as well as on the keys kept on the device.
Ready to Choose a Secure Wallet?
Use our tools to find the right hardware wallet for your needs.