stackrlabs / docs

Docs for using Stackr's Micro-Rollup SDK
https://docs.stf.xyz
0 stars 2 forks source link

Verification Layer: Will this scale? #33

Open kianenigma opened 3 months ago

kianenigma commented 3 months ago

Hello there.

I have skimmed your docs and Litepaper around the verification network and have a fundamental question about the system.

If the premise of the verification layer is to (pessimistically, as you called it) re-execute everything the micro-rollups (MR) do, then the scalability bottleneck of this entire system is the same as the verification layer.

If a trillion micro-rollups do a million transactions each, this create an insurmountable amount of verification for the verification layer to do.

Moreover, all of this is assuming you can get by with a verification layer that is merely one node. I suppose the goal is to have a network of nodes to re-verify MRs, or else this system is not really secure, right?

As you scale the number of verification nodes to make the verification more secure, they naturally becomes slower. If you want to have a 100 nodes be verifiers, that is 100x more secure, but a few orders of magnitude slower, because they have to gossip information between one another, and generally all the same reasons all existing secure blockchains are slow.

And to scale a "network of nodes" that all are supposed to re-execute MRs, aren't we back at square zero?

As in, this system is supposed to scale a slow distributed network (ETH), but as a part of the solution it has created another distributed system that is not scalable?

kautukkundan commented 3 months ago

Hey @kianenigma sorry for the late response

You are absolutely correct in your analysis. We did not go over a lot of details in the litepaper about the verification layer. there are a couple of approaches here.

We are trying a few of these (and some other) techniques to get over the problem. Would love to hear any other ideas that you may have around it.