Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blockchain ¶
func (*Blockchain) CreateBlock ¶
func (bc *Blockchain) CreateBlock(data string) error
Create a new block and add it to the blockchain.
func (*Blockchain) InitLedger ¶
func (bc *Blockchain) InitLedger() error
Initialize the blockchain with a genesis block.
Click to show internal directories.
Click to hide internal directories.