How does a rollup's state sit on layer 1?
Experienced · Updated
A rollup's state is anchored by commitments posted on layer 1. The contract on that layer stores a root, a hash of the asserted layer 2 state. Layer 1 does not re-execute every layer 2 transaction the way it executes its own: it accepts a new root when the rollup's rule allows it, either because a validity proof checks or because an optimistic assertion was not struck down in time. Your layer 2 balance is what that root commits to, if the proof system is sound and the data were published.
For you, the anchor is that commitment. Without the published data you cannot open the root to see your account: you are left with a hash you cannot expand. For a node operator on layer 1, you see the root in the contract, not the layer 2 balances, unless you also process the layer 2 data and check them against the root. A layer 2 node derives the state from those data. Layer 1 is the anchor and the place the acceptance rules live, not an automatic copy of every account.
Informational text from Criptos.ai. It is not a buy or sell recommendation, and it is not tax advice. This is general information, not financial, tax or legal advice. We do not promise gains.
In the glossary
Articles
In the Academy: Advanced · In the Academy · In the glossary