feat(trie): expose storage proofs (#11550)

This commit is contained in:
Roman Krasiuk
2024-10-08 11:47:15 +02:00
committed by GitHub
parent 6e92ab8e43
commit 548f5b9c6d
15 changed files with 221 additions and 28 deletions

View File

@ -11,7 +11,8 @@ use reth_storage_api::{
};
use reth_storage_errors::provider::ProviderResult;
use reth_trie::{
updates::TrieUpdates, AccountProof, HashedPostState, HashedStorage, MultiProof, TrieInput,
updates::TrieUpdates, AccountProof, HashedPostState, HashedStorage, MultiProof, StorageProof,
TrieInput,
};
/// Mock state for testing
@ -102,6 +103,15 @@ impl StorageRootProvider for StateProviderTest {
) -> ProviderResult<B256> {
unimplemented!("storage root is not supported")
}
fn storage_proof(
&self,
_address: Address,
_slot: B256,
_hashed_storage: HashedStorage,
) -> ProviderResult<StorageProof> {
unimplemented!("proof generation is not supported")
}
}
impl StateProofProvider for StateProviderTest {