Documentation ¶
Index ¶
- Constants
- func CalcuDeadline(pid *big.Int, nonce *big.Int, baseTarget *big.Int, scn uint64, gensig []byte) int64
- func CalcuHit(pid, nonce *big.Int, genSig []byte) uint64
- func CalcuHitAndScoop(pid, nonce *big.Int, genSig []byte, scoopNum uint64) uint64
- func CalculateGenSinGen(lastSig []byte, Generator *big.Int) []byte
- func CalculateGenerFSP(secretPhrase string) (PID *big.Int)
- func CalculateGenerationSignature(lastSig []byte, pub []byte) []byte
- func CalculateScoop(genSig []byte, height *big.Int) uint64
- func DateToTimestamp(date time.Time) uint32
- func DecodeGeneratorSignature(genSigStr string) ([]byte, error)
Constants ¶
View Source
const ( SCOOP_SIZE = 64 NUM_SCOOPS = 4096 NONCE_SIZE = NUM_SCOOPS * SCOOP_SIZE HASH_SIZE = 32 HASH_CAP = 4096 )
View Source
const ( // GenesisBaseTarget is the base target of the first block GenesisBaseTarget = 18325193796 // BlockChainStart is the timestamp of the first Block BlockChainStart = 1407722400 )
Variables ¶
This section is empty.
Functions ¶
func CalcuDeadline ¶
func CalcuHitAndScoop ¶
func CalculateGenerFSP ¶
func DateToTimestamp ¶
DateToTimeStamp yields a timestamp counted since block chain start
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.