Get the Monday email →
Loading player…

FRIVail: A Data Availability Scheme based on FRI Binius

DevconFri, Nov 6, 2026, 12:00 AM

Speaker

Rachit Anand Srivastava

Transcript

[music] [music]

So hello everyone. I am Rachit. I work as a senior research and development at Avail project. And today I will be introducing Fry well, one of the data availability scheme we have been working on for a while. So I will first go over what is the purpose of it, why we needed it and then dig into a bit deeper on why we went with the designs we chose.

So let's first discuss the problems, right? So in the data availability space we have two different type of dominant structures today. One is similar to what Ethereum is doing in the implementation where they are using KZG based polynomial commitments and erasure coding the data, committing it using KZG based PCS and then just relying on validity proofs by opening the polynomials at a given position. Other alternates is competitors like Celestia where proofs are basically used alongside fraud proofs. Now Merkel proofs in nature do not create relationships between the points.

So as a results you have to rely on fraud proofs in order to get the guarantee on chain that the data was available and the data was encoded correctly. And then there are other overheads. For example, all of these schemes and designs are not post quantum. Like Merkel Merkel variant is in a sense is post quantum but relies on fraud proof which is a problem if you want to rely on validity proofs. And KZG relies on a thing called bilinear pairings and bilinear pairings in turn relies on discrete log problems.

So this again becomes a problem in a post quantum run because discrete log is considered broken. And other than that ZK and PCS are still expensive today. So, yeah. So, just to give a overview of what our today's designs do. of the KZG based production implementation, as I mentioned, relies on bilinear pairing and fraud proofs rely on Merkle trees.

That's why the correctness guarantees comes from validity proof in case of KZG. But in case of fraud proofs, it comes from the constant size of like constant size of the Merkle commitment itself and these are all hashes of the data that you want to actually encode and put it on the blockchain. The post quantum guarantees are not there in KZG, but in case of fraud proofs, they are available. And similarly, from practicality wise, if you want to compare the cost, KZG is still relatively harder to prove because it's an expensive operation and these are mostly based on prime fields and not binary fields compared to fraud proofs, which are actually quite efficient. We have very efficient algorithm for hashes, but since there is a challenge window involved when it comes to finalization, it becomes a really slow process for us.

And then there is a overhead problem where in case of KZG, if you really want to recover some particular cell or data or a row, you need to download all of the commitments corresponding to all of the other rows. And in case of fraud proofs, you also have to rebuild the entire grid in order to reach the to in order to recover the data. And now since in last few years, there have been few impressive breakthroughs. One of them is includes Zoda and the other one is Freedom. So Zoda introduced the idea of a zero overhead idea.

So as I mentioned on my previous slide, in the last section, the overhead is a problem in KZG and both fraud proofs in a certain sense because you have to download data that are not relevant for the data you want to be concerned with. Zoda handles it by introducing vendor mountain matrix in their encoding system where basically the linear code allows you to download a particular row and the row in itself becomes a proof of correctness that the so basically when you download a row in case of Zoda it says that the row itself says that I was encoded correctly and you don't have to download anything extra. Frida is a different design and Frida relies on the idea of fries polynomial commitment scheme in in its whole. So Frida uses the fry commitment schemes and the problem with Frida that it addressed was that fry schemes rely upon the fry when you do a fry commitment you are actually not committing to the exact data but you are claiming that you are committing to a polynomial which is close to the original polynomial and that is a problem which Frida addressed because we cannot have data close to the original we need the exact data and that's where the Frida paper introduced a new row plus one query system which Frywell inherits. So to just summarize in today's world one of the most reliable design will be something that will have zero overhead.

Zero overhead is a very important factor if you want to download and scale 10 GB and plus blocks. It should be post quantum because we are really coming close in a lot of benchmarks and estimations on breaking the discrete log problems. Ideally we want a shaded design because network cost should not become a limitation and economic security should cover the gap if the current technology doesn't allow you to do it and of course you need to maintain the core DA properties which are originally the idea which is you should be eraser coding the data and adding redundancy. You should be adding some sort of a reconstruction mechanism and you should be be able to open it at a particular point. So So I'm not gonna dig a bit into how Frivel itself works and how we plan to implement it and what is the current status of the rollout.

So first of all, we use a thing called binary fields contrary to prime fields. So most of the original systems that I talked about, especially in the PCS era, they rely on a prime fields and prime fields are not really CPU native. You always end up having to compromise on your computation cost when you're dealing with prime fields. Binary fields as a result, if you can build on top of it, results in highly efficient computation and you get really good benchmarks. Fri inheritantly does erasure coding during the commitment process and the Fri proof that you get in the commitment scheme in itself is a certain guarantee that the erasure coding was done and erasure coding becomes an inherited part.

You can actually specify how much redundancy you want during the erasure coding step. And then of course, we want some sort of a started architecture because if let's say you have 10 GB, 20 GB of data, you cannot practically just propagate it through hundreds of nodes in a small amount of time, which is the block time of your particular blockchain. And then you also want to just do row level operations ideally and you want to define your shards in terms of row. Ideally, let's say you are a big rollup and you have a lot of data to post. You what you do is you assign yourself a particular row and you create a subset of validators that deal with your row and keep track of your data.

Ideally, the verification of your correctness should be done through validity proofs and not really re-executing of data. And then of course, we need some sort of an infinite horizontal scaling ideally if we can afford to since we are moving to a shortened architecture. So how Frivel works, right? So we start with a thing called encoding. So you take a raw set of data, you convert it into a multi-linear polynomial and then from that polynomial derive a univariate polynomial which is actually erasure coded using three Solomon codeword.

Commitment is actually the Merkel commitments but if you have ever heard of how fry works in fry you have the bottommost row you commit a do a Merkel commitment to the state of and then you fold it to the next level and after the next level you do another degree of commitment which is again a Merkel commitment and so on so forth until you have a single element at the top. And then the fry proof is basically the final value at the top that you can verify against the original codeword that you had. Then you do the verification which is again in case of binary fields are really fast operations now and then sampling. So sampling is a bit tricky in a sense that you can open things against the Merkel commitment but as I mentioned earlier fry gives you the guarantee that the committed world is close to the original polynomial and not the exact one and that's where the R plus one query select mechanism comes into play. This a design was slightly inspired from freedom and then I'm going to cover sampling again a bit later.

Recovery is basically standard resolvent encoding recovery where if you have more than 50% of the data of a given row you should be able to derive it. So I want to get a bit into the gap when you want to try and use something like fry in case of data availability sampling. So the problem with fry is that as I previously mentioned the the commitment the commitment and the fry proofs gives you the guarantee that the codeword is close to the original polynomial not exact. And when you do a thing called a query plus one basically you ask the prover to give you an opening for a particular cell in the data and then you basically do the check at every level and make sure that the final output matches exactly what the claim proof is, then you get the guarantee with the R+1 randomness cell opening that the code was was not the code was was not tampered with. Why does it work?

Because in case of fry when you move upward you do a thing called fry folding. And fry folding, let's say you have a issue at the you try to change a word at the lowest level the error gets amplified at each layer. So it becomes really really probabilistically negligible to hide a tampered cell as you move upward especially if you're doing an entire query from bottom to top. And that is where the idea comes from. So there is a graphical demonstration of it.

Let's say you are you want to open index I and you want to verify it against the against the merkle commitment of the codeword. You can open it but now the question becomes what if the cell right next to I maybe was tampered or maybe I was slightly tampered. If you go to the level one which is the folded one if I was tampered if you reach to fold one stage what will end up happening is the error margin in the codeword level gets amplified at fold one and this amplified error again gets amplified in the fold two stage. So the final terminal result that you get almost will probabilistically never match and you will have a guarantee that the codeword was tampered with so you can reject the sample. So here are some performance benchmarks.

Most of the production DS either hover somewhere around in case of aware was hovering around four MB of data and the commitment size came down to up to 40 milliseconds and the proof size was 221 KB. One of the key thing is since you are using fry the proof size does not linearly increases. We also tested it against one GB of data which is again around 11 seconds, and 32 MB is again sub 300 milliseconds now. And this is happening and this kind of performance is possible because now the underlying scheme relies on binary fields and no longer on any sort of prime fields. Now I just want to talk a bit about the rollout stage.

So there is definite which is already live since July 2024. The testnet went live in October and the mainnet progress is in the mainnet deployment is in progress. Now just to mention one more thing, I mentioned binary fields here and one of the key factor here is that there are going to be several rows in the entire shaded architecture. We need some sort of a global representation for this. Today we have several options.

One of them is relying on the consensus economic guarantees and the other one is you can either aggregate these triproofs. Fortunately, today we have technology like if you have heard about Flock, which was recently introduced as a ZK variant. Flock also uses binary fields and these kind of aggregations become quite native to those kind of new ZK VMs that can data popping up. So transitioning the fry proof in and verifying them recursively in a ZK circuit is now becoming a reality. This this system can be can be safeguarded using consensus and later on can be easily be migrated to a binary based ZK prover.

So that's all from my side. Here is a QR code for all the papers related to this talk, all of the resources that you will need. And if you have any questions, you can also connect with me on my Twitter. Thank you.

Awesome. Rachit, that that was amazing. Yeah, so I have some questions. Main question here is how much faster is commitment generation with Binius on binary fields compared to standard KZG commitments?

Significantly around we easily got around five to six x increment on small data around 4 MB so and that this does not scale linearly. If you have 1 GB of data KZG takes almost forever.

And so another question when scaling blocks up to 10 GB how much RAM and bandwidth does a light client actually need to perform sampling?

Um so not really much. So if you have noticed in the design what the light client is actually doing is it is actually just opening it against the fry proof and if you look at my slides the fry proof is hovering around 300 KB. So 300 KB of network bandwidth is needed. Computationally wise you are just verifying mostly cache hashes. So that again is not really hard to sell.

So you can easily verify it even on your watch in today's era.

Okay wow. So another question why use fry and why use Reed-Solomon codes? Have you tried more optimal protocols like stir and were? Have you explored the use of other erasure codes like error correcting codes?

So fry was one of the key stuff we went with because first of all the fry PCS are quite reliable and we know they are post quantum. So the post argument post quantum argument hold it for us. The second one was Reed-Solomon code. So Reed-Solomon code is essential when it comes to data data availability because if you do not read you do not encode your data and you lose a cell there is no way for you to recover the data. And we have explored stair and VRX actually but if you actually go with the Binius the performances that we got when we went with the fry Binius and the binary field structures the wear protocols were actually getting beaten when it comes to extremely large sizes of of So 1 GB there is no the where performance was quite inferior when it comes compared to Binius based designs, which is binary fields.

Another question I had was like listening to your talk. So, how much larger does the block have to get? So, you over encode the data in the block, right? Using Reed-Solomon code. How much larger like what is the the rate of the Reed-Solomon code that you're using?

Yeah, so ideally we we more made all of our benchmarks as in as was in the slide with a 2x expansion. We can go further, but the question remains is engineering problem that if you have let's say 20 GB of data, do you really want to add a redundancy of 4x and make a TGB or you want if or if 20 GB is going to be sufficient for your particular use case?

Another question. Does combining fry proofs improve data availability without increasing prover complexity?

I don't get

I also sort of fully understand the question, but okay, so yeah, I I asked this question essentially this by over encoding the data of a block using Reed-Solomon codes, how much larger does the block get?

Over encoding the data of a block by using Reed-Solomon, how much does the block size become? So, if you are doing a 2x expansion, right? It depends. The system's completely shaded. At this point, there can be 10 shards with 10 GB of data and each shard in itself will basically move if you have go with 2x, that's almost the 2x of the size inside the block.

The aggregation that the block hash itself will use and keep in the state that will be basically the aggregation of the systems. So, it all depends upon the particular row. If you just combine all of the data and if you look at what of what is the redundancy that you're adding, the RS encoding, that it will just multiply according to it. So, if you have 10 GB, 20 GB, 20 GB with 2x 2x 2x, then it's 40 plus 80 plus I think it was 40. So 40 plus 40 plus 80 plus 80.

Okay, makes sense.

That's what the network can support easily.

Next question is is 10 gigabyte block throughput realistic on a live network soon or is peer-to-peer gossip the real bottleneck holding it back?

That's a very good question and one of the things that I covered was that we need charted architecture because we do not want network bandwidth to become a bottleneck. Then you can horizontally scale into subsets of validators that hold the data and rest of the validators just verify by downloading a few KBs of data, you actually get the scaling you want. In even other state-of-the-art blockchains, they are exploring systems in which you just verify the small proof and you basically get the guarantees. So it's aligns with the same idea that you don't have to download the entire data, you don't have to re-execute everything to come to the conclusion that things are correct.

Amazing, Rashid. This was some really interesting stuff. I'm going to definitely read that paper on ePrint.

[music]

Automatic transcript — names and jargon may be misspelled.