Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Block ¶
type Block struct { Timestamp int64 //区块创建的时间 Data []byte //区块存储的实际的有效信息 PrevBlockHash []byte // 前一个区块的哈希 父哈希 Hash []byte //当前区块的哈希 Nonce int }
区块的结构体
type BlockChain ¶
区块链的结构体
type BlockchainIterator ¶
区块链的迭代器
type ProofOfWork ¶
type ProofOfWork struct { Block *Block //区块 // contains filtered or unexported fields }
工作量证明的结构体
Click to show internal directories.
Click to hide internal directories.