cmd/ethkey: support --passwordfile in generate command (#21183)

This commit is contained in:
libby kent
2020-06-08 18:55:51 +09:00
committed by GitHub
parent da06519347
commit 45b7535137
5 changed files with 6 additions and 6 deletions

View File

@ -94,7 +94,7 @@ If you want to encrypt an existing private key, it can be specified by setting
}
// Encrypt key with passphrase.
passphrase := promptPassphrase(true)
passphrase := getPassphrase(ctx, true)
scryptN, scryptP := keystore.StandardScryptN, keystore.StandardScryptP
if ctx.Bool("lightkdf") {
scryptN, scryptP = keystore.LightScryptN, keystore.LightScryptP