Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Conversation

@noel2004
Copy link
Member

@noel2004 noel2004 commented Aug 4, 2024

This PR make use of the new "flatten proof" in l2trace to optimize the construction of zktrie state.

With flatten proof and key hashes, no poseidon calculation would be required in constructing the initial zktrie state.

DO NOT MERGE unti following tasks are completed

  • The dependency of zktrie has been merged tagged
  • Test against with enough blocks of mainnet
  • Test against with enough chunks of mainnet
  • Regression tests for compatible with old l2trace
    usage of txStorageTrace has been proven to be correct

Signed-off-by: noelwei <fan@scroll.io>
Signed-off-by: noelwei <fan@scroll.io>
Signed-off-by: noelwei <fan@scroll.io>
use key cache
@noel2004 noel2004 marked this pull request as ready for review August 11, 2024 14:47
@noel2004
Copy link
Member Author

Has passed >300 blocks on l2 mainnet with chunk_prover binary

@noel2004
Copy link
Member Author

Passed another bulk of blocks with chunk builder in chunk_prover binary. So the chunk building has been covered.

(Also with a tirival fixing on chunk_prover: scroll-tech/scroll-prover#335)

@noel2004
Copy link
Member Author

Test for compatibility of old trace has passed.

A regression has completed with the newest commit.

@lispc lispc merged commit 05ccc94 into develop Aug 13, 2024
@lispc lispc deleted the opt/zkstate branch August 13, 2024 10:21
lispc pushed a commit that referenced this pull request Aug 13, 2024
* induce "query" mode for building sdb

Signed-off-by: noelwei <fan@scroll.io>

* switch zktrie dep

Signed-off-by: noelwei <fan@scroll.io>

* induce flatten proof and integration test

Signed-off-by: noelwei <fan@scroll.io>

* update zk_dep
use key cache

* fix test issue

* update zktrie dep

* induce mpt state updating

* fix issue in chunk building

---------

Signed-off-by: noelwei <fan@scroll.io>
lispc added a commit that referenced this pull request Aug 14, 2024
…hanges (#1392)

* [Feat] Optimize zktrieState with flatten proofs (#1388)

* induce "query" mode for building sdb

Signed-off-by: noelwei <fan@scroll.io>

* switch zktrie dep

Signed-off-by: noelwei <fan@scroll.io>

* induce flatten proof and integration test

Signed-off-by: noelwei <fan@scroll.io>

* update zk_dep
use key cache

* fix test issue

* update zktrie dep

* induce mpt state updating

* fix issue in chunk building

---------

Signed-off-by: noelwei <fan@scroll.io>

* update zktrie

* use v0.8 for zktrie

* use v0.9 for zktrie

* update cargo lock

---------

Signed-off-by: noelwei <fan@scroll.io>
Co-authored-by: Ho <noel.wei@gmail.com>
lispc added a commit that referenced this pull request Sep 5, 2024
…hanges (#1392)

* [Feat] Optimize zktrieState with flatten proofs (#1388)

* induce "query" mode for building sdb

Signed-off-by: noelwei <fan@scroll.io>

* switch zktrie dep

Signed-off-by: noelwei <fan@scroll.io>

* induce flatten proof and integration test

Signed-off-by: noelwei <fan@scroll.io>

* update zk_dep
use key cache

* fix test issue

* update zktrie dep

* induce mpt state updating

* fix issue in chunk building

---------

Signed-off-by: noelwei <fan@scroll.io>

* update zktrie

* use v0.8 for zktrie

* use v0.9 for zktrie

* update cargo lock

---------

Signed-off-by: noelwei <fan@scroll.io>
Co-authored-by: Ho <noel.wei@gmail.com>
lispc added a commit that referenced this pull request Sep 10, 2024
…hanges (#1392)

* [Feat] Optimize zktrieState with flatten proofs (#1388)

* induce "query" mode for building sdb

Signed-off-by: noelwei <fan@scroll.io>

* switch zktrie dep

Signed-off-by: noelwei <fan@scroll.io>

* induce flatten proof and integration test

Signed-off-by: noelwei <fan@scroll.io>

* update zk_dep
use key cache

* fix test issue

* update zktrie dep

* induce mpt state updating

* fix issue in chunk building

---------

Signed-off-by: noelwei <fan@scroll.io>

* update zktrie

* use v0.8 for zktrie

* use v0.9 for zktrie

* update cargo lock

---------

Signed-off-by: noelwei <fan@scroll.io>
Co-authored-by: Ho <noel.wei@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants