pow

package
v0.0.0-...-7bd4979 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DifficultyTracker

type DifficultyTracker struct {
}

func (*DifficultyTracker) Get

func (d *DifficultyTracker) Get(measurement uint64, parentDifficulty []byte) ([]byte, []byte)

func (*DifficultyTracker) GetTarget

func (d *DifficultyTracker) GetTarget(currentDifficulty goqryptonight.UcharVector) []byte

type DifficultyTrackerInterface

type DifficultyTrackerInterface interface {
	GetTarget(currentDifficulty goqryptonight.UcharVector) []byte

	Get(uint64, []byte) ([]byte, []byte)
}

type MockDifficultyTracker

type MockDifficultyTracker struct {
	DifficultyTracker
	// contains filtered or unexported fields
}

func (*MockDifficultyTracker) Get

func (d *MockDifficultyTracker) Get(measurement uint64, parentDifficulty []byte) ([]byte, []byte)

func (*MockDifficultyTracker) SetGetReturnValue

func (d *MockDifficultyTracker) SetGetReturnValue(difficulty int64)

type PoWValidator

type PoWValidator struct {
	// contains filtered or unexported fields
}

func GetPowValidator

func GetPowValidator() *PoWValidator

func (*PoWValidator) VerifyInput

func (p *PoWValidator) VerifyInput(miningBlob []byte, target []byte) bool

type PoWValidatorInterface

type PoWValidatorInterface interface {
	VerifyInput([]byte, []byte) bool
}

type Qryptonight

type Qryptonight struct {
	// contains filtered or unexported fields
}

func GetQryptonight

func GetQryptonight() *Qryptonight

func (*Qryptonight) Hash

func (q *Qryptonight) Hash(blob []byte) []byte

type QryptonightInterface

type QryptonightInterface interface {
	Hash(blob []byte) []byte
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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