go-ethereum/crypto
Daniel Liu 9cad0a0cc0
all: create global hasher pool #31769 (#1233)
This PR creates a global hasher pool that can be used by all packages.
It also removes a bunch of the package local pools.

It also updates a few locations to use available hashers or the global
hashing pool to reduce allocations all over the codebase.
This change should reduce global allocation count by ~1%

---------

Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2025-08-20 15:11:09 +08:00
..
blake2b crypto: fix some typos in comments and names (#31023) 2025-03-19 18:02:46 +08:00
bn256 crypto/bn256/gnark: align marshaling behavior #32065 (#1231) 2025-08-20 15:09:36 +08:00
ecies crypto: fix some typos in comments and names (#31023) 2025-03-19 18:02:46 +08:00
secp256k1 crypto/secp256k1: update libsecp256k1 (#31242) 2025-03-19 18:02:46 +08:00
crypto.go all: create global hasher pool #31769 (#1233) 2025-08-20 15:11:09 +08:00
crypto_test.go core/txpool, crypto, node: fix os.CreateTemp in test (#31172) 2025-03-19 18:02:46 +08:00
signature_cgo.go crypto: use pure Go signature implementation in tinygo #31878 (#1226) 2025-07-26 17:33:55 +08:00
signature_nocgo.go crypto: use pure Go signature implementation in tinygo #31878 (#1226) 2025-07-26 17:33:55 +08:00
signature_test.go crypto: fix docstrings and comments 2025-01-04 11:00:57 +08:00