VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

Validity Rollup Evidence: Verify the State Claim, Then Reconstruct the State

Three students in school uniforms work through open books at a classroom table, with textbooks and stationery nearby and study notes on the whiteboard behind them.

中文版 · Blockchain learning guide · Previous article

Blockchain learning · Article BC048

Three students in school uniforms work through open books at a classroom table, with textbooks and stationery nearby and study notes on the whiteboard behind them.
Study photograph for illustration; it does not establish that the pictured students are studying blockchain.

A valid proof can establish a specified state-transition claim without handing every reader the data needed to reconstruct the resulting state. A settlement contract must also connect that proof to the right application, rules, current starting state and data commitment before accepting an update.

These are separate checks. “The proof verifies”, “the contract accepted the update”, “the containing base-chain history is final” and “this reader reconstructed the state” should not be collapsed into one green indicator.

This lesson follows a small state update through six evidence packets. It focuses on what a proof consumer must check and what reconstruction additionally requires, rather than rebuilding a proof system or repeating a Merkle-path calculation.

Choose your reading route

In this guide

Start with the named statement fields. Work through the three-key state and its two-entry update data, then classify the complete, missing-data, stale-state and mismatched-data packets. Finish with the review checklist and exercises.

All commitments, account names and contract identifiers are fictional symbolic labels. We do not generate a cryptographic validity proof, deploy a verifier or transfer assets. The proof-verification results and commitment relationships are explicitly supplied exercise facts.

Primary sources were checked on 12 October 2026. Named ZKsync documentation provides concrete examples of public-input binding and reconstruction data. It is not used to claim that all chains share one implementation, data mode or active software version.

Back to contents · Next section

1. Begin with the statement, not the proof’s filename

The fictional application is ArchiveAlloc, using rule version AV1. Its settlement contract S runs on a base chain called LabL. The contract currently records application state commitment r0 and expects the next batch to be batch17.

A candidate statement identifies LabL and S, ArchiveAlloc and AV1, old state r0, new state r1, batch17 and public-data commitment d17. In the toy design, all these fields are bound into the verified statement or into checks that are inseparably linked to it by the contract.

That last condition matters. Listing a field in a report does not prove the verifier actually checked it. The exercise supplies the binding; a real reviewer would need the matching specification, verifier identity and contract logic.

The ZKsync OS L1-integration description provides a concrete example of pre-state and post-state commitments in proof public inputs or their preimage, alongside other input, messaging and data-related components. We use this as a reason to inspect the exact statement, not as a universal field format.

Back to contents · Next section

2. State the proof assumptions explicitly

Assume the proof system is sound for the specified relation, the intended AV1 checks are correctly represented, the verifier implementation and parameters are correct, and the relevant commitment schemes bind the named data as intended.

Under those assumptions, a successful verification establishes the relation expressed by the statement. It does not establish an omitted authorisation rule merely because the application designer wished that rule had been included.

In our example, AV1 includes the required authorisation and counter-update conditions. The provided proof result therefore concerns those rules. We do not infer real-world custody, legal ownership or physical availability from the counters.

A proof also does not certify the honesty of every service distributing it. The reader must still identify which verifier checked which statement, and whether the resulting evidence corresponds to the intended contract and network.

Back to contents · Next section

3. The three-key starting state

The complete toy application state contains exactly three nonnegative integer counters. At r0, A=2, B=5 and C=7. There are no hidden application keys, fees, code changes or other updates in this numerical example.

AV1 permits an authorised instruction to move a positive integer number of units from one named counter to another, provided the source has enough units. These units are fictional allocation counters, not money. Total units remain unchanged by the operation.

The supplied batch17 performs an authorised move of 2 from B to A. The resulting state is A=4, B=3 and C=7. The starting and ending totals are both14.

The exercise supplies that the canonical commitment of the complete starting state is r0 and that of the complete resulting state is r1. These are labels for given commitment relationships, not actual calculated hashes. No one should treat r1 as a usable production state root.

Back to contents · Next section

4. The reconstruction data is a state difference

For this toy format, the required public reconstruction data D17 contains two final-value assignments: set A to4, then set B to3. Omitted keys retain their previous values. The encoding and key ordering are fixed by the format; duplicate keys are not allowed.

D17 is supplied as matching commitment d17. A reader with the complete authenticated r0 state can apply the two assignments, retain C=7 and reconstruct the complete new state. The resulting canonical commitment must match r1 before the reader accepts its reconstruction as consistent with the packet.

This is not a claim that every rollup publishes precisely this format. The ZKsync data-availability documentation describes state differences and other public data used for reconstruction, including messages, logs and bytecodes in its context.

Our example deliberately has only three counters and no changing code or messages. A real reconstruction procedure needs every data category its state model requires, not just the two values that happen to look interesting to an application.

Back to contents · Next section

5. Reconstructing state is not recovering every historical instruction

The final-value assignments show A=4 and B=3. They do not, by themselves, reveal whether the application executed one move of2 or two authorised moves of1. Both possible histories could lead from the stated starting counters to the same ending counters.

In the exercise, batch17 and its proof statement are bound to their actual batch context. The point is that reading only a final state difference does not recover every intermediate instruction, ordering detail or event that might matter to a historical analyst.

Do not confuse two goals: reconstruct the committed application state, or reproduce a complete historical execution narrative. The required data can differ. A proof can support transition validity while the public reconstruction format intentionally omits some intermediate detail.

This distinction is especially useful when a researcher asks for “all transaction data”. Ask whether they need current state, a particular message, execution traces or the complete ordered transaction history before claiming a dataset is sufficient.

Back to contents · Next section

6. The contract performs more than a standalone proof check

Our S contract accepts an update only if the proof verifies for the correctly bound statement, the network/application/rule identifiers match, the old root equals its current root, batch17 is the expected next batch, and the specified data-publication conditions are satisfied.

The baseline has fixed verifier and application rules, with no upgrade or pause administrator. These assumptions keep the worksheet focused; they are not universal properties of validity rollups.

Once all required checks pass and the update action succeeds, S records r1 and advances its expected batch. The containing LabL block still needs the relevant finality evidence before the worksheet reports a final settled update.

A standalone verifier returning true therefore does not grant permission to overwrite whatever state S currently has. Context and sequencing checks turn a mathematical statement into the particular state update this application is entitled to accept.

Back to contents · Next section

7. Packet A: proof, settlement and reconstruction all align

Packet A includes authentic verification of the correct statement, a successful S update from current r0 to r1, matching required data publication and verified LabL finality covering that update. The reader also has the complete authenticated starting state and the matching D17 bytes.

The reader checks the data commitment, decodes the two assignments under the correct format, applies them to A2/B5/C7, retains C7 and obtains A4/B3/C7. The supplied canonical commitment check matches r1.

Three conclusions are now supported under the assumptions: the specified transition was proof-verified; the intended settlement update was accepted and covered by the supplied finality; and this reader reconstructed the matching complete toy state.

Even here, keep the claims narrow. A=4 is a value in ArchiveAlloc. Nothing in this packet establishes that four physical objects exist, that a user has a legal right to them, or that every future service will remain available.

Back to contents · Next section

8. Packet B: the same accepted proof, but missing bytes now

Packet B has the same authentic accepted update and verified historical data-publication evidence as A. The difference is the later reader: it has the starting state and commitments, but cannot obtain D17 from its available sources at the time of review.

The reader can still report the supplied proof and settlement facts. It cannot complete its own reconstruction merely from d17 and r1. The commitment is not a decompression service and the proof does not provide the missing assignments through its validity result.

This observation does not show that protocol data availability failed when the update was accepted. The packet explicitly supplies that historical publication evidence. A later local retrieval gap, missing archive or unavailable provider is a different claim and requires its own investigation.

A useful report says: “Accepted update and historical publication established; reconstruction incomplete for this reader because D17 is unavailable now.” That is more accurate than either “the proof is broken” or “all data is available because verification succeeded”.

Back to contents · Next section

9. Packet C: a valid proof about a stale starting state

Packet C presents the same mathematically valid statement r0 to r1, but S’s current state is now r2 because a different authorised update has already been accepted. The statement does not begin at S’s current root.

The standalone proof may still verify as a claim about r0. Nevertheless, S rejects its application as the next update because the old-root equality condition fails. It does not roll the contract back to r0 merely to make the proof convenient.

This is a context mismatch, not necessarily a forged proof. Distinguishing those failure categories matters when diagnosing a system: an authentic proof can be irrelevant to the state position where someone tries to use it.

The lesson generalises to network and application identifiers as well. Correct evidence for one authorised context is not automatically reusable in another, even if both interfaces accept similarly shaped objects.

Back to contents · Next section

10. Packet D: supplied bytes do not match the commitment

Packet D retains authentic evidence for the original accepted r0-to-r1 update, but a provider returns different bytes Dbad. They decode to A=4 and B=4, and the supplied commitment check shows that Dbad does not match d17.

Reject these bytes as the claimed D17 reconstruction input. There is no need to weaken the equality check because the values look close or because one key appears correct. The authenticated statement names a particular data commitment.

Applying Dbad to the old state would produce total15, which also violates the toy conservation rule. That is a useful secondary warning, but the commitment mismatch already identifies the supplied file as the wrong reconstruction data for this packet.

The bad file does not by itself invalidate the authentic proof about D17. It shows that this provider response fails to supply the bound object. Keep proof validity and data-delivery correctness as separate findings.

Back to contents · Next section

11. Packets E and F: the wrong context or the wrong verifier

Packet E contains a valid proof for another application called ArchiveOther, with its own statement. S requires ArchiveAlloc. Even if some roots or counters happen to look alike, the application-context condition fails and S must not apply it as an ArchiveAlloc update.

Packet F offers only a screenshot saying “proof valid”. It does not identify the verifier, parameters, statement, network or settlement transaction. This packet is insufficient to establish the intended verification claim at all.

These cases answer different questions from C and D. C has a stale starting point; D has mismatching reconstruction bytes; E has the wrong application; F lacks essential verification provenance. A single generic “invalid proof” label would obscure the actual problem.

Precise failure categories also avoid overclaiming. An analyst should not accuse a proof system of failure when the available evidence only shows a wrong file, missing context or an unsupported display claim.

Back to contents · Next section

12. Data mode changes the remaining assumptions

Some proof-based systems publish their reconstruction data through the settlement chain; others use a separately specified data-availability arrangement. A reviewer must identify the chosen mode and its verification or trust requirements.

The ZK Stack validium documentation describes configurable external-data arrangements and separate data checks. The existence of a validity proof does not make all those configurations equivalent to one on-base-chain publication model.

Our Packet B is specifically a later-reader retrieval problem despite supplied historical publication. A different packet that lacks required publication evidence at acceptance would raise a different issue: the acceptance condition itself has not been established. Do not merge those timelines.

Likewise, a committee’s authenticated statement about data is evidence of that statement under a particular design, not necessarily evidence that a particular reader possesses every required byte at a later time.

Back to contents · Next section

13. Proof-based does not imply private, instant or unstoppable

The property established by a validity proof is the specified relation under its assumptions. Whether the system provides privacy depends on what is public, how witnesses are handled and which privacy property the proof system and application actually provide.

Our toy public state and assignments are visible by design. Calling the mechanism “ZK” would not make A4/B3/C7 secret. Nor would it hide the application metadata that the statement intentionally exposes.

A valid proof also does not ensure continued proving, sequencing, data service or base-chain processing. A system can stop producing new accepted states without an attacker producing an invalid proof.

The Ethereum validity-rollup overview introduces offchain computation and proof verification. Our evidence checklist keeps those benefits separate from unstated privacy, finality timing, administrator and liveness guarantees.

Back to contents · Next section

14. Exit evidence is another consumer of the state

Suppose an application has an abstract exit path based on a particular accepted state. A reader may need state data to construct the required witness, plus separate authorisation, replay protection and base-chain processing conditions.

Reconstructing A4/B3/C7 can help supply a prerequisite, but reconstruction alone does not prove the reader is eligible to exit. Conversely, an accepted proof does not guarantee the reader can produce the witness if the necessary data is missing.

A real protocol’s exact exit conditions may include additional delays or controls. This lesson makes no instant-withdrawal claim and does not give a live exit procedure. It only asks which evidence a consumer of the accepted state still requires.

The same reasoning applies outside exits: an indexer, auditor or application query may need different parts of the reconstruction package. Start from the user’s question rather than assuming one proof answers all of them.

Back to contents · Next section

15. Exercise: classify the evidence precisely

Use the fictional packet rules above. All unspecified proof-system and contract-correctness assumptions hold.

  1. Starting from A2/B5/C7, apply D17’s final assignments A4/B3. What is the complete state and total?
  2. Packet B supplies accepted proof and historical publication, but the reader lacks D17. Which conclusion remains incomplete?
  3. Packet C verifies r0-to-r1 while S currently records r2. Should S accept it as its next update?
  4. Packet D returns A4/B4 with a commitment mismatch. Does that alone prove the authentic proof about D17 is false?
  5. Can D17 alone distinguish one move of2 from two moves of1?
  6. Packet E verifies for ArchiveOther. May an interface relabel it ArchiveAlloc?
  7. Packet F shows only a green verification screenshot. What essential evidence is missing?

Answers and reasoning

  1. A=4, B=3 and C=7, total14. C remains unchanged because the toy format preserves omitted keys. The reconstructed canonical commitment must also match r1; arithmetic alone does not replace that check.

2. This reader’s state reconstruction is incomplete. The supplied proof, acceptance and historical-publication facts do not disappear, but the missing bytes cannot be inferred from their commitments.

3. No. The current-root condition fails. A mathematically valid statement about an old starting point is not authority to overwrite the application’s current state.

4. No. The supplied file is not the data bound by d17. The authentic proof concerns the correctly bound statement; report wrong reconstruction input rather than a demonstrated proof-system failure.

5. No. Both histories can produce the same final assignments. Recovering full history requires appropriate additional data; state reconstruction and full historical replay are different tasks.

6. No. The application identifier is part of the required binding. A display label cannot change what the proof and contract checks establish.

7. The verifier and parameters, exact statement, network/application context and relevant settlement evidence are absent. A screenshot alone does not establish that the intended claim was checked.

Back to contents · Next section

16. Frequently asked questions

Must every reader execute every transaction to use a validity proof?

That is not what this worksheet assumes. Verification can establish the specified relation without this reader replaying every instruction. Reconstruction still needs the data and starting context required by the chosen state format.

Is a state difference always enough?

No. It is enough only together with the required authenticated baseline and every other data category demanded by the specific reconstruction procedure. Our deliberately tiny state has no changing code or extra message structures.

Does proof verification establish final settlement?

Not by itself. The contract’s context and acceptance conditions, the successful update action and the relevant base-chain finality evidence remain separate checks.

Back to contents · Next section

Sources and next reading

Primary sources checked on 12 October 2026, Singapore time:

  • ZKsync OS overview, L1 integration: pre/post-state commitments and other public-input components. Used as a concrete architectural example, not an active-deployment certificate.
  • ZKsync data availability: state differences and other public data for reconstruction. State recovery is distinguished from a complete transaction-by-transaction history.
  • Validium in ZK Stack: data-mode variation and separate data-validation requirements. No blanket assumption that all ZKsync chains use one publication mode.
  • Ethereum zero-knowledge rollups, page last updated 8 September 2026: offchain execution and validity-proof verification. Unconditional privacy, instant exit and availability claims are not adopted.

The earlier proof lesson explains statements and witnesses; the inclusion-proof lesson explains membership evidence. Here the new task is joining proof, contract context and reconstructible state without overextending any one result. Next, examine data availability at publication time, later retrieval and long-term archival responsibility in more detail.

Back to contents