Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Blockchain ¶
type Blockchain struct {
// contains filtered or unexported fields
}
func NewBlockchain ¶
func NewBlockchain() *Blockchain
func (*Blockchain) AddBlock ¶
func (bc *Blockchain) AddBlock(block *Block) error
type Transaction ¶
func NewTransaction ¶
func NewTransaction(from, to string, amount float64, blockchain *Blockchain) *Transaction
func (*Transaction) Hash ¶
func (tx *Transaction) Hash() []byte
Click to show internal directories.
Click to hide internal directories.