Interface WorldStatePreimageStorage


public interface WorldStatePreimageStorage
Stores and retrieves preimage mappings for the Ethereum world-state trie.
  • Method Details

    • getStorageTrieKeyPreimage

      Optional<org.apache.tuweni.units.bigints.UInt256> getStorageTrieKeyPreimage(org.apache.tuweni.bytes.Bytes32 trieKey)
      Returns the storage slot index preimage for the given storage trie key.
      Parameters:
      trieKey - whose associated with storage index being retrieved
      Returns:
      an Optional containing the UInt256 slot index, or empty if not found
    • getAccountTrieKeyPreimage

      Optional<org.hyperledger.besu.datatypes.Address> getAccountTrieKeyPreimage(org.apache.tuweni.bytes.Bytes32 trieKey)
      Returns the account address preimage for the given account trie key
      Parameters:
      trieKey - whose associated with the Address is being retrieved
      Returns:
      an Optional containing the Address, or empty if not found
    • updater

      Creates and returns a new WorldStatePreimageStorage.Updater for batching preimage write operations.
      Returns:
      a new WorldStatePreimageStorage.Updater scoped to a single write transaction