Доступность данных и Validiums
Изучите доступность данных, её роль в безопасности свёрток и компромисс между стоимостью и допущениями о доверии в Validiums и комитетах доступности данных.
«Доступность данных и Validiums» — бесплатный урок Blockchain Smart Contracts with Solidity на CoddyKit. Это урок 4 из 4. Ты можешь прочитать весь урок бесплатно ниже — а потом практиковать его прямо в браузере с встроенным редактором кода и ИИ-репетитором 24/7. Это часть пути обучения 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.
Изучай Blockchain Smart Contracts with Solidity с ИИ-репетитором — бесплатно
Пиши и запускай код прямо в браузере, получай мгновенную помощь от ИИ-репетитора 24/7 и продолжи учиться на сайте или в приложении.
- Курсы
- 12
- Уроки
- 48
Часто задаваемые вопросы
Урок «Доступность данных и Validiums» бесплатный?
Да — полный текст урока «Доступность данных и Validiums» бесплатно доступен здесь в веб-версии. Чтобы практиковать его интерактивно (встроенный редактор кода и ИИ-репетитор 24/7) и разблокировать остальной курс Blockchain Smart Contracts with Solidity, подпишись на CoddyKit PRO. Курс Blockchain Smart Contracts with Solidity содержит 4 уроков всего.
Чему я научусь в уроке «Доступность данных и Validiums»?
Изучите доступность данных, её роль в безопасности свёрток и компромисс между стоимостью и допущениями о доверии в Validiums и комитетах доступности данных. Ты практикуешь Blockchain Smart Contracts with Solidity с помощью реального кода, который запускаешь прямо в браузере, и ИИ-репетитор 24/7 отвечает на твои вопросы во время урока.
Нужен ли мне опыт, чтобы начать Blockchain Smart Contracts with Solidity?
Предыдущий опыт не требуется. Blockchain Smart Contracts with Solidity на CoddyKit структурирован для всех уровней — от новичков до продвинутых, поэтому ты можешь начать отсюда или с самого начала и учиться в своем темпе. Это урок 4 из 4.
Сколько времени занимает урок «Доступность данных и Validiums»?
Большинство уроков CoddyKit занимают около 5–10 минут. Каждый из них компактный и интерактивный, поэтому ты постоянно делаешь прогресс и продолжаешь с того же места в веб-версии и приложении.
Можно ли писать и запускать код в этом уроке Blockchain Smart Contracts with Solidity?
Да. Каждый урок Blockchain Smart Contracts with Solidity включает встроенный редактор кода, поэтому ты пишешь и запускаешь реальный код прямо в браузере и получаешь моментальную обратную связь от AI — локальная установка не требуется.
Все уроки этого курса
- Введение в решения масштабирования L2
- Оптимистичные и ZK-роллапы
- Межсетевое взаимодействие и мосты
- Доступность данных и Validiums