reth_trie_sparse::blinded

Trait BlindedProviderFactory

Source
pub trait BlindedProviderFactory {
    type AccountNodeProvider: BlindedProvider;
    type StorageNodeProvider: BlindedProvider;

    // Required methods
    fn account_node_provider(&self) -> Self::AccountNodeProvider;
    fn storage_node_provider(&self, account: B256) -> Self::StorageNodeProvider;
}
Expand description

Factory for instantiating blinded node providers.

Required Associated Types§

Source

type AccountNodeProvider: BlindedProvider

Type capable of fetching blinded account nodes.

Source

type StorageNodeProvider: BlindedProvider

Type capable of fetching blinded storage nodes.

Required Methods§

Source

fn account_node_provider(&self) -> Self::AccountNodeProvider

Returns blinded account node provider.

Source

fn storage_node_provider(&self, account: B256) -> Self::StorageNodeProvider

Returns blinded storage node provider.

Implementors§