Skip to content

Commit 883d508

Browse files
authored
Introduce Scroll Binary Patricia Merkle Trie Components (#36)
* feat: introduce scroll trie hash builder * refactor: refactor HashBuilder implementation * feat: introduce StateCommitment in StateProviders * feat: introduce binary partricia trie state components * refactor: introduce StateCommimentProvider * feat: introduce HashedPostStateProvider * feat: HashedPostState from reverts * feat: introduce HashedStorageProvider * lint: revm/test-utils feature propogation * fix: add Send + Sync bound on introduced storage state api methods * feat: introduce KeyHasherProvider * feat: introduce StateRootProviderExt and integrate it (and StateRootProvider) with StateCommitment * chore: address PR feedback and enhance test coverage * fix: add merge files * fix lint * fix lint * fmt * add KeyHasher generic to DatabaseHashedStorage::from_reverts trait * add merge files * add merge files * fix: propagate feature * add merge files * cleanup Cargo.toml files * fix: Cargo.toml dependencies * refactor: refactor Cargo.toml and put tests behind scroll feature * lints and replace keccak with poseidon for HashedStorage instantiation * fix deny license and add scroll specific tests to ci * fix unit github workflow * lint and deny * fix Cargo.toml * add go build to allowed sources * update Cargo.lock * update unit ci workflow to exclude --workspace by default * fix ci and address PR feedback * replace TODO(frisitano) with TODO(scroll) * replace use of unwrap(..) in library code with expect(..) * add zktrie specification to crates/scroll/trie * chore: fix clsoing bracket in Cargo.toml
1 parent ba07042 commit 883d508

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+2945
-287
lines changed

.github/workflows/unit.yml

+12-8
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,27 @@ jobs:
2626
matrix:
2727
include:
2828
- type: ethereum
29-
args: --features "asm-keccak ethereum" --locked
29+
args: --features "asm-keccak ethereum" --locked --workspace --exclude ef-tests
3030
partition: 1
3131
total_partitions: 2
3232
- type: ethereum
33-
args: --features "asm-keccak ethereum" --locked
33+
args: --features "asm-keccak ethereum" --locked --workspace --exclude ef-tests
3434
partition: 2
3535
total_partitions: 2
3636
- type: optimism
37-
args: --features "asm-keccak optimism" --locked --exclude reth --exclude reth-bench --exclude "example-*" --exclude "reth-ethereum-*" --exclude "*-ethereum"
37+
args: --features "asm-keccak optimism" --locked --exclude reth --exclude reth-bench --exclude "example-*" --exclude "reth-ethereum-*" --exclude "*-ethereum" --workspace --exclude ef-tests
3838
partition: 1
3939
total_partitions: 2
4040
- type: optimism
41-
args: --features "asm-keccak optimism" --locked --exclude reth --exclude reth-bench --exclude "example-*" --exclude "reth-ethereum-*" --exclude "*-ethereum"
41+
args: --features "asm-keccak optimism" --locked --exclude reth --exclude reth-bench --exclude "example-*" --exclude "reth-ethereum-*" --exclude "*-ethereum" --workspace --exclude ef-tests
4242
partition: 2
4343
total_partitions: 2
44+
- type: scroll
45+
args: -p reth-scroll-state-commitment --locked --features "scroll"
46+
partition: 1
47+
total_partitions: 1
4448
- type: book
45-
args: --manifest-path book/sources/Cargo.toml
49+
args: --manifest-path book/sources/Cargo.toml --workspace --exclude ef-tests
4650
partition: 1
4751
total_partitions: 1
4852
timeout-minutes: 30
@@ -62,9 +66,9 @@ jobs:
6266
- name: Run tests
6367
run: |
6468
cargo nextest run \
65-
${{ matrix.args }} --workspace \
66-
--exclude ef-tests --no-tests=warn \
67-
--partition hash:${{ matrix.partition }}/2 \
69+
${{ matrix.args }} \
70+
--no-tests=warn \
71+
--partition hash:${{ matrix.partition }}/${{ matrix.total_partitions }} \
6872
-E "!kind(test)"
6973
7074
state:

0 commit comments

Comments
 (0)