-
Notifications
You must be signed in to change notification settings - Fork 182
/
proto.go
22 lines (19 loc) · 987 Bytes
/
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/okex/exchain/libs/cosmos-sdk/codec/types"
"github.com/okex/exchain/libs/cosmos-sdk/x/auth/ibc-tx/internal/ethsecp256k1"
ibckey "github.com/okex/exchain/libs/cosmos-sdk/x/auth/ibc-tx/internal/secp256k1"
//"github.com/okex/exchain/libs/cosmos-sdk/crypto/keys/ed25519"
//"github.com/okex/exchain/libs/cosmos-sdk/crypto/keys/multisig"
//"github.com/okex/exchain/libs/cosmos-sdk/crypto/keys/secp256k1"
//"github.com/okex/exchain/libs/cosmos-sdk/crypto/keys/secp256r1"
cryptotypes "github.com/okex/exchain/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{})
}