Versions in this module Expand all Collapse all v0 v0.2.17 Dec 28, 2019 v0.2.15 Dec 28, 2019 Changes in this version + var FirstPowLimit = func() big.Int { ... }() + var FirstPowLimitBits = BigToCompact(&FirstPowLimit) + var HashReps = 2 + var IsTestnet bool + var List = []HardForks + var MainPowLimit = func() big.Int { ... }() + var MainPowLimitBits = BigToCompact(&MainPowLimit) + 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 DivHash(hf func([]byte) []byte, blockbytes []byte, howmany int) []byte + 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 + type AlgoParams struct + MinBits uint32 + Version int32 + type HardForks struct + ActivationHeight int32 + AlgoVers map[int32]string + Algos map[string]AlgoParams + AveragingInterval int64 + Name string + Number uint32 + TargetTimePerBlock int32 + TestnetStart int32