go-ethereum/eth
Péter Garamvölgyi 304af60f50
feat: change bytecode hash function from Keccak to Poseidon (#149)
* feat: change bytecode hash function from Keccak to Poseidon

* fix TestStateProcessorErrors

* rename files

* copy iden3's poseidon package to local

* update poseidon hash

* apply new hash in codehash

* extend hash method, use actual code size as cap

* prune keccak(nil) for empty code

* update empty code hash references to Poseidon

* add TestPoseidonCodeHash

* use keccak for empty code hash

* go mod tidy

* goimports

* use Poseidon code hash in state and sync tests

* run goimports

* run goimports

* remove unnecessary reallocation from CodeHash

* goimports

* move codehash API to separate module

* add missing package

* fix review comments

* improve comments

Co-authored-by: Ho Vei <noelwei@gmail.com>
2022-09-08 06:16:17 +08:00
..
catalyst Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
downloader Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
ethconfig zktrie part3: include zktrie witness in block trace; add demo for generating witness data for mpt circuit (#123) 2022-07-16 07:00:07 +08:00
fetcher Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
filters feat: add more data into the execution trace (#20) 2022-02-21 10:15:57 +08:00
gasprice Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
protocols feat: change bytecode hash function from Keccak to Poseidon (#149) 2022-09-08 06:16:17 +08:00
tracers core/vm: Make INVALID a defined opcode (#118) 2022-06-22 17:18:47 +08:00
api.go feat: add more data into the execution trace (#20) 2022-02-21 10:15:57 +08:00
api_backend.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
api_test.go Add goimports lint (#54) 2022-03-24 16:53:59 +08:00
backend.go feat: re-enable p2p layer (#152) 2022-09-07 10:00:40 +02:00
bloombits.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
discovery.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
handler.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
handler_eth.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
handler_eth_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
handler_snap.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
handler_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
peer.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
peerset.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00
state_accessor.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_test.go Update mod file and all imports to use scroll-tech URL (#15) 2021-12-24 10:59:22 +01:00