Documentation ¶
Index ¶
- Variables
- func FormatRatReward(reward *big.Rat) string
- func FormatReward(reward *big.Int) string
- func GetTargetHex(diff int64) string
- func GetTargetHexFromString(diff string) string
- func IsValidHexAddress(s string) bool
- func IsValidZanoAddress(s string) bool
- func IsZeroHash(s string) bool
- func MakeTimestamp() int64
- func MustParseDuration(s string) time.Duration
- 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 ToHexUint(n uint64) string
- func ToHexUintNoPad(n uint64) string
Constants ¶
This section is empty.
Variables ¶
View Source
var Ether = math.BigPow(10, 12)
View Source
var Shannon = math.BigPow(10, 6)
Functions ¶
func FormatRatReward ¶
func FormatReward ¶
func GetTargetHex ¶
func GetTargetHexFromString ¶
func IsValidHexAddress ¶
func IsValidZanoAddress ¶
func IsZeroHash ¶
func MakeTimestamp ¶
func MakeTimestamp() int64
func MustParseDuration ¶
func String2Big ¶
func StringInSlice ¶
func TargetHexToDiff ¶
func ToHexUintNoPad ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.