node

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 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 NKeyToFile added in v0.6.5

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

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

func NKeyToJSON added in v0.6.5

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

NKeyToJSON 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