Versions in this module Expand all Collapse all v1 v1.1.21 Jul 5, 2021 Changes in this version + const Sha256Len + var ErrNetWorkDealy = errors.New("ErrNetWorkDealy") + var ErrPointerNotFound = errors.New("ErrPointerNotFound") + func CopyBytes(b []byte) (copiedBytes []byte) + func FromHex(s string) ([]byte, error) + func GetNtpTime(host string) (time.Time, error) + func GetPointer(id int64) (interface{}, error) + func GetRandBytes(min, max int) []byte + func GetRandPrintString(min, max int) string + func GetRandString(length int) string + func GetRealTime(hosts []string) time.Time + func GetRealTimeRetry(hosts []string, retry int) time.Time + func HashHex(d []byte) string + func IsHex(str string) bool + func MaxInt32(left, right int32) int32 + func MinInt32(left, right int32) int32 + func RemovePointer(id int64) + func Rimp160(b []byte) []byte + func Sha256(b []byte) []byte + func Sha2Sum(b []byte) []byte + func Sha3(b []byte) []byte + func StorePointer(p interface{}) int64 + func ToHex(b []byte) string + type Hash [Sha256Len]byte + func BytesToHash(b []byte) Hash + func HexToHash(s string) Hash + func (h *Hash) SetBytes(b []byte) + func (h Hash) Bytes() []byte