go-ethereum/trie
Ho c516a9e477
zktrie part2: add zktrie; allow switch trie type by config; (#113)
* induce zktrie

* refactoring zktrie

* fix crash issue in logger

* renaming JSON field

* unify hash scheme

* goimport and mod lint

* backward compatible with go 1.17

* lints

* add option on genesis file

* corrections according to the reviews

* trivial fixes: ValueKey entry, key in prove nodes

* fixing for the proof fix ...

* avoiding panic before loading stateDb in genesis setup

* revert ExtraData.StateList json annotation for compatibility

* fix goimports lint

* fix goimports lint

* better encoding for leaf node

* fix proof's printing issue, add handling on coinbase

* update genesis, and rule out snapshot in zktrie mode

* update readme and lint

* fix an issue

Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
Co-authored-by: HAOYUatHZ <haoyu@protonmail.com>
2022-06-27 11:17:02 +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 Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01: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 Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
zk_trie.go zktrie part2: add zktrie; allow switch trie type by config; (#113) 2022-06-27 11:17:02 +08:00
zk_trie_database.go zktrie part2: add zktrie; allow switch trie type by config; (#113) 2022-06-27 11:17:02 +08:00
zk_trie_impl.go zktrie part2: add zktrie; allow switch trie type by config; (#113) 2022-06-27 11:17:02 +08:00
zk_trie_impl_test.go zktrie part2: add zktrie; allow switch trie type by config; (#113) 2022-06-27 11:17:02 +08:00
zk_trie_node.go zktrie part2: add zktrie; allow switch trie type by config; (#113) 2022-06-27 11:17:02 +08:00
zk_trie_proof.go zktrie part2: add zktrie; allow switch trie type by config; (#113) 2022-06-27 11:17:02 +08:00
zk_trie_proof_test.go zktrie part2: add zktrie; allow switch trie type by config; (#113) 2022-06-27 11:17:02 +08:00
zk_trie_test.go zktrie part2: add zktrie; allow switch trie type by config; (#113) 2022-06-27 11:17:02 +08:00