Documentation
¶
Index ¶
- Constants
- type Set
- func (v *Set) Bits(subset Set) uint64
- func (v Set) Equal(other Set) bool
- func (v Set) IndexOf(b []byte) (int, bool)
- func (v *Set) Insert(b []byte) bool
- func (v Set) Intersect(committeeSet uint64) Set
- func (v Set) Len() int
- func (v Set) Less(i, j int) bool
- func (v *Set) Remove(pubKeyBLS []byte) bool
- func (v Set) String() string
- func (v Set) Swap(i, j int)
- func (v Set) Whole() uint64
Constants ¶
View Source
const All uint64 = math.MaxUint64
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
func (*Set) Bits ¶
Bits creates a bit representation of the subset of a Set. The subset is passed by value
func (*Set) Insert ¶
Insert a big.Int representation of a BLS key at a proper index (respectful of the VotingCommittee order). If the element is already in the VotingCommittee does nothing and returns false
func (Set) Intersect ¶
Intersect the bit representation of a VotingCommittee subset with the whole VotingCommittee set
Click to show internal directories.
Click to hide internal directories.