Had to make this change for my stuff, and I found this repo so useful I figured others might benefit. Upstream geth removed github.com/ethereum/go-ethereum/crypto/sha3. The golang.org/x/crypto/sha3 package contains the same code for NewKeccak256 as NewLegacyKeccak256.
I didn't test - ecrecover.go doesn't compile - but, I figure if you don't want the PR, it will at least be a reminder that this change has to be made.
Had to make this change for my stuff, and I found this repo so useful I figured others might benefit. Upstream geth removed
github.com/ethereum/go-ethereum/crypto/sha3
. Thegolang.org/x/crypto/sha3
package contains the same code forNewKeccak256
asNewLegacyKeccak256
.I didn't test - ecrecover.go doesn't compile - but, I figure if you don't want the PR, it will at least be a reminder that this change has to be made.