codec

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalPrivKey

func MarshalPrivKey(privKey crypto.PrivKey) []byte

func MarshalPubkey

func MarshalPubkey(pubkey crypto.PubKey) []byte

func PrivKeyFromBytes

func PrivKeyFromBytes(privKeyBytes []byte) (privKey crypto.PrivKey, err error)

PrivKeyFromBytes unmarshals private key bytes and returns a PrivKey

func PubKeyFromBytes

func PubKeyFromBytes(pubKeyBytes []byte) (pubKey crypto.PubKey, err error)

PubKeyFromBytes unmarshals public key bytes and returns a 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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