codec

package
v0.45.5 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromOcPubKeyInterface added in v0.45.0

func FromOcPubKeyInterface(tmPk picrypto.PubKey) (cryptotypes.PubKey, error)

FromOcPubKeyInterface converts OC's picrypto.PubKey to our own PubKey.

func FrompiprotoPublicKey added in v0.45.5

func FrompiprotoPublicKey(protoPk tmprotocrypto.PublicKey) (cryptotypes.PubKey, error)

FrompiprotoPublicKey converts a OC's tmprotocrypto.PublicKey into our own PubKey.

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 ToOcPubKeyInterface added in v0.45.0

func ToOcPubKeyInterface(pk cryptotypes.PubKey) (picrypto.PubKey, error)

ToOcPubKeyInterface converts our own PubKey to OC's picrypto.PubKey.

func TopiprotoPublicKey added in v0.45.5

func TopiprotoPublicKey(pk cryptotypes.PubKey) (tmprotocrypto.PublicKey, error)

TopiprotoPublicKey converts our own PubKey to OC's tmprotocrypto.PublicKey.

Types

This section is empty.

Jump to

Keyboard shortcuts

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