Update keystore.go

This commit is contained in:
phrwlk 2025-11-13 09:26:23 +02:00 committed by GitHub
parent b762cbeeb8
commit 0d6fb468d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -418,6 +418,7 @@ func (ks *KeyStore) Export(a accounts.Account, passphrase, newPassphrase string)
if err != nil {
return nil, err
}
defer zeroKey(key.PrivateKey)
var N, P int
if store, ok := ks.storage.(*keyStorePassphrase); ok {
N, P = store.scryptN, store.scryptP