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
- func SipHashKey(sipkey []byte) [4]uint64
- func Sipnode(h *siphash.SipHash, edge, uorv uint64, shift bool, edgemask uint64) uint64
- func Uint32ToBytes(v []uint32) []byte
- func VerifyCuckaroo(sipkey []byte, nonces []uint32, edgeBits uint) error
- func VerifyCuckaroom(sipHashKeys [4]uint64, nonces []uint32, edgeBits uint) error
- func VerifyCuckatoo(sipkey []byte, nonces []uint32, edgeBits uint) error
- type Cuckoo
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 SipHashKey ¶
func Uint32ToBytes ¶
HashToBig converts a hash.Hash into a big.Int that can be used to perform math comparisons.
func VerifyCuckaroo ¶
Verify cuckaroo nonces.
func VerifyCuckaroom ¶
Verify verifies the Cuckaroom context.
Types ¶
Click to show internal directories.
Click to hide internal directories.