Versions in this module Expand all Collapse all v0 v0.1.0 Nov 10, 2022 Changes in this version + var ChainKumandraTestPrefix = []byte + var SSPrefix = []byte + var SubstratePrefix = []byte + func CalcFileHash(fpath string) (string, error) + func CreatDirIfNotExist(dir string) error + func DecodeToKumandraPub(address string) ([]byte, error) + func DecodeToPub(address string, prefix []byte) ([]byte, error) + func DirSize(path string) (uint64, error) + func EncodeToKumandraAddr(publicKeyHash []byte) (string, error) + func EncodeToSS58(publicKeyHash []byte) (string, error) + func GetRandomcode(length uint8) string + func IsIPv4(ipAddr string) bool + func PubBytesToString(b []byte) string + func RandSlice(slice interface{}) + func RandomInRange(min, max int) int + func RecoverError(err interface{}) string + func VerityAddress(address string, prefix []byte) error + func WriteStringtoFile(content, fileName string) error + type MountPathInfo struct + Free uint64 + Path string + Total uint64 + func GetMountPathInfo(mountpath string) (MountPathInfo, error)