This PR introduces a ScrollStateProviderDatabase, a similar construct as the StateProviderDatabase but providing a cache layer for the code size and the Poseidon code hash of every touched account's bytecode via the ScrollPostExecutionContext (mapping from Keccak hash of an account's bytecode to the code size and Poseidon hash).
Build towards #7 and should be reviewed after #30.
Context
This PR introduces a
ScrollStateProviderDatabase
, a similar construct as theStateProviderDatabase
but providing a cache layer for the code size and the Poseidon code hash of every touched account's bytecode via theScrollPostExecutionContext
(mapping from Keccak hash of an account's bytecode to the code size and Poseidon hash).Build towards #7 and should be reviewed after #30.