go-ethereum/libevm
Arran Schlosberg 464de82910
feat: state-key transformation w/ override (#205)
## Why this should be merged

`ava-labs/coreth` has a partitioned state-address space, achieved by
setting or clearing a specific bit in the hash used to key the space.
This change allows such behaviour to be achieved with pure `libevm`
instead of the `StateDB` wrapping that `coreth` currently uses.

## How this works

Introduction of `state.StateDBHooks` interface, including a
`TransformStateKey()` method that allows for arbitrary change of state
key. If registered, this hook will be honoured by
`StateDB.{Get,GetCommitted,State}Key()` methods unless they receive a
`stateconf.SkipStateKeyTransformation` option.

## How this was tested

Unit test of `SetState() -> GetState() + GetCommittedState()` round trip
with and without options to skip.
2025-07-22 13:08:53 -04:00
..
cmd/internalise feat: internalise command (#90) 2024-12-17 17:20:02 +01:00
ethapi feat: partially expose internal/ethapi package (#182) 2025-05-27 10:29:35 -04:00
ethtest test: lock in types.Header RLP encoding (#87) 2024-12-12 13:00:02 +00:00
hookstest chore: placate goheader (#195) 2025-06-23 15:25:18 +00:00
legacy fix(libevm/legacy): PrecompiledStatefulContract gas and remaining gas handling (#114) 2025-02-07 14:29:33 +01:00
options refactor: abstract options package (#74) 2024-11-21 13:59:51 -08:00
precompiles/p256verify feat: RIP-7212 precompile for P256 ECDSA verification (#184) 2025-06-10 10:28:02 -04:00
pseudo refactor!: consolidate params and types payload access (#84) 2024-12-09 18:32:15 +00:00
register refactor: consolidate once-only registration of extras (#85) 2024-12-09 17:43:59 +00:00
set chore: logging (#151) 2025-02-24 16:53:21 +00:00
stateconf feat: state-key transformation w/ override (#205) 2025-07-22 13:08:53 -04:00
sync feat(core/state): async trie prefetching (#76) 2024-11-26 08:01:47 -08:00
testonly test: StateAccount.Extra via trie.StateTrie.{Update,Get}Account() (#45) 2024-10-02 09:45:02 -07:00
tooling crypto/kz4844: pass blobs by ref (#29050) 2025-06-25 11:14:37 +01:00
interfaces_test.go Merge branch 'auto-rename-module_source-2bd6bd01d2e8561dd7fc21b631f4a34ac16627a1_workflow-c1fc594f020d23958b641a4e5a856b6e52c49d3bece94b95594864db16c1b0fc-main' into arr4n/rename-module 2024-10-17 13:07:28 +11:00
libevm.go feat: state-key transformation w/ override (#205) 2025-07-22 13:08:53 -04:00