Versions in this module Expand all Collapse all v1 v1.1.1 Feb 22, 2026 v1.1.0 Feb 19, 2026 Changes in this version + func NewValidatorSet(valz AccountSet, logger hclog.Logger) *validatorSet + type AccountSet []*ValidatorMetadata + func (as *AccountSet) GetTotalVotingPower() *big.Int + func (as *AccountSet) Unmarshal(b []byte) error + func (as AccountSet) ApplyDelta(validatorsDelta *ValidatorSetDelta) (AccountSet, error) + func (as AccountSet) ContainsAddress(address types.Address) bool + func (as AccountSet) ContainsNodeID(nodeID string) bool + func (as AccountSet) Copy() AccountSet + func (as AccountSet) Equals(other AccountSet) bool + func (as AccountSet) GetAddresses() []types.Address + func (as AccountSet) GetAddressesAsSet() map[types.Address]struct{} + func (as AccountSet) GetBlsKeys() []*bls.PublicKey + func (as AccountSet) GetFilteredValidators(bitmap bitmap.Bitmap) (AccountSet, error) + func (as AccountSet) GetValidatorMetadata(address types.Address) *ValidatorMetadata + func (as AccountSet) Hash() (types.Hash, error) + func (as AccountSet) Index(addr types.Address) int + func (as AccountSet) Len() int + func (as AccountSet) Marshal() ([]byte, error) + func (as AccountSet) String() string + func (as AccountSet) ToAPIBinding() []*contractsapi.Validator + type GenesisValidator struct + Address types.Address + BlsKey string + MultiAddr string + Stake *big.Int + func (v *GenesisValidator) MarshalJSON() ([]byte, error) + func (v *GenesisValidator) String() string + func (v *GenesisValidator) ToValidatorMetadata() (*ValidatorMetadata, error) + func (v *GenesisValidator) UnmarshalBLSPublicKey() (*bls.PublicKey, error) + func (v *GenesisValidator) UnmarshalJSON(data []byte) (err error) + type TestValidator struct + Account *wallet.Account + Alias string + VotingPower uint64 + func NewTestValidator(tb testing.TB, alias string, votingPower uint64) *TestValidator + func (v *TestValidator) Address() types.Address + func (v *TestValidator) Key() *wallet.Key + func (v *TestValidator) MustSign(hash, domain []byte) *bls.Signature + func (v *TestValidator) ParamsValidator() *GenesisValidator + func (v *TestValidator) ValidatorMetadata() *ValidatorMetadata + type TestValidators struct + Validators map[string]*TestValidator + func NewTestValidators(tb testing.TB, validatorsCount int) *TestValidators + func NewTestValidatorsWithAliases(tb testing.TB, aliases []string, votingPowers ...[]uint64) *TestValidators + func (v *TestValidators) Create(t *testing.T, alias string, votingPower uint64) + func (v *TestValidators) GetParamValidators(aliases ...string) (res []*GenesisValidator) + func (v *TestValidators) GetPrivateIdentities(aliases ...string) (res []*wallet.Account) + func (v *TestValidators) GetPublicIdentities(aliases ...string) (res AccountSet) + func (v *TestValidators) GetValidator(alias string) *TestValidator + func (v *TestValidators) GetValidators(aliases ...string) (res []*TestValidator) + func (v *TestValidators) IterAcct(aliases []string, handle func(t *TestValidator)) + func (v *TestValidators) ToValidatorSet() ValidatorSet + func (v *TestValidators) UpdateVotingPowers(votingPowersMap map[string]uint64) AccountSet + type ValidatorMetadata struct + Address types.Address + BlsKey *bls.PublicKey + IsActive bool + VotingPower *big.Int + func (v *ValidatorMetadata) Copy() *ValidatorMetadata + func (v *ValidatorMetadata) EqualAddressAndBlsKey(b *ValidatorMetadata) bool + func (v *ValidatorMetadata) Equals(b *ValidatorMetadata) bool + func (v *ValidatorMetadata) MarshalRLPWith(ar *fastrlp.Arena) *fastrlp.Value + func (v *ValidatorMetadata) String() string + func (v *ValidatorMetadata) UnmarshalRLPWith(val *fastrlp.Value) error + type ValidatorSet interface + Accounts func() AccountSet + GetVotingPowers func() map[string]*big.Int + HasQuorum func(blockNumber uint64, signers map[types.Address]struct{}) bool + Includes func(address types.Address) bool + Len func() int + type ValidatorSetDelta struct + Added AccountSet + Removed bitmap.Bitmap + Updated AccountSet + func CreateValidatorSetDelta(oldValidatorSet, newValidatorSet AccountSet) (*ValidatorSetDelta, error) + func (d *ValidatorSetDelta) Copy() *ValidatorSetDelta + func (d *ValidatorSetDelta) Equals(other *ValidatorSetDelta) bool + func (d *ValidatorSetDelta) IsEmpty() bool + func (d *ValidatorSetDelta) MarshalRLPWith(ar *fastrlp.Arena) *fastrlp.Value + func (d *ValidatorSetDelta) String() string + func (d *ValidatorSetDelta) UnmarshalRLPWith(v *fastrlp.Value) error