mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 12:46:44 +00:00
accounts/keystore: zeroize decrypted key in Update() after use
This commit is contained in:
parent
18a902799e
commit
b762cbeeb8
1 changed files with 1 additions and 0 deletions
|
|
@ -477,6 +477,7 @@ func (ks *KeyStore) Update(a accounts.Account, passphrase, newPassphrase string)
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer zeroKey(key.PrivateKey)
|
||||
return ks.storage.StoreKey(a.URL.Path, key, newPassphrase)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue