node

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilePVFromFile added in v0.4.0

func FilePVFromFile(path string) (*privval.FilePV, error)

FilePVFromFile reads data from provided filepath and returns filePV. Returns error in case of failure.

func FilePVFromJSON added in v0.4.0

func FilePVFromJSON(buf []byte) (*privval.FilePV, error)

FilePVFromJSON returns FilePV from json. Returns error in case of failure.

func FilePVKeyFromJSON added in v0.4.0

func FilePVKeyFromJSON(buf []byte) (*privval.FilePVKey, error)

FilePVKeyFromJSON returns FilePVKey from json. Returns error in case of failure.

func FilePVKeyToJSON added in v0.4.0

func FilePVKeyToJSON(obj privval.FilePVKey) ([]byte, error)

FilePVKeyToJSON converts FilePVKey to json. Returns error in case of failure.

func FilePVStateToJSON added in v0.4.0

func FilePVStateToJSON(obj privval.FilePVLastSignState) ([]byte, error)

FilePVStateToJSON converts FilePVState to json

func FilePVToJSON added in v0.4.0

func FilePVToJSON(obj *privval.FilePV) ([]byte, error)

FilePVToJSON converts FilePV to json. Returns error in case of failure.

func NodeKeyToFile added in v0.0.10

func NodeKeyToFile(path string, perm os.FileMode, obj *p2p.NodeKey) error

NodeKeyToFile writes node key to a file with given filemode permissions. Written File is saved into path provided. Returns error in case of failure.

func NodeKeyToJSON added in v0.0.10

func NodeKeyToJSON(obj *p2p.NodeKey) ([]byte, error)

NodeKeyToJSON converts node key to json. Returns error in case of failure.

func PVKeyToFile added in v0.4.0

func PVKeyToFile(path string, perm os.FileMode, obj privval.FilePVKey) error

PVKeyToFile writes PV key to a file with given filemode permissions. Written File is saved into path provided. Returns error in case of failure.

func PVStateToFile added in v0.4.0

func PVStateToFile(path string, perm os.FileMode, obj privval.FilePVLastSignState) error

PVStateToFile writes PV state to a file with given filemode permissions. Written File is saved into path provided. Returns error in case of failure.

func TMGenesisFromFile

func TMGenesisFromFile(path string) (*tmtypes.GenesisDoc, error)

TMGenesisFromFile returns tendermint genesis doc from file

func TMGenesisToJSON added in v0.0.6

func TMGenesisToJSON(obj *tmtypes.GenesisDoc) ([]byte, error)

TMGenesisToJSON converts tendermint genesis doc to json. Returns error in case of failure.

Types

This section is empty.

Jump to

Keyboard shortcuts

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