Documentation ¶
Index ¶
- func FromCmtProtoPublicKey(protoPk cmtprotocrypto.PublicKey) (cryptotypes.PubKey, error)
- func FromCmtPubKeyInterface(tmPk cmtcrypto.PubKey) (cryptotypes.PubKey, error)
- func FromTmProtoPublicKey(protoPk cmtprotocrypto.PublicKey) (cryptotypes.PubKey, error)deprecated
- func FromTmPubKeyInterface(tmPk cmtcrypto.PubKey) (cryptotypes.PubKey, error)deprecated
- func RegisterCrypto(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func ToCmtProtoPublicKey(pk cryptotypes.PubKey) (cmtprotocrypto.PublicKey, error)
- func ToCmtPubKeyInterface(pk cryptotypes.PubKey) (cmtcrypto.PubKey, error)
- func ToTmProtoPublicKey(pk cryptotypes.PubKey) (cmtprotocrypto.PublicKey, error)deprecated
- func ToTmPubKeyInterface(pk cryptotypes.PubKey) (cmtcrypto.PubKey, error)deprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromCmtProtoPublicKey ¶ added in v0.50.0
func FromCmtProtoPublicKey(protoPk cmtprotocrypto.PublicKey) (cryptotypes.PubKey, error)
FromCmtProtoPublicKey converts a CMT's cmtprotocrypto.PublicKey into our own PubKey.
func FromCmtPubKeyInterface ¶ added in v0.50.0
func FromCmtPubKeyInterface(tmPk cmtcrypto.PubKey) (cryptotypes.PubKey, error)
FromCmtPubKeyInterface converts CMT's cmtcrypto.PubKey to our own PubKey.
func FromTmProtoPublicKey
deprecated
func FromTmProtoPublicKey(protoPk cmtprotocrypto.PublicKey) (cryptotypes.PubKey, error)
Deprecated: use FromCmtProtoPublicKey instead.
func FromTmPubKeyInterface
deprecated
func FromTmPubKeyInterface(tmPk cmtcrypto.PubKey) (cryptotypes.PubKey, error)
Deprecated: use FromCmtPubKeyInterface instead.
func RegisterCrypto ¶
func RegisterCrypto(cdc *codec.LegacyAmino)
RegisterCrypto registers all crypto dependency types with the provided Amino codec.
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces registers the sdk.Tx interface.
func ToCmtProtoPublicKey ¶ added in v0.50.0
func ToCmtProtoPublicKey(pk cryptotypes.PubKey) (cmtprotocrypto.PublicKey, error)
ToCmtProtoPublicKey converts our own PubKey to Cmt's cmtprotocrypto.PublicKey.
func ToCmtPubKeyInterface ¶ added in v0.50.0
func ToCmtPubKeyInterface(pk cryptotypes.PubKey) (cmtcrypto.PubKey, error)
ToCmtPubKeyInterface converts our own PubKey to CMT's cmtcrypto.PubKey.
func ToTmProtoPublicKey
deprecated
func ToTmProtoPublicKey(pk cryptotypes.PubKey) (cmtprotocrypto.PublicKey, error)
Deprecated: use ToCmtProtoPublicKey instead.
func ToTmPubKeyInterface
deprecated
func ToTmPubKeyInterface(pk cryptotypes.PubKey) (cmtcrypto.PubKey, error)
Deprecated: use ToCmtPubKeyInterface instead.
Types ¶
This section is empty.