Update binaries to use our key commands, not the ones from go-crypto

This commit is contained in:
Ethan Frey
2017-09-08 20:47:46 +02:00
parent ed690b8aa3
commit 8fbf923c25
14 changed files with 19 additions and 22 deletions
+1 -1
View File
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package cmd
package keys
import (
"fmt"
+1 -1
View File
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package cmd
package keys
import (
"github.com/pkg/errors"
+1 -1
View File
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package cmd
package keys
import "github.com/spf13/cobra"
+1 -1
View File
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package cmd
package keys
import (
"fmt"
+1 -1
View File
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package cmd
package keys
import (
"github.com/pkg/errors"
+1 -1
View File
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package cmd
package keys
import (
"github.com/spf13/cobra"
+1 -1
View File
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package cmd
package keys
import (
"fmt"
+1 -1
View File
@@ -1,4 +1,4 @@
package cmd
package keys
import (
"bufio"
+2 -2
View File
@@ -10,12 +10,11 @@ import (
"strings"
"github.com/bgentry/speakeasy"
"github.com/mattn/go-isatty"
isatty "github.com/mattn/go-isatty"
"github.com/pkg/errors"
"github.com/spf13/viper"
crypto "github.com/tendermint/go-crypto"
keycmd "github.com/tendermint/go-crypto/cmd"
"github.com/tendermint/go-crypto/keys"
wire "github.com/tendermint/go-wire"
"github.com/tendermint/go-wire/data"
@@ -24,6 +23,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk"
"github.com/cosmos/cosmos-sdk/client/commands"
keycmd "github.com/cosmos/cosmos-sdk/client/commands/keys"
"github.com/cosmos/cosmos-sdk/modules/auth"
)
+4 -3
View File
@@ -6,10 +6,11 @@ import (
"github.com/gorilla/mux"
"github.com/pkg/errors"
sdk "github.com/cosmos/cosmos-sdk"
keysutils "github.com/tendermint/go-crypto/cmd"
keys "github.com/tendermint/go-crypto/keys"
"github.com/tendermint/tmlibs/common"
sdk "github.com/cosmos/cosmos-sdk"
keycmd "github.com/cosmos/cosmos-sdk/client/commands/keys"
)
type Keys struct {
@@ -18,7 +19,7 @@ type Keys struct {
}
func DefaultKeysManager() keys.Manager {
return keysutils.GetKeyManager()
return keycmd.GetKeyManager()
}
func NewDefaultKeysManager(algo string) *Keys {
+1 -1
View File
@@ -1,7 +1,6 @@
package rest
import (
keycmd "github.com/tendermint/go-crypto/cmd"
"github.com/tendermint/go-crypto/keys"
wire "github.com/tendermint/go-wire"
@@ -9,6 +8,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk"
"github.com/cosmos/cosmos-sdk/client/commands"
keycmd "github.com/cosmos/cosmos-sdk/client/commands/keys"
)
// PostTx is same as a tx