Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultDir = defaultDir()
Functions ¶
func GetSeedHash ¶
Types ¶
type Ethash ¶
Ethash combines block verification with Light and nonce searching with Full into a single proof of work.
func New ¶
func New() *Ethash
New creates an instance of the proof of work. A single instance of Light is shared across all instances created with New.
func NewForTesting ¶
NewForTesting creates a proof of work for use in unit tests. It uses a smaller DAG and cache size to keep test times low. DAG files are stored in a temporary directory.
Nonces found by a testing instance are not verifiable with a regular-size cache.
type Full ¶
type Full struct { Dir string // use this to specify a non-default DAG directory // contains filtered or unexported fields }
Full implements the Search half of the proof of work.
func (*Full) GetHashrate ¶
Click to show internal directories.
Click to hide internal directories.