5 bytes to Statelessness

ETHCC 7 · 10 Jul 2024 · 19:34

Leona from Intmax explains what a stateless blockchain design means and why it is hard. She starts with Merkle trees, which compress a database into one root hash, and describes the data availability problem: if data is lost, users cannot prove their assets. Her approach has the operator hand each user a proof, with transactions passed along as chained zero-knowledge proofs off-chain and only the root on-chain. She says this can combine scalability and privacy, with proofs taking about five seconds on a client, discusses limits raised in an a16z paper, and says Intmax plans a mainnet launch in October.

Speakers

Topics

From ETHCC 7, hosted by Ethereum France.

Transcript

It sounds okay, perfect. Cool. Hi everyone, I'm Leona from InMax. Today I wanna tell you about statelessness. What is stateless?

What's the limitation and impossibility of statelessness? And how to avoid that, how to make stateless cryptographic asset system. So yeah, we need to talk about explain what is stateless. And we need to start from Market Tree. Marketree, if you don't know about Marketry, you don't know nothing about you, you know nothing about blockchain. No actually this industry is uh this industry is not blockchain industry, it's a market industry.

Market tree is well used under no anywhere and people are using Marketry correctly and sometimes people don't use uh blockchain correctly, so maybe how this spaces are marketing industry. And what is Marketree? It's a way to digest the database uh to one single hash. So each block has a marker tree to digest the whole layer two or kind of blockchain uh information, state information and the yeah node all nodes however these database are contents like uh HA to HP. Just a moment, I'll set the timer.

Okay, so how to prove that this data HK green one is included by that digest single one uh root. So let's say Mark Tree is a data structure some kind of hashing up uh two by two to only one single hash and including their digesting the whole database. If you want to prove that HK includes that root, you need to submit the blue blue data, right? In these blue data, uh with these blue data, you can hash up each HK maker, HKL and HKL and HIJ makes our H I J G and no, you can continue that to uh reach out the root, right?

You can do the same thing for any kind of data of these databases. And why is that connected to why is it related to statelessness and blockchain? So stateless is all about putting the putting only macro root on-chain, not the other. So right now, Ethereum, Bitcoin, yeah, any kind of no, Solana, any kind of blockchains are stateful. And they are posting the old data, almost all data, to reconstruct the whole database on chain or in blockchain.

So in Solana, in Ethereum in Bitcoin, no all transaction data will be on-chain, right? And there's no uh stateless R system right now. But how we eliminate this data to make it slim, right? And it makes a significant small block and keeps the decentralization on the low gas fee at the same time. And additionally, we can harbor privacy at the same time. So yeah, putting the data, the digest data on-chain, everything else is off-chain.

This is a stateless stateless architecture. How to make that? So why can't we let's start from the question? Why cannot we do this? So first question we have uh for you guys is what if everybody lost, everybody on this earth lost data of HG, for example. So blockchain should should be reconstruct the whole database or store the old data uh yeah among nodes and with everybody, right? And what if all of you guys lose this data?

HG, for example. Your asset data is green one. No, your money is inside the green block. No. If you don't lose that, it seems that it's safe, but actually not. This is a problem. So answer is that nobody can make any inclusion proof. No, the market proof, right? So if we locks, if we lose it, if we lose the HG data, we cannot this kind of data, right? And we cannot make this our blue data.

No, it's uh this problem apply to any kind of data loss in layer two database or layer one database, right? So any single data, even if it's not your data, when we lose it, you will lose your asset or data, right? You cannot prove your asset is inside the hash or inside the loot. So yeah, it was what we call DA attack, data availability attack.

And why today's blockchain space is obsessed with uh making DLA or no data availability or this kind of stuff? It's simply because of this problem. So if you hear about DA problem, you can come up with this problem, right? So to secure all any kind of asset, you need to you need to be able to reconstruct the whole database or no at the same time. This is uh no inefficiency of this kind of market tree.

Why do we use marker tree? No, it's uh actually market is the best. For example, there's a 16 data here, but how about million data? How many depths do we need? How much depth do we need to include the uh millions of data instead of 16 data? It's just 20, right? Two power 20 is almost our million, right? So if you include the old data uh million, you yeah, you can prove that with uh 20 dips uh proof like uh no 20 uh blue data, you can prove that it's super efficient. This is super efficient system, but it has a problem.

This is the one, right? The DA problem. Okay, let's next let's go to the next question. So, okay, if we cannot reconstruct the database later of this uh no H A and to HP in the bottom. How about distribute this blue data directly to asset holders? For example, you have our asset in HK in green block. If block producer or node sends this blue data to you guys, you can prove that.

No, you can save that and prove yourself your asset is in the loot, right? So there's no reconstruct, there's no need to reconstruct the data, right? So this seems to be a solution, but we have a problem here. The loot is always changing, right? Root is always changing, that's the problem. So each block or each transaction changes the loot the digest of the layer two or layer one simply because transaction changes their no data asset data no which is described at the bottom this slide right and yeah each transaction each block hover another route so your proof is no longer valid uh under you cannot prove yourself or no prove your asset inside the no the latest uh root no this is a problem right but but what if you can prove that you did not change the data after you got proof so you can say that this old root under old data is still buried simply because you did not change the you did not change your asset data right so this is basically how we can make the stateless our architecture it's including the no stateless client or no it's also rated the virtue or no why bugger trees are beneficial and also yeah how to make the stateless layer two here we need to uh uh to be more simple comparison or yeah we can talk kind of summarize uh what is the difference statelessness and the statefulness.

So statelessness means that scalability and privacy at the same time, it's kinda extreme one. And user requirement will have a bit uh harsher simply because yeah, you so users will have more requirements, but they pay less. So error of ZKP only we we require only five seconds to compute on your client side or in mobile as well. So it's very efficient recently.

So it was kind of dream or no just a dream how five years ago in the Prasma research days, but today we can do that. And also developer experiments is the bad side, kind of downside on the functionality. We have some difficulty with some hard side use cases, but basically, yeah, stateless application have a role of use cases. Okay, the stateless has a powerful feature, and we can we should go this way. And we can have both scarability and privacy at the same time, right?

And why don't we go that? So two years ago, A16Z announced their uh publisher research paper about the limitation of uh statelessness. Uh yeah, it's uh it's using the model of the revocable proof system. Under what they stated was totally correct under, the system must have either a linear size global state or linear uh the local, frequent or local proof update. So you should choose the linear size, let's say not scale non-scalable blockchain or frequent uh update uh of the proof, your asset proof.

No, this is uh no choice we need to make. But we can actually avoid that problem. This is uh no sequencing. So local proof update or online communication seems bad for UX, but actually we can avoid so many problems and we can actually make a stateless system. And if we if user send back their transaction with signature, actually we can make it. So let's say this, yeah, this proof, right?

The blueproof node side sends the proof, uh the blue proofs, and the sender size sign on that, and the block producer on node side includes that uh signature uh to verify on chain. And also we can show that uh no, if we can prove that no transaction after that, it's truly decentralized without DA cost, without the uh no block space uh usage, we can make a super efficient transaction system uh which consume only five bytes for each transaction. And we found another trimmer.

So I said that uh our system, Intmax 2, has a five-data uh consumption for each uh each transaction, but we can compress the many, many transfer and many many transactions to one transaction uh no without additional cost to the five data. So Intmax is almost stateless. And if we go full straight statelessness, uh what we call Plasma Next, we we found this are another protocol as well for the experiment. And it's uh further modification of IntMAX 2.

And we found that if we have no online requirement and statelessness at the same time, we will have another problem. This is uh no, we found the uh new Rammer. The trimmer we uh founded found recently. And we this is called capital efficiency problem. So yeah, and the other stateless system like uh Lightning Network, for example, it's been a long time or Lightning Network has been online. Um user side have a heavy uh online requirement, they need to be online for yeah, no, yeah, any anytime they want to transact or uh even though they don't transact, they need to be online to be secured.

So Lightning Network is great scalability, but they have a serious problem with uh you node UX problem, a user UX problem, uh simply because of the requirement running nodes and capital efficiency. And plasma is yeah, no, like the way they're they have a full capital efficiency, but they cannot uh cannot go without the being online. So each stateless or layer to system have a no limitation. And yeah, let's say intimacy however many are no in in this perspective, Intmax has a desirable stateless feature.

So how to make stateless system is kind of no the last part we need to talk about. And it's quite clear. No just send the just make operator distribute proof to your side and use the side, you guys sign back to the operator. And in that sense the proof itself is a UTXO and UTXO will be a will be inside the ZKB circuit on off chain. And okay if I have a enough balance proof of ZKP I send the transaction I get the proof I will send that these two to recipient I will send the transaction and recipient include this transaction again to ZKP circuit on off chain and send that to the no the other person or other recipient.

So the sender so this is the Android chain of ZKB off chain right for each transaction. It's like a Mina protocol applied uh no UTXO offchain. Yeah like that way so this is super efficient simply because this kind of chain of ZKP if you verify the previous one you can verify the whole entire chain at the same time right so because the N minus one already includes the N minus two already proves the N minus two and N minus two already has proven the the before one and it's reaches the origin. So if you once you verify the kind last one you can approve the entire uh chain of the KP of one you take so it happens on each client side.

Yeah and basically one transaction can include eight uh many many transactions at the same time and yeah we can share the no share the cost with many senders at the same time it makes us complete statelessness. So it's a bit complex but we can achieve the stateless R and we already proved that our in the paper uh in the company work and also the coding already so yeah let's uh please uh wait for the uh October uh launch and we will publish the main net and we will prove that the power of statelessness thanks so much. Thank you.

We have time for some question someone okay thank you. Juru Muwakani Mupati Ulayu Yurissa Pudamirachmiraksai Juruakani Mwakani Mupati.

Related talks