Versions in this module Expand all Collapse all v1 v1.0.0 Jul 3, 2020 Changes in this version + const BASE_LENGTH + const BlockSize + const HASHES_PER_SCOOP + const HASH_CAP + const HASH_SIZE + const P25 + const P26 + const PLOT_SIZE + const PLOT_TOTAL_SIZE + const SCOOPS_PER_PLOT + const SCOOP_SIZE + const Size + var BASE_2Y = long10 + var BASE_R2Y = long10 + var ORDER = []byte + var ORDER_TIMES_8 = []byte + var PRIME = []byte + var SCOOPS_PER_PLOT_BIGINT *big.Int = big.NewInt(int64(SCOOPS_PER_PLOT)) + var ZERO = []byte + func CalculateDeadline(accountId uint64, nonce uint64, genSig []byte, scoop int, baseTarget uint64, ...) uint64 + func CalculateDeadlineOfPoc2(accountId uint64, nonce uint64, genSig [32]byte, height uint64, ...) uint64 + func CalculateGenerationSignature(lastGenSig []byte, lastGenId uint64) []byte + func CalculateHit(accountId uint64, nonce uint64, genSig []byte, scoop int, pocVersion int) uint64 + func CalculateScoop(genSig []byte, height uint64) int + func ClampPrivateKey(privateKey []byte) + func GetPublicKey(privateKey []byte) [32]byte + func GetSharedSecret(privateKey []byte, publicKey []byte) [32]byte + func SignMsg(message []byte, privateKey []byte) [64]byte + func Sum256(data []byte) [Size]byte + func VerifyMsg(message []byte, signature []byte, publicKey []byte, enforceCanonical bool) bool + type Digest struct + func NewDegist() *Digest + func (d *Digest) BlockSize() int + func (d *Digest) Reset() + func (d *Digest) Size() int + func (d *Digest) Write(p []byte) (int, error) + func (d *Digest) Write1(p []byte, off uint32, nn int) (int, error) + func (d0 *Digest) Sum(in []byte) []byte + type MiningPlot struct + func NewMiningPlot(accountId uint64, nonce uint64, pocVersion int) *MiningPlot + func (mp *MiningPlot) HashScoop(digist *Digest, pos int)