Categorygithub.com/george012/go-etchash
modulepackage
0.0.0-20230714112107-ee4eb65766e4
Repository: https://github.com/george012/go-etchash.git
Documentation: pkg.go.dev

# README

go-etchash

Etchash go module intended for use by core-pool (and open-ethereum-pool).

usage (etchash)

var ecip1099FBlockClassic uint64 = 11700000 // classic mainnet
var ecip1099FBlockMordor uint64 = 2520000 // mordor testnet

var hasher = etchash.New(&ecip1099FBlockMordor, nil)

if hasher.Verify(block) {
    ...
}

usage (ethash)

var hasher = etchash.New(nil, nil)

if hasher.Verify(block) {
    ...
}

usage (ubqhash)

var uip1FEpoch uint64 = 22 // ubiq mainnet

var hasher = etchash.New(nil, &uip1FEpoch)

if hasher.Verify(block) {
    ...
}

# Functions

MakeDAG generates a new etchash dataset and optionally stores it to disk.
New creates an instance of the proof of work.
NewForTesting creates a proof of work for use in unit tests.
NewShared creates an instance of the proof of work., where a single instance of the Light cache is shared across all instances created with NewShared.
SeedHash public Function to used.

# Variables

No description provided by the author
No description provided by the author

# Structs

Etchash combines block verification with Light and nonce searching with Full into a single proof of work.
Full implements the Search half of the proof of work.
Light implements the Verify half of the proof of work.

# Interfaces

No description provided by the author