Documentation
¶
Index ¶
- func EnterPassphrase() (string, error)
- func ErrEqualCode(err error, code codes.Code) bool
- func FindAndParseConfigFile(configFile string, out interface{}) error
- func GetConfigFileLocation(location string) (string, error)
- func GetConfigFromArgs(args []string) string
- func GetDefaultKeyLocation() (string, error)
- func Hash160(buf []byte) []byte
- func Hash256(data []byte) []byte
- func IsKeyEncrypted(filePath string) (bool, error)
- func NowMs() int64
- func ReadPassphase() (string, error)
- 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 EnterPassphrase ¶ added in v0.5.0
func ErrEqualCode ¶ added in v0.4.0
ErrEqualCode returns true if the given error has the specified code (gRPC status code).
func FindAndParseConfigFile ¶
FindAndParseConfigFile locates the config file and parses it, storing the result in out.
func GetConfigFileLocation ¶
func GetConfigFromArgs ¶ added in v0.5.0
GetConfigFromArgs returns the value of --config flag from the arguments.
func GetDefaultKeyLocation ¶
func IsKeyEncrypted ¶ added in v0.5.0
func ReadPassphase ¶ added in v0.5.0
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.