minipow

package
v0.0.0-...-737687b Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(hash []byte, data []byte, nonce []byte) bool

data does NOT include nonce here

func Mine

func Mine(data []byte, difficulty int, resultC chan<- []byte, quitC <-chan struct{}, debug func([]byte, []byte))

TODO: implement a hasher pool for efficiency and concurrency last 8 bytes of data holds the nonce must be zero - the routine will NOT check

Types

This section is empty.

Jump to

Keyboard shortcuts

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