Versions in this module Expand all Collapse all v0 v0.9.1 Apr 30, 2019 v0.9.0 Apr 29, 2019 Changes in this version + var AlgoVers = map[int32]string + var Algos = map[string]AlgoParams + var FirstPowLimit = func() big.Int { ... }() + var FirstPowLimitBits = BigToCompact(&FirstPowLimit) + var IsTestnet bool + var List = []HardForks + var P9AlgoVers = map[int32]string + var P9Algos = map[string]AlgoParams + var SecondPowLimit = func() big.Int { ... }() + var SecondPowLimitBits = BigToCompact(&SecondPowLimit) + func Argon2i(bytes []byte) []byte + func BigToCompact(n *big.Int) uint32 + func Blake14lr(bytes []byte) []byte + func Blake2b(bytes []byte) []byte + func Blake2s(bytes []byte) []byte + func CompactToBig(compact uint32) *big.Int + func Cryptonight7v2(bytes []byte) []byte + func GetAlgoID(algoname string, height int32) uint32 + func GetAlgoName(algoVer int32, height int32) (name string) + func GetAlgoVer(name string, height int32) (version int32) + func GetAveragingInterval(height int32) (r int64) + func GetCurrent(height int32) (curr int) + func GetMinBits(algoname string, height int32) (mb uint32) + func GetMinDiff(algoname string, height int32) (md *big.Int) + func GetTargetTimePerBlock(height int32) (r int64) + func Hash(bytes []byte, name string, height int32) (out chainhash.Hash) + func Keccak(bytes []byte) []byte + func Lyra2REv2(bytes []byte) []byte + func SHA256D(bytes []byte) []byte + func Scrypt(bytes []byte) []byte + func Skein(bytes []byte) []byte + func Stribog(bytes []byte) []byte + func X11(bytes []byte) []byte + type AlgoParams struct + AlgoID uint32 + MinBits uint32 + NSperOp int64 + Version int32 + type HardForks struct + ActivationHeight int32 + AlgoVers map[int32]string + Algos map[string]AlgoParams + AveragingInterval int64 + Name string + Number uint32 + TargetTimePerBlock time.Duration + TestnetStart int32 + WorkBase int64