cequihash

package module
v0.0.0-...-f43a38f Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: ISC Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendExpandedNonce

func AppendExpandedNonce(headerBytes []byte, nonce uint32) []byte

func EquihashSolutionSize

func EquihashSolutionSize(n, k int) int

func ExtractSolution

func ExtractSolution(n, k int, solptr unsafe.Pointer) []byte

func SolveEquihash

func SolveEquihash(n, k int, input []byte, nonce uint32, algoVersion uint8, callback EquihashCallback)

func ValidateEquihash

func ValidateEquihash(n, k int, input []byte, solution []byte) bool

Types

type EquihashCallback

type EquihashCallback interface {
	Validate(pointer unsafe.Pointer) int
}

type SolutionAppenderData

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

func (SolutionAppenderData) Validate

func (data SolutionAppenderData) Validate(solution unsafe.Pointer) int

type SolutionHolder

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

Jump to

Keyboard shortcuts

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