Documentation ¶
Index ¶
- Variables
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SSPrefix = []byte{0x53, 0x53, 0x35, 0x38, 0x50, 0x52, 0x45} SubstratePrefix = []byte{0x2a} ChainKumandraTestPrefix = []byte{0x50, 0xac} )
Functions ¶
func DecodeToKumandraPub ¶
func EncodeToKumandraAddr ¶
func EncodeToSS58 ¶
func PubBytesToString ¶
func RecoverError ¶
func RecoverError(err interface{}) string
func VerityAddress ¶
func WriteStringtoFile ¶
Write string content to file
Types ¶
type MountPathInfo ¶
func GetMountPathInfo ¶
func GetMountPathInfo(mountpath string) (MountPathInfo, error)
Click to show internal directories.
Click to hide internal directories.