mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
accounts/keystore: use min/max/clear from go1.21 (#29307)
This commit is contained in:
parent
30dc0f47c9
commit
dfc0f112b8
1 changed files with 1 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue