util

package
v0.0.0-...-16720d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2021 License: GPL-3.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Diff1 = StringToBig("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF")
View Source
var UtilErrorLogger = logFileOutUtil("ERROR")
View Source
var UtilInfoLogger = logFileOutUtil("INFO")

Functions

func AstroBWTHash

func AstroBWTHash(shareBuff []byte, diff, setDiff big.Int) (bool, bool)

func CryptonightHash

func CryptonightHash(shareBuff []byte, diff big.Int) bool

func GetHashDifficulty

func GetHashDifficulty(hashBytes []byte) (*big.Int, bool)

func GetTargetHex

func GetTargetHex(diff int64) string

func MakeTimestamp

func MakeTimestamp() int64

func StringToBig

func StringToBig(h string) *big.Int

func ValidateAddress

func ValidateAddress(addy string, poolAddy string) bool

func ValidateAddressNonDERO

func ValidateAddressNonDERO(addy string, poolAddy string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL