Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MinimumWork = uint64(0xffffffc000000000)
Functions ¶
func GenerateProof ¶
GenerateProof will generate the proof of work, the nonce itself is one uint64 in BigEndian, it's generate as follows: Pick one unique Nonce and concatenate with the Blockhash: [LittleEndian UINT64 Nonce][BlockHash] Now computes the hash of the previous concatenation: Blake2(size = 8, message = [LittleEndian UINT64 Nonce][BlockHash]) Now you need to use this value as one UINT64 and compare against the minimum work: LitleEndian(Blake2(...)) > MinimumWork If it's correct then you have in hand one correct nonce/pow, you need to reverse it so use the BigEndian.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.