go-ethereum/trie
Péter Garamvölgyi 81e7775aa8
feat: dual code hash (#188)
* add KeccakCodeHash and CodeSize to StateAccount

* update StateAccount marshalling logic

* change emptyCodeHash to poseidon(nil)

* purge StateAccount.hash

* fix/disable failing tests

* change keccak and poseidon hash order in StateAccount

* fix lint

* update l2trace account wrapper

* update eth_getProof response type

* fix eth_getProof response type

* goimports

* update the codehash computation

* update the codehash test cases

* go mod tidy

* fix tests

* use keccak instead of poseidon

* update trace codehash field name

* upgrade zktrie to 4.2

* trigger ci

* update state account marshalling according to spec

* improve generatorStats estimation

* add comment

* upgrade zktrie to 4.3

* go mod tidy

* misc fixes

* fix TestDump

* fix snap sync tests

* handle err in the codehash

* fix tests in snapshot/generate_test.go

* remove prevhash from state journal

* add state_account_marshalling_test.go

* goimports

* add more tests

---------

Co-authored-by: Ho Vei <noelwei@gmail.com>
Co-authored-by: Haichen Shen <shenhaichen@gmail.com>
2023-02-08 16:12:41 -08:00
..
zkproof feat: dual code hash (#188) 2023-02-08 16:12:41 -08:00
committer.go Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
database.go zktrie part2: add zktrie; allow switch trie type by config; (#113) 2022-06-27 11:17:02 +08:00
database_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
database_types.go zktrie part2: add zktrie; allow switch trie type by config; (#113) 2022-06-27 11:17:02 +08:00
encoding.go trie: use stacktrie for Derivesha operation (#21407) 2020-09-29 17:38:13 +02:00
encoding_test.go trie: use stacktrie for Derivesha operation (#21407) 2020-09-29 17:38:13 +02:00
errors.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
hasher.go Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
iterator.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
iterator_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
node.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
node_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
proof.go zktrie part2: add zktrie; allow switch trie type by config; (#113) 2022-06-27 11:17:02 +08:00
proof_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
secure_trie.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
secure_trie_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
stacktrie.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
stacktrie_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
sync.go feat: dual code hash (#188) 2023-02-08 16:12:41 -08:00
sync_bloom.go Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
sync_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
trie.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
trie_test.go feat: dual code hash (#188) 2023-02-08 16:12:41 -08:00
zk_trie.go chore: fix function name typos santiyCheckByte32Key -> sanityCheckByte32Key (#176) 2022-11-11 13:30:59 +08:00
zk_trie_database.go perf: use fastcache for zktrie node (#172) 2022-11-14 10:49:36 +08:00
zk_trie_impl_test.go feat: dual code hash (#188) 2023-02-08 16:12:41 -08:00
zk_trie_proof_test.go refactor: adapt to standalone zktrie module (#165) 2022-10-17 14:32:42 +08:00
zk_trie_test.go perf: use fastcache for zktrie node (#172) 2022-11-14 10:49:36 +08:00