proofers

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2022 License: MIT Imports: 7 Imported by: 0

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) Hash

func (proofer ProofOfWork) Hash(block blockchain.Block) string

Hash ...

func (ProofOfWork) Validate

func (proofer ProofOfWork) Validate(block blockchain.Block) error

Validate ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL