Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProofOfWork ¶
type ProofOfWork struct {
// contains filtered or unexported fields
}
ProofOfWork represents a proof-of-work
func NewProofOfWork ¶
func NewProofOfWork(b *blockchain.Block) *ProofOfWork
NewProofOfWork initializes a new ProofOfWork
func (*ProofOfWork) Run ¶
func (pow *ProofOfWork) Run() (int, []byte)
Run performs the proof-of-work algorithm
func (*ProofOfWork) Validate ¶
func (pow *ProofOfWork) Validate() bool
Validate validates block's PoW
Click to show internal directories.
Click to hide internal directories.