Skip to content

Commit

Permalink
Merge pull request #31 from initia-labs/feat/remove-eth-pubkey
Browse files Browse the repository at this point in the history
feat: remove eth pubkey
  • Loading branch information
beer-1 authored Dec 8, 2023
2 parents 3eea7c8 + cfbd073 commit 5f92ad1
Show file tree
Hide file tree
Showing 18 changed files with 7 additions and 1,387 deletions.
2 changes: 1 addition & 1 deletion app/ante/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) {

sigGasConsumer := options.SigGasConsumer
if sigGasConsumer == nil {
sigGasConsumer = DefaultSigVerificationGasConsumer
sigGasConsumer = ante.DefaultSigVerificationGasConsumer
}

txFeeChecker := options.TxFeeChecker
Expand Down
27 changes: 0 additions & 27 deletions app/ante/sigverify.go

This file was deleted.

4 changes: 0 additions & 4 deletions app/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"github.com/cosmos/cosmos-sdk/std"

"github.com/initia-labs/initia/app/params"
cryptocodec "github.com/initia-labs/initia/crypto/codec"
)

var legacyCodecRegistered = false
Expand All @@ -15,16 +14,13 @@ func MakeEncodingConfig() params.EncodingConfig {
encodingConfig := params.MakeEncodingConfig()
std.RegisterLegacyAminoCodec(encodingConfig.Amino)
std.RegisterInterfaces(encodingConfig.InterfaceRegistry)
cryptocodec.RegisterCrypto(encodingConfig.Amino)
cryptocodec.RegisterInterfaces(encodingConfig.InterfaceRegistry)
ModuleBasics.RegisterLegacyAminoCodec(encodingConfig.Amino)
ModuleBasics.RegisterInterfaces(encodingConfig.InterfaceRegistry)

if !legacyCodecRegistered {
// authz module use this codec to get signbytes.
// authz MsgExec can execute all message types,
// so legacy.Cdc need to register all amino messages to get proper signature
cryptocodec.RegisterCrypto(legacy.Cdc)
ModuleBasics.RegisterLegacyAminoCodec(legacy.Cdc)
legacyCodecRegistered = true
}
Expand Down
10 changes: 1 addition & 9 deletions cmd/initiad/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/keys"
"github.com/cosmos/cosmos-sdk/client/rpc"
"github.com/cosmos/cosmos-sdk/crypto/keyring"
"github.com/cosmos/cosmos-sdk/server"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand All @@ -32,14 +31,10 @@ import (

initiaapp "github.com/initia-labs/initia/app"
"github.com/initia-labs/initia/app/params"
initiahd "github.com/initia-labs/initia/crypto/hd"
genutilcli "github.com/initia-labs/initia/x/genutil/client/cli"
moveconfig "github.com/initia-labs/initia/x/move/config"
)

// missing flag from cosmos-sdk
const flagIAVLCacheSize = "iavl-cache-size"

// NewRootCmd creates a new root command for initiad. It is called once in the
// main function.
func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
Expand Down Expand Up @@ -79,10 +74,7 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
WithInput(os.Stdin).
WithAccountRetriever(types.AccountRetriever{}).
WithHomeDir(initiaapp.DefaultNodeHome).
WithViper(initiaapp.EnvPrefix).
WithKeyringOptions(func(options *keyring.Options) {
options.SupportedAlgos = append(options.SupportedAlgos, initiahd.EthSecp256k1)
})
WithViper(initiaapp.EnvPrefix)

rootCmd := &cobra.Command{
Use: basename,
Expand Down
14 changes: 0 additions & 14 deletions crypto/codec/amino.go

This file was deleted.

14 changes: 0 additions & 14 deletions crypto/codec/proto.go

This file was deleted.

37 changes: 0 additions & 37 deletions crypto/hd/algo.go

This file was deleted.

11 changes: 0 additions & 11 deletions crypto/keys/eth/secp256k1/hash.go

This file was deleted.

Loading

0 comments on commit 5f92ad1

Please sign in to comment.