codec

package
v0.0.0-...-b754361 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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