aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/ethkey/generate.go
diff options
context:
space:
mode:
authorSteven Roose <stevenroose@gmail.com>2018-06-08 21:07:07 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-06-08 21:07:07 +0800
commit13af27641829f61d1e6b383e37aab6caae22f2c1 (patch)
tree35607044459f66249bf8d39e32996b1fcd0c4cf7 /cmd/ethkey/generate.go
parentea06da089264508601a9f967160b8c7f335071fa (diff)
downloaddexon-13af27641829f61d1e6b383e37aab6caae22f2c1.tar
dexon-13af27641829f61d1e6b383e37aab6caae22f2c1.tar.gz
dexon-13af27641829f61d1e6b383e37aab6caae22f2c1.tar.bz2
dexon-13af27641829f61d1e6b383e37aab6caae22f2c1.tar.lz
dexon-13af27641829f61d1e6b383e37aab6caae22f2c1.tar.xz
dexon-13af27641829f61d1e6b383e37aab6caae22f2c1.tar.zst
dexon-13af27641829f61d1e6b383e37aab6caae22f2c1.zip
cmd/ethkey: add command to change key passphrase (#16516)
This change introduces ethkey changepassphrase <keyfile> to change the passphrase of a key file.
Diffstat (limited to 'cmd/ethkey/generate.go')
-rw-r--r--cmd/ethkey/generate.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/ethkey/generate.go b/cmd/ethkey/generate.go
index 6d57d17fb..fe9a0c151 100644
--- a/cmd/ethkey/generate.go
+++ b/cmd/ethkey/generate.go
@@ -90,7 +90,7 @@ If you want to encrypt an existing private key, it can be specified by setting
}
// Encrypt key with passphrase.
- passphrase := getPassPhrase(ctx, true)
+ passphrase := promptPassphrase(true)
keyjson, err := keystore.EncryptKey(key, passphrase, keystore.StandardScryptN, keystore.StandardScryptP)
if err != nil {
utils.Fatalf("Error encrypting key: %v", err)