Versions in this module Expand all Collapse all v0 v0.5.3 Nov 15, 2022 v0.5.2 Oct 31, 2022 Changes in this version + var CessPrefix = []byte + var SSPrefix = []byte + var SubstratePrefix = []byte + func CalcFileSHA256(f *os.File) (string, error) + func CalcPathSHA256(fpath string) (string, error) + func CalcSHA256(data []byte) (string, error) + func DecodePublicKeyOfCessAccount(address string) ([]byte, error) + func DecodePublicKeyOfSubstrateAccount(address string) ([]byte, error) + func EncodePublicKeyAsCessAccount(publicKey []byte) (string, error) + func EncodePublicKeyAsSubstrateAccount(publicKey []byte) (string, error) + func GetGuid() (string, error) + func GetRandomcode(length uint8) string + func InterfaceIsNIL(i interface{}) bool + func IsIPv4(ipAddr string) bool + func IsIPv6(ipAddr string) bool + func PubBytesToString(b []byte) string + func RandSlice(slice interface{}) + func RandStr(n int) string + func RandomInRange(min, max int) int + func RecoverError(err interface{}) error + func VerityAddress(address string, prefix []byte) error