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 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 ¶
Click to show internal directories.
Click to hide internal directories.