Categorygithub.com/yuriy0803/etchash
repositorypackage
1.0.0
Repository: https://github.com/yuriy0803/etchash.git
Documentation: pkg.go.dev

# README

go-etchash

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

  • supports Frkhash, 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) {
    ...
}