数据可用性与 Validium
探索数据可用性及其在汇总安全中的作用,并了解 Validium 和数据可用性委员会如何在成本与信任假设之间权衡。
数据可用性与 Validium 是 CoddyKit 上的免费 Blockchain Smart Contracts with Solidity 课时。 这是第 4 节课,共 4 节。 你可以在下方免费阅读本课时的完整内容 — 然后在浏览器中使用内置代码编辑器和全天候 AI 导师进行实践。 这是 Blockchain Smart Contracts with Solidity 学习路径的一部分,你的进度在网页和 CoddyKit 应用中同步。 Blockchain Smart Contracts with Solidity 课程共包含 4 节课。
本课时的部分内容尚未翻译,以英文显示。
Why Data Availability Matters
You have studied rollups and bridges. A subtler topic decides how secure a Layer 2 really is: data availability (DA). It is the guarantee that the data needed to reconstruct L2 state is actually published and retrievable.
The Core Question
Rollups post transaction data so anyone can verify or rebuild the chain. But where is that data stored, and can users trust it is available?
If data is withheld, users cannot prove their balances or exit, even if the computation was correct.
Rollups Post Data On-Chain
A standard rollup publishes compressed transaction data to Ethereum L1 as calldata or blobs. Because L1 stores it, DA is inherited from Ethereum's strong guarantees. This is the most secure but also the most expensive option.
The Cost of On-Chain Data
Posting data to L1 is the biggest cost component of a rollup. EIP-4844 introduced blobs, a cheaper, temporary data space, to reduce this. Still, some systems want even lower costs and move DA off-chain.
Enter Validiums
A Validium uses validity (ZK) proofs for correctness like a ZK-rollup, but keeps transaction data off-chain. Only the proof and state root go to L1. This slashes cost but introduces a data availability assumption.
The Validium Trade-off
Because data is off-chain, if the off-chain provider withholds it, users may be unable to compute their state to exit, even though the proofs guarantee no invalid state transition occurred.
- Funds cannot be stolen (proofs prevent that)
- But funds could be frozen if data is withheld
Data Availability Committees
Many Validiums rely on a Data Availability Committee (DAC): a set of known parties that sign attestations that they hold the data. Security depends on at least one honest committee member providing data on request.
Volitions: Best of Both
A Volition lets each user choose per transaction whether data goes on-chain (rollup mode, higher security, higher cost) or off-chain (Validium mode, lower cost). Users pick their trust-cost balance.
Data Availability Sampling
Newer DA layers use sampling: light nodes download small random pieces of the data. With erasure coding, if enough samples succeed, the full data is almost certainly available, without anyone downloading all of it.
Dedicated DA Layers
Projects like Celestia and EigenDA provide DA as a standalone service. Rollups post data there instead of Ethereum L1 to cut costs while keeping stronger guarantees than a small committee. This is the basis of many modular blockchain designs.
Choosing a DA Strategy
For high-value DeFi, full on-chain DA (true rollup) is safest. For high-throughput, low-value apps like gaming, Validiums or dedicated DA layers may be acceptable. Always understand who guarantees your data is available.
Quick Check
Test your understanding of data availability.
Recap
You learned about data availability:
- Rollups post data on-chain for strong DA at higher cost
- Validiums move data off-chain via committees, cheaper but with a DA assumption
- Volitions let users choose per transaction
- Sampling and dedicated DA layers offer modular tradeoffs
DA is a key dimension of Layer 2 security.
常见问题解答
「数据可用性与 Validium」课时是免费的吗?
是的 — 「数据可用性与 Validium」的完整文本可在网页上免费阅读。要进行交互式练习(内置代码编辑器和全天候 AI 导师)并解锁 Blockchain Smart Contracts with Solidity 课程的其余内容,请升级到 CoddyKit PRO。 Blockchain Smart Contracts with Solidity 课程共包含 4 节课。
「数据可用性与 Validium」这节课中我会学到什么?
探索数据可用性及其在汇总安全中的作用,并了解 Validium 和数据可用性委员会如何在成本与信任假设之间权衡。 你通过在浏览器中直接运行的动手代码来练习 Blockchain Smart Contracts with Solidity,全天候 AI 导师会在你学习这节课的过程中回答你的问题。
学习 Blockchain Smart Contracts with Solidity 需要有经验吗?
无需任何先前经验。CoddyKit 上的 Blockchain Smart Contracts with Solidity 课程适合初学者到高级学习者,你可以从这里开始或从头开始,按照自己的节奏学习。 这是第 4 节课,共 4 节。
「数据可用性与 Validium」课时需要多长时间?
大多数 CoddyKit 课程大约需要 5–10 分钟。每节课都很精短且互动,所以你能稳步进步,并在网页和应用中从离开的地方继续。
我能在这节 Blockchain Smart Contracts with Solidity 课中编写并运行代码吗?
能。每节 Blockchain Smart Contracts with Solidity 课都包含内置代码编辑器,你可以在浏览器中直接编写并运行真实代码,并获得即时 AI 反馈 — 无需本地设置。
此课程中的所有课时
- L2 扩容方案简介
- Optimistic Rollup 与 ZK Rollup
- 跨链通信与桥接
- 数据可用性与 Validium