Trait reth_storage_api::StorageRootProvider

source ·
pub trait StorageRootProvider: Send + Sync {
    // Required method
    fn storage_root(
        &self,
        address: Address,
        hashed_storage: HashedStorage,
    ) -> ProviderResult<B256>;
}
Expand description

A type that can compute the storage root for a given account.

Required Methods§

source

fn storage_root( &self, address: Address, hashed_storage: HashedStorage, ) -> ProviderResult<B256>

Returns the storage root of the HashedStorage for target address on top of the current state.

Implementations on Foreign Types§

source§

impl<'a, T: 'a + StorageRootProvider + ?Sized> StorageRootProvider for &'a T
where &'a T: Send + Sync,

source§

fn storage_root( &self, address: Address, hashed_storage: HashedStorage, ) -> ProviderResult<B256>

source§

impl<T: StorageRootProvider + ?Sized> StorageRootProvider for Box<T>
where Box<T>: Send + Sync,

source§

fn storage_root( &self, address: Address, hashed_storage: HashedStorage, ) -> ProviderResult<B256>

source§

impl<T: StorageRootProvider + ?Sized> StorageRootProvider for Arc<T>
where Arc<T>: Send + Sync,

source§

fn storage_root( &self, address: Address, hashed_storage: HashedStorage, ) -> ProviderResult<B256>

Implementors§