diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-05-30 19:24:01 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-05-30 19:24:01 +0800 |
commit | ec1700600a96e493dd0fac2a182dc191eaf227a0 (patch) | |
tree | f4a0b0eb9a555940c79fbf727436390ad9a04f34 /cmd/puppeth/wizard_node.go | |
parent | b0f30b0b37f2afcf9bf9fb8519abc7ffe595e615 (diff) | |
download | dexon-ec1700600a96e493dd0fac2a182dc191eaf227a0.tar.gz dexon-ec1700600a96e493dd0fac2a182dc191eaf227a0.tar.zst dexon-ec1700600a96e493dd0fac2a182dc191eaf227a0.zip |
cmd/puppeth: fix improper key validation for remotes
Diffstat (limited to 'cmd/puppeth/wizard_node.go')
-rw-r--r-- | cmd/puppeth/wizard_node.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/puppeth/wizard_node.go b/cmd/puppeth/wizard_node.go index 483d9fe05..05232486b 100644 --- a/cmd/puppeth/wizard_node.go +++ b/cmd/puppeth/wizard_node.go @@ -109,8 +109,7 @@ func (w *wizard) deployNode(boot bool) { } else if w.conf.genesis.Config.Clique != nil { // If a previous signer was already set, offer to reuse it if infos.keyJSON != "" { - var key keystore.Key - if err := json.Unmarshal([]byte(infos.keyJSON), &key); err != nil { + if key, err := keystore.DecryptKey([]byte(infos.keyJSON), infos.keyPass); err != nil { infos.keyJSON, infos.keyPass = "", "" } else { fmt.Println() |