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).
- for core-pool see https://github.com/etclabscore/open-etc-pool
- for more information on etchash see https://github.com/eth-classic/etchash
- supports etchash, ethash & ubqhash
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
# Interfaces
No description provided by the author