Documentation ¶
Index ¶
- func CalShuffleTimeByHeaderTime(nextRoundBeginTime, blockTime, blockInterval, maxElectDelegate int64) int64
- func GetLocalIP() string
- func Shuffle(height int64, delegateNumber int) []int
- func ShuffleNewRound(beginTime int64, maxElectDelegate int, currentDposList []types.Candidate, ...) []types.ShuffleDel
- func Sign(data []byte, privateKey *ecdsa.PrivateKey) (sign []byte, err error)
- func VerifySignature(address string, data, sign []byte) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalShuffleTimeByHeaderTime ¶
func CalShuffleTimeByHeaderTime(nextRoundBeginTime, blockTime, blockInterval, maxElectDelegate int64) int64
get block shuffle time by block time and any shuffleTime,can not get future shuffle time
func GetLocalIP ¶
func GetLocalIP() string
func ShuffleNewRound ¶
func ShuffleNewRound(beginTime int64, maxElectDelegate int, currentDposList []types.Candidate, blockInterval int64) []types.ShuffleDel
beginTime: current shuffle time delegateNumber: Max delegate number currentDposList: current top delegates
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.