algorithm

package
v0.0.0-...-07a8cb0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MaxTargetTruncated, _ = new(big.Int).SetString("00000000FFFF0000000000000000000000000000000000000000000000000000", 16)
	MaxTarget, _          = new(big.Int).SetString("00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF", 16)
)

difficulty = MAX_TARGET / current_target.

Functions

func DoubleSha256Hash

func DoubleSha256Hash(b []byte) []byte

DoubleSha256Hash is the algorithm which litecoin uses as its PoW mining algorithm

func GetHashFunc

func GetHashFunc(hashName string) func([]byte) []byte

func ScryptHash

func ScryptHash(data []byte) []byte

ScryptHash is the algorithm which litecoin uses as its PoW mining algorithm

func X11Hash

func X11Hash(data []byte) []byte

X11Hash is the algorithm which dash uses as its PoW mining algorithm

Types

This section is empty.

Jump to

Keyboard shortcuts

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