github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/libs/cosmos-sdk/x/auth/ibc-tx/internal/pb-codec/proto.go (about)

     1  package codec
     2  
     3  import (
     4  	codectypes "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/codec/types"
     5  	"github.com/fibonacci-chain/fbc/libs/cosmos-sdk/x/auth/ibc-tx/internal/ethsecp256k1"
     6  	ibckey "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/x/auth/ibc-tx/internal/secp256k1"
     7  
     8  	//"github.com/fibonacci-chain/fbc/libs/cosmos-sdk/crypto/keys/ed25519"
     9  	//"github.com/fibonacci-chain/fbc/libs/cosmos-sdk/crypto/keys/multisig"
    10  	//"github.com/fibonacci-chain/fbc/libs/cosmos-sdk/crypto/keys/secp256k1"
    11  	//"github.com/fibonacci-chain/fbc/libs/cosmos-sdk/crypto/keys/secp256r1"
    12  	cryptotypes "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/crypto/types"
    13  )
    14  
    15  // RegisterInterfaces registers the sdk.Tx interface.
    16  func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
    17  	var pk *cryptotypes.PubKey
    18  	registry.RegisterInterface("cosmos.crypto.PubKey", pk)
    19  	registry.RegisterInterface("ethermint.crypto.v1.ethsecp256k1.PubKey", pk)
    20  	registry.RegisterImplementations(pk, &ibckey.PubKey{})
    21  	registry.RegisterImplementations(pk, &ethsecp256k1.PubKey{})
    22  }