codec

package
v0.0.0-...-095f669 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 13 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromCmtProtoPublicKey

func FromCmtProtoPublicKey(protoPk cmtprotocrypto.PublicKey) (cryptotypes.PubKey, error)

FromCmtProtoPublicKey converts a CMT's cmtprotocrypto.PublicKey into our own PubKey.

func FromCmtPubKeyInterface

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

func ToCmtProtoPublicKey(pk cryptotypes.PubKey) (cmtprotocrypto.PublicKey, error)

ToCmtProtoPublicKey converts our own PubKey to Cmt's cmtprotocrypto.PublicKey.

func ToCmtPubKeyInterface

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL