Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶ added in v1.4.0
type Data interface { blockchain.Data }
Data ...
It's used only for mock generating.
type ProofOfWork ¶
type ProofOfWork struct {
TargetBit int
}
ProofOfWork ...
func (ProofOfWork) Difficulty ¶ added in v1.4.0
func (proofer ProofOfWork) Difficulty(hash string) (int, error)
Difficulty ...
func (ProofOfWork) Validate ¶
func (proofer ProofOfWork) Validate(block blockchain.Block) error
Validate ...
Click to show internal directories.
Click to hide internal directories.