Documentation ¶
Index ¶
- func CalcByzMaxWeight(committeeWeights []primitives.MemberWeight) uint
- func CalcQuorumWeight(committeeWeights []primitives.MemberWeight) uint
- func GetWeights(members []interfaces.CommitteeMember) []primitives.MemberWeight
- func HasHonest(committeeSubset []primitives.MemberId, ...) (bool, uint, uint)
- func IsQuorum(committeeSubset []primitives.MemberId, ...) (bool, uint, uint)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcByzMaxWeight ¶ added in v0.6.0
func CalcByzMaxWeight(committeeWeights []primitives.MemberWeight) uint
func CalcQuorumWeight ¶ added in v0.4.0
func CalcQuorumWeight(committeeWeights []primitives.MemberWeight) uint
func GetWeights ¶ added in v0.4.0
func GetWeights(members []interfaces.CommitteeMember) []primitives.MemberWeight
func HasHonest ¶ added in v0.6.0
func HasHonest(committeeSubset []primitives.MemberId, allCommitteeMembers []interfaces.CommitteeMember) (bool, uint, uint)
func IsQuorum ¶ added in v0.4.0
func IsQuorum(committeeSubset []primitives.MemberId, allCommitteeMembers []interfaces.CommitteeMember) (bool, uint, uint)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.