Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PREFIX = []byte{0, 0, 0, 0}
PREFIX is the leading zeros in hash value as proof of work
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { Index uint64 Nonce uint64 Data []byte Prev []byte // previous block hash Hash []byte // current block hash // contains filtered or unexported fields }
Block contains some amount of data in blockchain
Click to show internal directories.
Click to hide internal directories.