Versions in this module Expand all Collapse all v0 v0.0.1 Jul 2, 2022 Changes in this version + const Difficulty + type Block struct + Data []byte + Hash []byte + Nonce int + PrevHash []byte + type BlockChain []Block + func NewBlockChain() (blockchain BlockChain) + func UnMarshal(data []byte) (blockchain BlockChain, err error) + func (bc *BlockChain) IsEmpty() bool + func (bc *BlockChain) Iterator() *BlockChainIterator + func (bc *BlockChain) Last() (block Block, err error) + func (bc *BlockChain) Marshal() (data []byte, err error) + func (bc *BlockChain) Push(data []byte) (err error) + type BlockChainIterator struct + func (iter *BlockChainIterator) Next() (block Block, err error) + type Proof struct + Block Block + Target *big.Int + func NewProof(b Block) (proof Proof) + func (proof *Proof) Run() (int, []byte) + func (proof *Proof) Validate() bool