shortadr

package
v0.0.0-...-f379a71 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdrWorker

func AdrWorker(
	pub [33]byte, id, nonce uint64, bestBits uint8,
	bestNonce chan uint64, stop chan bool)

AdrWorker is a gorouting that looks for a short hash. pub is the pub key to work on. ID & Nonce is the nonce to start at. bestNonce is a channel that returns the best nonce each time one is found stop is a channel that kills this worker

func CheckWork

func CheckWork(hash [20]byte) (i uint8)

CheckWork returns the number of leading 0 bits make it not crash with all zero hash arguments

func DoOneTry

func DoOneTry(key [33]byte, id, nonce uint64) (hash [20]byte)

doOneTry is a single hash attempt with a key and nonce

Types

This section is empty.

Jump to

Keyboard shortcuts

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