Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No DA verification for sequencer commitments in batch proof #1773

Open
Tracked by #1784
eyusufatik opened this issue Jan 30, 2025 · 0 comments
Open
Tracked by #1784

No DA verification for sequencer commitments in batch proof #1773

eyusufatik opened this issue Jan 30, 2025 · 0 comments
Assignees
Milestone

Comments

@eyusufatik
Copy link
Member

Our current batch proof logic is defined as following:

  1. The batch proof circuit takes in is a list of sequencer commitments found on DA as DA level blobs.
  2. The sequencer commitments commit to correct hashes for a given list of L2 block ranges.
  3. When the L2 block ranges in sequencer commitments are run, the state transitions from state root A to state root B

This feature is interested in getting rid of 1. Since the batch proof is not recursive, and it has no rules around supplying a valid DA header chain, theoretically, the batch prover can make up a DA block and supply that to the batch proof circuit. However, it can’t make a false sequencer commitment, as the commitment is signed by the sequencer. This means, the DA inclusion verification done for the sequencer commitment is useless.

The proposed solution is to remove DA verification altogether from the batch proof circuit, and accept the sequencer commitments as an ordinary input field. The new batch proof circuit would output the hash found in the sequencer commitment, which is then read by the light client proof circuit to check against an MMR tree of sequencer commitments.

New logic then goes as:

  1. The batch proof circuit takes in a list of sequencer commitments. These are now in the form of the struct SequencerCommitment not DA level blobs.
  2. The sequencer commitments commit to correct hashes for a given list of L2 block ranges.
  3. When the L2 block ranges in sequencer commitments are run, the state transitions from state root A to state root B.
  4. The batch proof includes the hashes extracted from sequencer commitments in its output.
  5. When the light client prover processes a batch proof, it extracts the sequencer commitment hashes from the batch proof output, and verifies these hashes against its sequencer commitment MMR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant