modulepackage
0.0.0-20191225120441-6bc8c1ca8dc1
Repository: https://github.com/evanxzj/go-blockchain.git
Documentation: pkg.go.dev
# Functions
CreateBlockchain creates a new blockchain DB.
DeserializeBlock deserialize block.
IntToHex converts an int64 to a byte array.
NewBlock create a new block.
NewBlockChain ...
NewCoinbaseTX creates a new coinbase transaction.
NewGenesisBlock creates and returns genesis Block.
NewProofOfWork ...
NewUTXOTransaction creates a new transaction.
# Structs
Block keeps block headers.
Blockchain struct.
BlockchainIterator is used to iterate over blockchain blocks.
CLI responsible for processing command line arguments.
ProofOfWork struct.
Transaction represents a Bitcoin transaction.
TXInput represents a transaction input.
TXOutput represents a transaction output.