Documentation
¶
Index ¶
- func ErrEqualCode(err error, code codes.Code) bool
- func FindAndParseConfigFile(configFile string, out interface{}) error
- func GetConfigFileLocation(location string) (string, error)
- func GetDefaultKeyLocation() (string, error)
- func Hash160(buf []byte) []byte
- func Hash256(data []byte) []byte
- func NowMs() int64
- func SerializedCompressedToAddress(key []byte) string
- func StatusCodeFromError(err error) codes.Code
- func TimeFromMs(ts int64) time.Time
- func ValidateName(name string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAndParseConfigFile ¶
FindAndParseConfigFile locates the config file and parses it, storing the result in out.
func GetConfigFileLocation ¶
func GetDefaultKeyLocation ¶
func SerializedCompressedToAddress ¶ added in v0.4.0
SerializedCompressedToAddress is a convenience function which converts serialized compressed representation of the private key to its address (which is shorter). If the key is invalid, the return string will contain an error message.
func StatusCodeFromError ¶ added in v0.4.0
func TimeFromMs ¶
func ValidateName ¶
ValidateName returns true if the name is valid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.