plugeth/accounts/keystore
Martin Holst Swende 2391fbc676
tests/fuzzers: move fuzzers into native packages (#28467)
This PR moves our fuzzers from tests/fuzzers into whatever their respective 'native' package is.

The historical reason why they were placed in an external location, is that when they were based on go-fuzz, they could not be "hidden" via the _test.go prefix. So in order to shove them away from the go-ethereum "production code", they were put aside.

But now we've rewritten them to be based on golang testing, and thus can be brought back. I've left (in tests/) the ones that are not production (bls128381), require non-standard imports (secp requires btcec, bn256 requires gnark/google/cloudflare deps).

This PR also adds a fuzzer for precompiled contracts, because why not.

This PR utilizes a newly rewritten replacement for go-118-fuzz-build, namely gofuzz-shim, which utilises the inputs from the fuzzing engine better.
2023-11-14 14:34:29 +01:00
..
testdata all: replace passPHRASE with passWORD in user interactions (#19932) 2019-08-12 12:00:38 +03:00
account_cache_test.go accounts/keystore: use slices package for sorting (#27485) 2023-06-19 08:34:47 +02:00
account_cache.go all: update golang/x/ext and fix slice sorting fallout (#27909) 2023-08-12 00:04:12 +02:00
file_cache.go all: use github.com/deckarep/golang-set/v2 (generic set) (#26159) 2022-11-14 15:16:52 +01:00
key.go all: replace uses of ioutil with io and os (#24869) 2022-05-16 11:59:35 +02:00
keystore_fuzzing_test.go tests/fuzzers: move fuzzers into native packages (#28467) 2023-11-14 14:34:29 +01:00
keystore_test.go accounts: use atomic type (#27857) 2023-08-07 03:11:50 -04:00
keystore.go accounts/keystore: faster tests (#25827) 2022-10-12 10:53:01 +02:00
passphrase_test.go all: more linters (#24783) 2022-06-13 16:24:45 +02:00
passphrase.go accounts/keystore: handle error for invalid key in DecryptKey (#27432) 2023-06-07 15:10:42 +02:00
plain_test.go all: use T.TempDir to create temporary test directories (#24633) 2022-04-08 15:44:55 +02:00
plain.go accounts/keystore: delete the redundant keystore in filename (#17930) 2018-11-29 12:04:56 +02:00
presale.go accounts/keystore: use github.com/google/uuid (#22217) 2021-02-26 15:28:34 +01:00
wallet.go accounts/keystore: add missing function doc for SignText (#21914) 2020-11-30 09:03:24 +01:00
watch_fallback.go accounts/keystore: faster tests (#25827) 2022-10-12 10:53:01 +02:00
watch.go cmd/clef: suppress fsnotify error if keydir not exists (#28160) 2023-09-20 06:39:46 -04:00