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§
Sourcetype AccountNodeProvider: BlindedProvider
type AccountNodeProvider: BlindedProvider
Type capable of fetching blinded account nodes.
Sourcetype StorageNodeProvider: BlindedProvider
type StorageNodeProvider: BlindedProvider
Type capable of fetching blinded storage nodes.
Required Methods§
Sourcefn account_node_provider(&self) -> Self::AccountNodeProvider
fn account_node_provider(&self) -> Self::AccountNodeProvider
Returns blinded account node provider.
Sourcefn storage_node_provider(&self, account: B256) -> Self::StorageNodeProvider
fn storage_node_provider(&self, account: B256) -> Self::StorageNodeProvider
Returns blinded storage node provider.