Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Block ¶
func NewGenensisBlock ¶
func NewGenensisBlock() *Block
type Blockchain ¶
type Blockchain struct {
Blocks []*Block
}
func NewBlockchain ¶
func NewBlockchain() *Blockchain
func (*Blockchain) AddBlock ¶
func (bc *Blockchain) AddBlock(data string)
type ProofOfWork ¶
type ProofOfWork struct {
// contains filtered or unexported fields
}
func NewProofOfWork ¶
func NewProofOfWork(b *Block) *ProofOfWork
func (*ProofOfWork) Run ¶
func (pow *ProofOfWork) Run() (int, []byte)
func (*ProofOfWork) Validate ¶
func (pow *ProofOfWork) Validate() bool
Click to show internal directories.
Click to hide internal directories.