cuckoo

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: ISC Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Edgebits = 24 //the 2-log of the graph size,which is the size in bits of the node identifiers. the size of the edge indices in the Cuckoo Cycle graph.
	//Edgebits  = 29
	ProofSize = 20            //ProofSize is the number of nonces and cycles. the (even) length of the cycle to be found. a minimum of 12 is recommended.
	Nedge     = 1 << Edgebits //number of edges:

	Easiness = nnode * 50 / 100 //

)

Variables

This section is empty.

Functions

func Verify

func Verify(sipkey []byte, nonces []uint32) error

Verify cuckoo nonces.

Types

type Cuckoo

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

Cuckoo is struct for cuckoo miner.

func NewCuckoo

func NewCuckoo() *Cuckoo

NewCuckoo returns Cuckoo struct to do PoW.

func (*Cuckoo) PoW

func (c *Cuckoo) PoW(siphashKey []byte) ([]uint32, bool)

PoW does PoW with hash, which is the key for siphash.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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