Documentation ¶
Index ¶
Constants ¶
View Source
const Bip320GeneralPurposeBits uint32 = ^Bip320Mask
View Source
const Bip320Mask uint32 = 0xe0001fff
bip320 was designed for ASICBoost and it specifies some general purpose bits in the Version field that miners can use for whatever they want.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Candidate ¶
Candidate includes the parts of the blockheader that are known before the work has been done. It represents the parts of a work puzzle that are provided by getminingcandidate.
func MakeCandidate ¶
type Job ¶
A job is a work puzzle after a stratum id has been assigned to a given worker by the mining pool.
type Proof ¶
func (*Proof) Blockheader ¶
func (*Proof) MerkleRoot ¶
type Puzzle ¶
type Puzzle struct { Candidate Candidate CoinbaseBegin []byte CoinbaseEnd []byte VersionMask *uint32 }
Puzzle is what we get after the coinbase has been derived.
func MakePuzzle ¶
Click to show internal directories.
Click to hide internal directories.