Documentation ¶
Index ¶
- func DeserializeValidator(binaryData []byte) (istanbul.Validator, error)
- func DeserializeValidatorSet(binaryData []byte) (istanbul.ValidatorSet, error)
- func ExtractValidators(extraData []byte) []istanbul.ValidatorData
- func GetProposerSelector(pp istanbul.ProposerPolicy) istanbul.ProposerSelector
- func MapValidatorsToData(validators []istanbul.Validator) []istanbul.ValidatorData
- func MapValidatorsToDataWithBLSKeyCache(validators []istanbul.Validator) []istanbul.ValidatorDataWithBLSKeyCache
- func New(addr common.Address, blsPublicKey blscrypto.SerializedPublicKey) istanbul.Validator
- func NewSet(validators []istanbul.ValidatorData) istanbul.ValidatorSet
- func NewSetFromDataWithBLSKeyCache(validators []istanbul.ValidatorDataWithBLSKeyCache) istanbul.ValidatorSet
- func RoundRobinProposer(valSet istanbul.ValidatorSet, proposer common.Address, round uint64) istanbul.Validator
- func ShuffledRoundRobinProposer(valSet istanbul.ValidatorSet, proposer common.Address, round uint64) istanbul.Validator
- func StickyProposer(valSet istanbul.ValidatorSet, proposer common.Address, round uint64) istanbul.Validator
- func ValidExtraData(extraData []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeserializeValidator ¶
func DeserializeValidatorSet ¶
func DeserializeValidatorSet(binaryData []byte) (istanbul.ValidatorSet, error)
func ExtractValidators ¶
func ExtractValidators(extraData []byte) []istanbul.ValidatorData
func GetProposerSelector ¶
func GetProposerSelector(pp istanbul.ProposerPolicy) istanbul.ProposerSelector
GetProposerSelector returns the ProposerSelector for the given Policy
func MapValidatorsToData ¶
func MapValidatorsToData(validators []istanbul.Validator) []istanbul.ValidatorData
func MapValidatorsToDataWithBLSKeyCache ¶
func MapValidatorsToDataWithBLSKeyCache(validators []istanbul.Validator) []istanbul.ValidatorDataWithBLSKeyCache
func NewSet ¶
func NewSet(validators []istanbul.ValidatorData) istanbul.ValidatorSet
func NewSetFromDataWithBLSKeyCache ¶
func NewSetFromDataWithBLSKeyCache(validators []istanbul.ValidatorDataWithBLSKeyCache) istanbul.ValidatorSet
func RoundRobinProposer ¶
func RoundRobinProposer(valSet istanbul.ValidatorSet, proposer common.Address, round uint64) istanbul.Validator
RoundRobinProposer selects the next proposer with a round robin strategy according to storage order.
func ShuffledRoundRobinProposer ¶
func ShuffledRoundRobinProposer(valSet istanbul.ValidatorSet, proposer common.Address, round uint64) istanbul.Validator
ShuffledRoundRobinProposer selects the next proposer with a round robin strategy according to a shuffled order.
func StickyProposer ¶
func StickyProposer(valSet istanbul.ValidatorSet, proposer common.Address, round uint64) istanbul.Validator
StickyProposer selects the next proposer with a sticky strategy, advancing on round change.
func ValidExtraData ¶
Check whether the extraData is presented in prescribed form
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.