github.com/InjectiveLabs/sdk-go@v1.53.0/chain/crypto/codec/proto.go (about) 1 package codec 2 3 import ( 4 codectypes "github.com/cosmos/cosmos-sdk/codec/types" 5 cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" 6 7 "github.com/InjectiveLabs/sdk-go/chain/crypto/ethsecp256k1" 8 ) 9 10 var ( 11 _ cryptotypes.PubKey = ðsecp256k1.PubKey{} 12 _ cryptotypes.PrivKey = ðsecp256k1.PrivKey{} 13 ) 14 15 // RegisterInterfaces registers the ethsecp256k1 implementations of tendermint crypto types. 16 func RegisterInterfaces(registry codectypes.InterfaceRegistry) { 17 registry.RegisterImplementations((*cryptotypes.PubKey)(nil), ðsecp256k1.PubKey{}) 18 registry.RegisterImplementations((*cryptotypes.PrivKey)(nil), ðsecp256k1.PrivKey{}) 19 }