What would it take to do DAS with inner product arguments (IPAs)?

Vitalik ButerinОпубліковано о 2022-02-22Востаннє оновлено о 2022-02-22

Анотація

Data availability sampling (DA-sampling or DAS) today is planned to be done with KZG commitments.

Data availability sampling (DA-sampling or DAS) today is planned to be done with KZG commitments. KZG commitments have the advantage that they are very easy to work with, and have some really nice algebraic properties:

The first is a nice efficiency guarantee. The second ensures that producing a blob that can be DA-sampled is easy: if it takes O(N2) time to generate all proofs, then it would require either highly centralized actors or a complicated distributed algorithm to make it DAS-ready.

The third and the fourth are very valuable for 2D sampling, and enabling distributed block producers and efficient self-healing:

A block producer only needs to know the original M commitments to “extend the columns” with an FFT-over-the-curve and generate 2M commitments that are on the same deg<M polynomial.

You can do not only per-row reconstruction but also per-column reconstruction: if some values and proofs on a column are missing (but more than half are still available), you can do an FFT to recover the missing values and proofs.

However, KZG has a weakness: it relies on complicated pairing cryptography, and on a trusted setup. Pairings have been understood for over 20 years, and the trusted setup is a 1-of-N trust assumption with N being hundreds of participants, so the risk in practice is high and this author believes that proceeding with KZG is perfectly acceptable. However, it is worth asking the question: if we don’t want to pay the costs of KZG, can we use inner product arguments (IPAs) instead?

IPAs have the following properties:

  1. An evaluation proof has logarithmic size and can be verified in linear time (roughly 40ms for a size-4096 polynomial)
  2. There is no known efficient multi-proof generation algorithm.
  3. Commitments are elliptic curve points and you can linearly combine them just like KZG commitments
  4. There is no known way to linearly combine proofs.

Hence, we keep some properties and we lose some. In fact, we lose enough that our “current approach” to generating, distributing and self-healing proofs is no longer possible. This post describes an alternative approach that, while somewhat more clunky, still achieves the goals.

An alternative approach

First, instead of generating 2N independent proofs for a deg<N polynoial, we generate a proof tree. This looks as follows:

Blue: chunk 3, yellow: proof for chunk 3.

Note that to improve efficiency, each chunk does not need to be a single evaluation; instead, we can crop the tree so that eg. a chunk is a set of 16 evaluations. Given the combined size of the proofs will be larger than this regardless, we lose little from making chunks larger like this.

Generating these proofs takes O(N∗log(N)) time. Verifying a proof takes O(N) time, but note that verification of many proofs can be batched: the O(N) step of verifying an IPA is an elliptic curve linear combination, and we can check many of these with a random linear combination. O(N) field operations per proof would still be required, but this takes <1 ms.

Extension: fanout greater than 2

Instead of having a fanout of 2 at each step, we can have a higher fanout, eg. 8. Instead of one proof per commitment, we would have 7 proofs per commitment. At the bottom level, for example, we would have a proof of {1,2,3,4,5,6,7} , {0,2,3,4,5,6,7} , {0,1,3,4,5,6,7} , etc. This increases total proof generation effort by ≈(7∗7/4)/3 x (7 proofs per node, each proof 1.75x the size of the original, but 3x fewer layers, so ~4.08x more effort total), but it reduces proof size by 3x.

Proof size numbers

Suppose that we are dealing with N=128 chunks of size 32 (so we have deg<4096 polynomials), and a fanout of (4x, 4x, 8x). A single branch proof would consist of 3 IPAs, of total size 2∗(7+9+12)=56 curve points (~1792 bytes) plus 512 bytes for the chunk. This compares to 48 byte proofs for a 256 byte or 512 byte chunk today.

Generating the proofs would require a total of 2∗8192∗(3∗2+7) curve multiplications (3 * 2 for the two fanout-4 layers and 7 for the fanout-8 layer), or a total of ~212992 multiplications. Hence, this would require either a powerful computer to do quickly (a regular computer can do one multiplication in ~50 us, so this would take 10 seconds which is a little too long) or a distributed process where different nodes focus on generating proofs for different chunks.

Verifying the proofs is easy, as proof verification can be batched and only a single elliptic curve multiplication done. Hence, it should not be much slower than with KZG proofs.

Self-healing

Self-healing could not effectively be done column-by-column. But can we avoid requiring a single healer to have all of the data (all 2N chunks from each of all 2M polynomials)?

Suppose that a single row is entirely missing. It’s easy to use any column to reconstruct the value in the missing row in that column. But how to prove it?

The simplest technique is cryptoeconomic: anyone can simply post a bond claiming a value, and someone can later take that claim together with a branch proof proving a different value to slash that validator. As long as enough legitimate claims are available, someone on that row subnet can combine together the claims and reconstruct the commitment and the proofs. Validators could even be required to publish such claims for sample indices that they are assigned to.

A cryptoeconomics-free but more technically complicated and slow alternative is to pass along M branch proofs for values along that column, along with a Halo-style proof that the proofs verify correctly.

Пов'язані матеріали

Why Not Short Even When Bearish? Munger Did the Math on a 'Losing Trade'

Why Not Short Even When Bearish? Charlie Munger's Calculated "Loss-Making Account" Many traders, drawn to speculative tools like futures contracts, often face repeated failures. As the article notes, unless one is a genius, such instruments should be avoided for long-term profit-seeking. Similarly, the practice of short selling is viewed with caution. The author firmly states a policy of not shorting, even when bearish, preferring to simply wait. The core reason? Successful short selling requires exceptionally difficult conditions to profit. Legendary investors Warren Buffett and Charlie Munger have themselves reflected on painful short-selling experiences. Munger highlights two critical flaws in the mathematical logic of shorting: 1. Asymmetrical Risk/Reward: A long position has a maximum loss of 100% but unlimited upside. A short position caps profit at 100% (if a stock falls to zero) but carries theoretically unlimited loss potential. 2. The "Promoter" Problem: Fraudulent or struggling companies can prolong their decline. As Munger said, "You can run out of money before the promoter runs out of ideas," meaning short sellers may be forced to cover positions at a loss before the company's true fate unfolds. The article cites Stanley Druckenmiller, a famed hedge fund manager. He once shorted 12 companies that all eventually went bankrupt. However, intense market rallies forced him to cover his positions within three weeks, resulting in massive losses—$200 million of his capital plus an additional $600 million. He concluded he likely never made money shorting in his career. His experience perfectly illustrates Munger's points: facing unlimited losses and being wiped out before being proven right. The conclusion is clear: for most investors, complex instruments like short selling and derivatives are not viable paths to stable, long-term gains. Self-reflection is advised before repeatedly wasting time and capital on such speculative strategies.

marsbit28 хв тому

Why Not Short Even When Bearish? Munger Did the Math on a 'Losing Trade'

marsbit28 хв тому

For Hedging, Buy Gold and Oil; For Explosive Growth, Buy AI; Bitcoin, the 'Outdated' Asset, Enters a Bear Market

Bitcoin’s price has recently fallen sharply, hitting a two-month low near $66,000, with Ethereum also dropping to a three-month low. While surface explanations point to ETF outflows, geopolitical tensions, and corporate selling, a deeper issue is emerging: Bitcoin is losing a crucial asset competition. For years, Bitcoin thrived in a low-rate environment where investors sought alternatives amid inflation fears and dissatisfaction with traditional options. Now, the market landscape has shifted, leaving Bitcoin stuck in an "awkward middle ground," facing challenges on three fronts: 1. **As an inflation hedge, gold is winning.** Investors worried about persistent inflation are turning to tangible assets like gold, energy stocks, and commodity producers, which offer more direct pricing power and physical backing. 2. **For growth exposure, AI is winning.** Those seeking high growth now favor AI-related companies with actual revenues and profits, an area where Bitcoin's lack of cash flow puts it at a disadvantage. 3. **Within crypto, infrastructure and stablecoins are winning.** Even investors wanting crypto exposure have alternatives like exchanges, stablecoin issuers, and tokenization firms, whose performance is directly tied to real-world adoption and offers clearer operational leverage. The recent market reaction to inflation warnings highlights this shift. Instead of boosting Bitcoin as "digital gold," such news now drives flows toward traditional inflation-sensitive assets. Therefore, recent events like ETF outflows and corporate selling are seen not as causes, but as symptoms of this new reality. Capital has more compelling options, and investors are becoming more selective. The emerging bear case for Bitcoin is no longer about it being a fraud or failed technology, but rather that **scarcity alone is no longer enough**. It is no longer seen as the best hedge, the best growth asset, or the only crypto play.

marsbit44 хв тому

For Hedging, Buy Gold and Oil; For Explosive Growth, Buy AI; Bitcoin, the 'Outdated' Asset, Enters a Bear Market

marsbit44 хв тому

Торгівля

Спот
Ф'ючерси

Популярні статті

Як купити ETC

Ласкаво просимо до HTX.com! Ми зробили покупку Ethereum Classic (ETC) простою та зручною. Дотримуйтесь нашої покрокової інструкції, щоб розпочати свою криптовалютну подорож.Крок 1: Створіть обліковий запис на HTXВикористовуйте свою електронну пошту або номер телефону, щоб зареєструвати обліковий запис на HTX безплатно. Пройдіть безпроблемну реєстрацію й отримайте доступ до всіх функцій.ЗареєструватисьКрок 2: Перейдіть до розділу Купити крипту і виберіть спосіб оплатиКредитна/дебетова картка: використовуйте вашу картку Visa або Mastercard, щоб миттєво купити Ethereum Classic (ETC).Баланс: використовуйте кошти з балансу вашого рахунку HTX для безперешкодної торгівлі.Треті особи: ми додали популярні способи оплати, такі як Google Pay та Apple Pay, щоб підвищити зручність.P2P: Торгуйте безпосередньо з іншими користувачами на HTX.Позабіржова торгівля (OTC): ми пропонуємо індивідуальні послуги та конкурентні обмінні курси для трейдерів.Крок 3: Зберігайте свої Ethereum Classic (ETC)Після придбання Ethereum Classic (ETC) збережіть його у своєму обліковому записі на HTX. Крім того, ви можете відправити його в інше місце за допомогою блокчейн-переказу або використовувати його для торгівлі іншими криптовалютами.Крок 4: Торгівля Ethereum Classic (ETC)Легко торгуйте Ethereum Classic (ETC) на спотовому ринку HTX. Просто увійдіть до свого облікового запису, виберіть торгову пару, укладайте угоди та спостерігайте за ними в режимі реального часу. Ми пропонуємо зручний досвід як для початківців, так і для досвідчених трейдерів.

118 переглядів усьогоОпубліковано 2024.12.10Оновлено 2026.06.02

Як купити ETC

Обговорення

Ласкаво просимо до спільноти HTX. Тут ви можете бути в курсі останніх подій розвитку платформи та отримати доступ до професійної ринкової інформації. Нижче представлені думки користувачів щодо ціни ETC (ETC).

活动图片