Documentation
¶
Overview ¶
Copyright (c) 2017-2018 The qitmeer developers
Copyright (c) 2017-2018 The qitmeer developers ¶
Copyright (c) 2017-2018 The qitmeer developers cuckoo cpu mining from network
Index ¶
Constants ¶
View Source
const ( ProofSize = 42 //ProofSize is the number of nonces and cycles. the (even) length of the cycle to be found. a minimum of 12 is recommended. 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 Nedge = 1 << Edgebits //number of edges: Easiness = nnode * 50 / 100 // )
Variables ¶
This section is empty.
Functions ¶
func Uint32ToBytes ¶
HashToBig converts a hash.Hash into a big.Int that can be used to perform math comparisons.
func VerifyCuckaroo ¶
Verify cuckaroo nonces.