codec

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalJSONIndent

func MarshalJSONIndent(cdc *Codec, obj interface{}) ([]byte, error)

MarshalJSONIndent - attempt to make some pretty json

func MustMarshalJSONIndent

func MustMarshalJSONIndent(cdc *Codec, obj interface{}) []byte

MustMarshalJSONIndent executes MarshalJSONIndent except it panics upon failure.

func RegisterCrypto

func RegisterCrypto(cdc *Codec)

RegisterCrypto - Register the go-crypto to the codec

func RegisterEvidences

func RegisterEvidences(cdc *Codec)

RegisterEvidences registers Tendermint evidence types with the provided codec.

Types

type Codec

type Codec = amino.Codec

Codec - amino codec to marshal/unmarshal

var Cdc *Codec

Cdc - generic sealed codec to be used throughout sdk

func New

func New() *Codec

New - new amino codec

Jump to

Keyboard shortcuts

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