pow

package
v0.0.3-chain-bsopt Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2018 License: GPL-3.0 Imports: 4 Imported by: 17

Documentation

Index

Constants

View Source
const (
	// TODO hack!!!!!! 0xffffffffffffffff
	FullThreshold = 0x0000000000000000
)

IN MY 2017 MACBOOK PRO which cpu is---- Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz---- average 2.17099039203e+10 max 73782690184 min 641170149 sum 217099039203 standard deviation 2.0826136795592163e+10

Variables

This section is empty.

Functions

func CheckPowNonce

func CheckPowNonce(difficulty *big.Int, nonce [8]byte, data []byte) bool

func GetPowNonce

func GetPowNonce(difficulty *big.Int, dataHash types.Hash) [8]byte

data = Hash(address + prehash); data + nonce < target.

func QuickGreater

func QuickGreater(x, y []byte) bool

func QuickInc

func QuickInc(x []byte) []byte

func Uint64ToByteArray

func Uint64ToByteArray(i uint64) [8]byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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