anvil::eth::backend::mem

Function prove_storage

Source
pub fn prove_storage(
    storage: &HashMap<U256, U256>,
    keys: &[B256],
) -> Vec<Vec<Bytes>>
Expand description

Prove a storage key’s existence or nonexistence in the account’s storage trie.

storage_key is the hash of the desired storage key, meaning this will only work correctly under a secure trie. storage_key == keccak(key)