-
Notifications
You must be signed in to change notification settings - Fork 0
/
proto.go
22 lines (19 loc) · 1 KB
/
proto.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package codec
import (
codectypes "github.com/furyaxyz/fuxchain/libs/cosmos-sdk/codec/types"
"github.com/furyaxyz/fuxchain/libs/cosmos-sdk/x/auth/ibc-tx/internal/ethsecp256k1"
ibckey "github.com/furyaxyz/fuxchain/libs/cosmos-sdk/x/auth/ibc-tx/internal/secp256k1"
//"github.com/furyaxyz/fuxchain/libs/cosmos-sdk/crypto/keys/ed25519"
//"github.com/furyaxyz/fuxchain/libs/cosmos-sdk/crypto/keys/multisig"
//"github.com/furyaxyz/fuxchain/libs/cosmos-sdk/crypto/keys/secp256k1"
//"github.com/furyaxyz/fuxchain/libs/cosmos-sdk/crypto/keys/secp256r1"
cryptotypes "github.com/furyaxyz/fuxchain/libs/cosmos-sdk/crypto/types"
)
// RegisterInterfaces registers the sdk.Tx interface.
func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
var pk *cryptotypes.PubKey
registry.RegisterInterface("cosmos.crypto.PubKey", pk)
registry.RegisterInterface("ethermint.crypto.v1.ethsecp256k1.PubKey", pk)
registry.RegisterImplementations(pk, &ibckey.PubKey{})
registry.RegisterImplementations(pk, ðsecp256k1.PubKey{})
}