storage_key_map

Function storage_key_map 

Source
pub fn storage_key_map(storage_key: &[u8], offset: u64) -> U256
Expand description

Computes a storage slot using the keccak256-based mapAddress algorithm.

The algorithm: hash(storage_key || key_bytes[0..31]) || key_bytes[31] This preserves the last byte and hashes only the first 31 bytes.