common

package
v0.0.0-...-bd70295 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcSignBytes

func CalcSignBytes(o interface{}) []byte

Types

type Example

type Example struct {
	Label string
	Codec *amino.Codec
	Data  interface{}
}

Example is returned from any package to express something that needs to be rendered

func (Example) Render

func (e Example) Render() (*ExampleData, error)

Render encodes the data with the codec

type ExampleData

type ExampleData struct {
	Label     string
	JSON      string
	BinaryHex string
	SignBytes string
}

ExampleData is rendered from Example

func RenderAll

func RenderAll(examples []Example) ([]*ExampleData, error)

Jump to

Keyboard shortcuts

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