package
0.0.0-20240914092845-65b9471733bc
Repository: https://github.com/mapfumo/golang-blockchain.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
InitBlockChain initializes a new blockchain or loads an existing one from the database.
No description provided by the author
No description provided by the author
NewProofOfWork initializes a new ProofOfWork for a given block.
No description provided by the author
No description provided by the author
ToHex converts an int64 number to a byte slice in Big Endian format.
# Constants
Difficulty defines the mining difficulty.
# Structs
No description provided by the author
BlockChain represents the blockchain with the last block's hash and the database instance.
No description provided by the author
No description provided by the author
No description provided by the author
ProofOfWork represents a proof-of-work algorithm.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Unspent transaction sets.