paradigmxyz / reth

Modular, contributor-friendly and blazing-fast implementation of the Ethereum protocol, in Rust
https://reth.rs/
Apache License 2.0
3.97k stars 1.2k forks source link

Tracking: `StateCommitment` abstraction #11830

Open frisitano opened 1 month ago

frisitano commented 1 month ago

Describe the feature

Overview

This issue will be used to plan the implementation of the StateCommitment implementation. The StateCommitment will be used to provide an abstraction over the types associated with the state commitment. This will allow reth to be used with different state representations configured by the user. Initial POC implemented here.

Plan

We will implement the StateCommitment via the following units of work:

Refactor codebase to leverage StateCommitment types for all operations:

Additional context

https://github.com/paradigmxyz/reth/pull/11786

### Tasks
- [ ] https://github.com/paradigmxyz/reth/pull/11842
- [ ] https://github.com/paradigmxyz/reth/pull/11867
- [ ] https://github.com/paradigmxyz/reth/pull/11872
- [ ] https://github.com/paradigmxyz/reth/pull/11874
Thegaram commented 3 weeks ago

This could be added to https://github.com/paradigmxyz/reth/issues/11241. @mattsse

Rjected commented 3 weeks ago

Just added to the tracking issue @Thegaram