Memorizers
Memorizers are Cairo0 dictionaries populated during verification, then read during module execution. Core memorizer domains:- EVM: headers, accounts, storage, txs, receipts, logs
- Starknet: headers, storage
- Injected state: custom trie-backed state
- Unconstrained: large blobs validated by hash
Injected state
Injected state is a custom persistent state model backed by a Patricia trie and served bystate_server.
Typical use:
- Start State Server
- Provide
--injected_state <json>in dry run and sound run - Fetch state proofs during stage 2
- Read/write with
hdp.injected_stateAPIs in your module
INJECTED_STATE_BASE_URL
Unconstrained data
Unconstrained mode is used for large payloads like EVM bytecode. Flow:- Dry run collects the key and payload source
- Sound run loads payload from memorizer
- HDP validates payload hash (for bytecode, against account code hash)
evm_account_get_bytecode(key) -> ByteCode

