Documentation
¶
Index ¶
- Variables
- func AesDecrypt(key []byte, text []byte) ([]byte, error)
- func AesEncrypt(key []byte, text []byte) ([]byte, error)
- func CheckPasswordHash(hashVal, userPw string) bool
- func CheckValidHexAddress(s string) (string, bool)
- func FormatRatReward(reward *big.Rat) string
- func FormatReward(reward *big.Int) string
- func HashPassword(password string) ([]byte, error)
- func IsValidHexAddress(s string) bool
- func IsValidUsername(s string) bool
- func IsZeroHash(s string) bool
- func Join(args ...interface{}) string
- func MakeTimestamp() int64
- func MakeTimestampDB(dbTimestamp string) int64
- func MakeTimestampDB2(dbTimestamp string) int64
- func MustParseDuration(s string) time.Duration
- func Pad(src []byte) []byte
- func RandStringBytesMaskImprSrc(n int) string
- func String2Big(num string) *big.Int
- func StringInSlice(a string, list []string) bool
- func TargetHexToDiff(targetHex string) *big.Int
- func ToHex(n int64) string
- func Unpad(src []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Ether = math.BigPow(10, 18)
View Source
var Shannon = math.BigPow(10, 9)
Functions ¶
func CheckPasswordHash ¶
func CheckValidHexAddress ¶
func FormatRatReward ¶
func FormatReward ¶
func HashPassword ¶
func IsValidHexAddress ¶
func IsValidUsername ¶
func IsZeroHash ¶
func MakeTimestamp ¶
func MakeTimestamp() int64
func MakeTimestampDB ¶
func MakeTimestampDB2 ¶
func MustParseDuration ¶
func String2Big ¶
func StringInSlice ¶
func TargetHexToDiff ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.