verthash

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

README

Verthash

Most of this was borrowed from verthash-go, though in the future I'm sure it'll begin to diverge.

Verthash requires a 1.2Gb file to be generated (in ~/.powcache). It can be put into memory (which is about 10x faster than reading) from the file, but allocating 1.2Gb of memory on every pool server can be an inconvenience, to say the least. For now, its probably better to use it not in memory since you can still hash in about 10ms.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Verthash

type Verthash struct {
	// contains filtered or unexported fields
}

func New

func New(inMemory bool) (*Verthash, error)

func (*Verthash) Close

func (v *Verthash) Close()

func (*Verthash) Hash

func (v *Verthash) Hash(input []byte) []byte

Jump to

Keyboard shortcuts

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