accounts/keystore: use min/max/clear from go1.21 (#29307)

This commit is contained in:
Daniel Liu 2025-01-14 10:56:16 +08:00
parent 30dc0f47c9
commit dfc0f112b8

View file

@ -511,7 +511,5 @@ func (ks *KeyStore) isUpdating() bool {
// zeroKey zeroes a private key in memory.
func zeroKey(k *ecdsa.PrivateKey) {
b := k.D.Bits()
for i := range b {
b[i] = 0
}
clear(b)
}