shared

package
v0.0.0-...-c7417fd Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0, MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmpty

func IsEmpty(o interface{}) bool

IsEmpty returns true if it has zero length.

func IsTypedNil

func IsTypedNil(o interface{}) bool

IsTypedNil return true if a value is nil

func PackBlockID

func PackBlockID(node ipld.Node) (types.BlockID, error)

PackBlockID returns the blockID from the provided ipld.Node

func PackLink(node ipld.Node) ([]byte, error)

PackLink returns the hash digest from a link

func PackTime

func PackTime(timeNode ipld.Node) (time.Time, error)

PackTime returns the timestamp from the provided ipld.Node

func PackValidator

func PackValidator(validatorNode ipld.Node) (*types.Validator, error)

PackValidator packs a Validator from the provided ipld.Node This includes all fields of the Validator, not just the consensus fields

func PackVersion

func PackVersion(versionNode ipld.Node) (tmversion.Consensus, error)

PackVersion returns the Consensus Version from the provided ipld.Node

func PackVote

func PackVote(voteNode ipld.Node) (*types.Vote, error)

PackVote returns the Vote from the provided ipld.Node

func RandomAddr

func RandomAddr() tmBytes.HexBytes

func RandomHash

func RandomHash() tmBytes.HexBytes

func RandomSig

func RandomSig() tmBytes.HexBytes

func UnpackBlockID

func UnpackBlockID(bima ipld.MapAssembler, bid types.BlockID) error

UnpackBlockID unpacks BlockID into MapAssembler

func UnpackTime

func UnpackTime(tma ipld.MapAssembler, t time.Time) error

UnpackTime unpacks the provided time into the MapAssembler

func UnpackValidator

func UnpackValidator(vama ipld.MapAssembler, validator types.Validator) error

UnpackValidator unpacks Validator into MapAssembler This includes all fields on the Validator, not just the consensus fields

func UnpackVersion

func UnpackVersion(vma ipld.MapAssembler, version tmversion.Consensus) error

UnpackVersion unpacks Consensus Version into MapAssembler

func UnpackVote

func UnpackVote(vma ipld.MapAssembler, vote types.Vote) error

UnpackVote unpacks Vote into MapAssembler

Types

This section is empty.

Jump to

Keyboard shortcuts

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