codec

package
v0.55.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: Apache-2.0 Imports: 18 Imported by: 1,308 modules, 4,228 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 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 crypto key interfaces.

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.

Jump to

Keyboard shortcuts

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