Skip to content

Conversation

@phrwlk
Copy link
Contributor

@phrwlk phrwlk commented Nov 3, 2025

Add defer zeroKey(key.PrivateKey) in KeyStore.Update() to securely wipe the decrypted private key from memory after re-encrypting with the new passphrase. This change improves secret hygiene and aligns Update() with existing practices in SignHashWithPassphrase(), SignTxWithPassphrase(), Import(), and Delete()

@rjl493456442
Copy link
Member

Please zero the private key in Export as well

@phrwlk
Copy link
Contributor Author

phrwlk commented Nov 13, 2025

Please zero the private key in Export as well

Did it ser

@rjl493456442 rjl493456442 added this to the 1.16.8 milestone Nov 13, 2025
@rjl493456442 rjl493456442 changed the title accounts/keystore: zeroize decrypted key in Update() after use accounts/keystore: clear decrypted key after use Nov 13, 2025
@rjl493456442 rjl493456442 merged commit 488d987 into ethereum:master Nov 13, 2025
8 of 9 checks passed
atkinsonholly pushed a commit to atkinsonholly/ephemery-geth that referenced this pull request Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants