diff --git a/client/keys/add.go b/client/keys/add.go index 29ed3e456..21a372e2f 100644 --- a/client/keys/add.go +++ b/client/keys/add.go @@ -241,6 +241,7 @@ func AddNewKeyRequestHandler(indent bool) http.HandlerFunc { PostProcessResponse(w, cdc, keyOutput, indent) } } + // function to just a new seed to display in the UI before actually persisting it in the keybase func getSeed(algo keys.SigningAlgo) string { kb := client.MockKeyBase() @@ -341,4 +342,4 @@ func RecoverRequestHandler(indent bool) http.HandlerFunc { PostProcessResponse(w, cdc, keyOutput, indent) } -} \ No newline at end of file +} diff --git a/client/keys/errors.go b/client/keys/errors.go index 2689a918f..9c6139d7a 100644 --- a/client/keys/errors.go +++ b/client/keys/errors.go @@ -16,4 +16,4 @@ func errMissingPassword() error { func errMissingSeed() error { return fmt.Errorf("you have to specify seed for key recover") -} \ No newline at end of file +} diff --git a/client/keys/utils.go b/client/keys/utils.go index a4fa867eb..4ca8fc8f4 100644 --- a/client/keys/utils.go +++ b/client/keys/utils.go @@ -12,9 +12,9 @@ import ( "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" "net/http" - "github.com/cosmos/cosmos-sdk/codec" ) // KeyDBName is the directory under root where we store the keys