Update binaries to use our key commands, not the ones from go-crypto
This commit is contained in:
parent
ed690b8aa3
commit
8fbf923c25
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
package cmd
|
package keys
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
package cmd
|
package keys
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
package cmd
|
package keys
|
||||||
|
|
||||||
import "github.com/spf13/cobra"
|
import "github.com/spf13/cobra"
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
package cmd
|
package keys
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
package cmd
|
package keys
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
package cmd
|
package keys
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
package cmd
|
package keys
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package cmd
|
package keys
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
|
|
|
@ -10,12 +10,11 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/bgentry/speakeasy"
|
"github.com/bgentry/speakeasy"
|
||||||
"github.com/mattn/go-isatty"
|
isatty "github.com/mattn/go-isatty"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
crypto "github.com/tendermint/go-crypto"
|
crypto "github.com/tendermint/go-crypto"
|
||||||
keycmd "github.com/tendermint/go-crypto/cmd"
|
|
||||||
"github.com/tendermint/go-crypto/keys"
|
"github.com/tendermint/go-crypto/keys"
|
||||||
wire "github.com/tendermint/go-wire"
|
wire "github.com/tendermint/go-wire"
|
||||||
"github.com/tendermint/go-wire/data"
|
"github.com/tendermint/go-wire/data"
|
||||||
|
@ -24,6 +23,7 @@ import (
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk"
|
sdk "github.com/cosmos/cosmos-sdk"
|
||||||
"github.com/cosmos/cosmos-sdk/client/commands"
|
"github.com/cosmos/cosmos-sdk/client/commands"
|
||||||
|
keycmd "github.com/cosmos/cosmos-sdk/client/commands/keys"
|
||||||
"github.com/cosmos/cosmos-sdk/modules/auth"
|
"github.com/cosmos/cosmos-sdk/modules/auth"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -6,10 +6,11 @@ import (
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk"
|
|
||||||
keysutils "github.com/tendermint/go-crypto/cmd"
|
|
||||||
keys "github.com/tendermint/go-crypto/keys"
|
keys "github.com/tendermint/go-crypto/keys"
|
||||||
"github.com/tendermint/tmlibs/common"
|
"github.com/tendermint/tmlibs/common"
|
||||||
|
|
||||||
|
sdk "github.com/cosmos/cosmos-sdk"
|
||||||
|
keycmd "github.com/cosmos/cosmos-sdk/client/commands/keys"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Keys struct {
|
type Keys struct {
|
||||||
|
@ -18,7 +19,7 @@ type Keys struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func DefaultKeysManager() keys.Manager {
|
func DefaultKeysManager() keys.Manager {
|
||||||
return keysutils.GetKeyManager()
|
return keycmd.GetKeyManager()
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewDefaultKeysManager(algo string) *Keys {
|
func NewDefaultKeysManager(algo string) *Keys {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
package rest
|
package rest
|
||||||
|
|
||||||
import (
|
import (
|
||||||
keycmd "github.com/tendermint/go-crypto/cmd"
|
|
||||||
"github.com/tendermint/go-crypto/keys"
|
"github.com/tendermint/go-crypto/keys"
|
||||||
wire "github.com/tendermint/go-wire"
|
wire "github.com/tendermint/go-wire"
|
||||||
|
|
||||||
|
@ -9,6 +8,7 @@ import (
|
||||||
|
|
||||||
sdk "github.com/cosmos/cosmos-sdk"
|
sdk "github.com/cosmos/cosmos-sdk"
|
||||||
"github.com/cosmos/cosmos-sdk/client/commands"
|
"github.com/cosmos/cosmos-sdk/client/commands"
|
||||||
|
keycmd "github.com/cosmos/cosmos-sdk/client/commands/keys"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PostTx is same as a tx
|
// PostTx is same as a tx
|
||||||
|
|
|
@ -5,11 +5,11 @@ import (
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
keycmd "github.com/tendermint/go-crypto/cmd"
|
|
||||||
"github.com/tendermint/tmlibs/cli"
|
"github.com/tendermint/tmlibs/cli"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client/commands"
|
"github.com/cosmos/cosmos-sdk/client/commands"
|
||||||
"github.com/cosmos/cosmos-sdk/client/commands/auto"
|
"github.com/cosmos/cosmos-sdk/client/commands/auto"
|
||||||
|
"github.com/cosmos/cosmos-sdk/client/commands/keys"
|
||||||
"github.com/cosmos/cosmos-sdk/client/commands/proxy"
|
"github.com/cosmos/cosmos-sdk/client/commands/proxy"
|
||||||
"github.com/cosmos/cosmos-sdk/client/commands/query"
|
"github.com/cosmos/cosmos-sdk/client/commands/query"
|
||||||
rpccmd "github.com/cosmos/cosmos-sdk/client/commands/rpc"
|
rpccmd "github.com/cosmos/cosmos-sdk/client/commands/rpc"
|
||||||
|
@ -76,7 +76,7 @@ func main() {
|
||||||
BaseCli.AddCommand(
|
BaseCli.AddCommand(
|
||||||
commands.InitCmd,
|
commands.InitCmd,
|
||||||
commands.ResetCmd,
|
commands.ResetCmd,
|
||||||
keycmd.RootCmd,
|
keys.RootCmd,
|
||||||
seeds.RootCmd,
|
seeds.RootCmd,
|
||||||
rpccmd.RootCmd,
|
rpccmd.RootCmd,
|
||||||
query.RootCmd,
|
query.RootCmd,
|
||||||
|
|
|
@ -5,10 +5,10 @@ import (
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
keycmd "github.com/tendermint/go-crypto/cmd"
|
|
||||||
"github.com/tendermint/tmlibs/cli"
|
"github.com/tendermint/tmlibs/cli"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client/commands"
|
"github.com/cosmos/cosmos-sdk/client/commands"
|
||||||
|
"github.com/cosmos/cosmos-sdk/client/commands/keys"
|
||||||
"github.com/cosmos/cosmos-sdk/client/commands/proxy"
|
"github.com/cosmos/cosmos-sdk/client/commands/proxy"
|
||||||
"github.com/cosmos/cosmos-sdk/client/commands/query"
|
"github.com/cosmos/cosmos-sdk/client/commands/query"
|
||||||
"github.com/cosmos/cosmos-sdk/client/commands/seeds"
|
"github.com/cosmos/cosmos-sdk/client/commands/seeds"
|
||||||
|
@ -73,7 +73,7 @@ func main() {
|
||||||
commands.InitCmd,
|
commands.InitCmd,
|
||||||
commands.ResetCmd,
|
commands.ResetCmd,
|
||||||
commands.VersionCmd,
|
commands.VersionCmd,
|
||||||
keycmd.RootCmd,
|
keys.RootCmd,
|
||||||
seeds.RootCmd,
|
seeds.RootCmd,
|
||||||
query.RootCmd,
|
query.RootCmd,
|
||||||
txcmd.RootCmd,
|
txcmd.RootCmd,
|
||||||
|
|
|
@ -5,12 +5,10 @@ import (
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
keycmd "github.com/tendermint/go-crypto/cmd"
|
|
||||||
"github.com/tendermint/tmlibs/cli"
|
"github.com/tendermint/tmlibs/cli"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client/commands"
|
"github.com/cosmos/cosmos-sdk/client/commands"
|
||||||
"github.com/cosmos/cosmos-sdk/client/commands/auto"
|
"github.com/cosmos/cosmos-sdk/client/commands/auto"
|
||||||
"github.com/cosmos/cosmos-sdk/client/commands/proxy"
|
|
||||||
"github.com/cosmos/cosmos-sdk/client/commands/query"
|
"github.com/cosmos/cosmos-sdk/client/commands/query"
|
||||||
rpccmd "github.com/cosmos/cosmos-sdk/client/commands/rpc"
|
rpccmd "github.com/cosmos/cosmos-sdk/client/commands/rpc"
|
||||||
"github.com/cosmos/cosmos-sdk/client/commands/seeds"
|
"github.com/cosmos/cosmos-sdk/client/commands/seeds"
|
||||||
|
@ -52,12 +50,10 @@ func main() {
|
||||||
// we use out own init command to not require address arg
|
// we use out own init command to not require address arg
|
||||||
commands.InitCmd,
|
commands.InitCmd,
|
||||||
commands.ResetCmd,
|
commands.ResetCmd,
|
||||||
keycmd.RootCmd,
|
|
||||||
seeds.RootCmd,
|
seeds.RootCmd,
|
||||||
rpccmd.RootCmd,
|
rpccmd.RootCmd,
|
||||||
query.RootCmd,
|
query.RootCmd,
|
||||||
txcmd.RootCmd,
|
txcmd.RootCmd,
|
||||||
proxy.RootCmd,
|
|
||||||
commands.VersionCmd,
|
commands.VersionCmd,
|
||||||
auto.AutoCompleteCmd,
|
auto.AutoCompleteCmd,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue