Versions in this module Expand all Collapse all v0 v0.1.1 Dec 29, 2019 v0.1.0 Dec 29, 2019 Changes in this version + type CompletePolicy struct + func (p CompletePolicy) Check(m ParticipationMask) bool + type Mask struct + func NewMask(suite pairing.Suite, publics []kyber.Point, myKey kyber.Point) (*Mask, error) + func (m *Mask) CountEnabled() int + func (m *Mask) CountTotal() int + func (m *Mask) IndexOfNthEnabled(nth int) int + func (m *Mask) Len() int + func (m *Mask) Mask() []byte + func (m *Mask) Merge(mask []byte) error + func (m *Mask) NthEnabledAtIndex(idx int) int + func (m *Mask) Participants() []kyber.Point + func (m *Mask) Publics() []kyber.Point + func (m *Mask) SetBit(i int, enable bool) error + func (m *Mask) SetMask(mask []byte) error + type ParticipationMask interface + CountEnabled func() int + CountTotal func() int + type Policy interface + Check func(m ParticipationMask) bool + type ThresholdPolicy struct + func NewThresholdPolicy(thold int) *ThresholdPolicy + func (p ThresholdPolicy) Check(m ParticipationMask) bool