Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Doublesha256BlockHeader ¶
Doublesha256BlockHeader returns a string representation of doubled-hashed block header
Types ¶
type Header ¶
type Header struct {
Version byte //Block Version Number. Decimal format. 4 bytes Little Endian format originally.
HashPrevBlock string //256bits Hash of the previous block header
HashMerkRoot string //256bits Hash on all of the transactions in the block
Time uint32 //Timestamp - Epoch time
Bits uint32 //Current target calculated with difficulty. Temporary string representation for testing.
Nonce uint32 //32Bits number - iterator
}
Header structure
func MakeSemiRandomBlockHeader ¶
MakeSemiRandomBlockHeader makes a semi-random block header. Uses pre-defined time and version. Faster to generate than fully random blockheader.
Click to show internal directories.
Click to hide internal directories.