Skip to content

Commit

Permalink
accounts/keystore: use min/max/clear from go1.21 (ethereum#29307)
Browse files Browse the repository at this point in the history
  • Loading branch information
gzliudan committed Jan 17, 2025
1 parent cce0282 commit eb56d90
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions accounts/keystore/keystore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit eb56d90

Please sign in to comment.