Documentation ¶
Index ¶
- func FilePVFromFile(path string) (*privval.FilePV, error)
- func FilePVFromJSON(buf []byte) (*privval.FilePV, error)
- func FilePVKeyFromJSON(buf []byte) (*privval.FilePVKey, error)
- func FilePVKeyToJSON(obj privval.FilePVKey) ([]byte, error)
- func FilePVStateToJSON(obj privval.FilePVLastSignState) ([]byte, error)
- func FilePVToJSON(obj *privval.FilePV) ([]byte, error)
- func NKeyToFile(path string, perm os.FileMode, obj *p2p.NodeKey) error
- func NKeyToJSON(obj *p2p.NodeKey) ([]byte, error)
- func PVKeyToFile(path string, perm os.FileMode, obj privval.FilePVKey) error
- func PVStateToFile(path string, perm os.FileMode, obj privval.FilePVLastSignState) error
- func TMGenesisFromFile(path string) (*tmtypes.GenesisDoc, error)
- func TMGenesisToJSON(obj *tmtypes.GenesisDoc) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilePVFromFile ¶ added in v0.4.0
FilePVFromFile reads data from provided filepath and returns filePV. Returns error in case of failure.
func FilePVFromJSON ¶ added in v0.4.0
FilePVFromJSON returns FilePV from json. Returns error in case of failure.
func FilePVKeyFromJSON ¶ added in v0.4.0
FilePVKeyFromJSON returns FilePVKey from json. Returns error in case of failure.
func FilePVKeyToJSON ¶ added in v0.4.0
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
FilePVToJSON converts FilePV to json. Returns error in case of failure.
func NKeyToFile ¶ added in v0.6.5
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
NKeyToJSON converts node key to json. Returns error in case of failure.
func PVKeyToFile ¶ added in v0.4.0
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
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.