Documentation ¶
Index ¶
- func Setup(index rln.MembershipIndex) ([]rln.IDCommitment, rln.IdentityCredential, error)
- type StaticGroupManager
- func (gm *StaticGroupManager) IdentityCredentials() (rln.IdentityCredential, error)
- func (gm *StaticGroupManager) IsReady(ctx context.Context) (bool, error)
- func (gm *StaticGroupManager) MembershipIndex() rln.MembershipIndex
- func (gm *StaticGroupManager) Start(ctx context.Context) error
- func (gm *StaticGroupManager) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Setup ¶
func Setup(index rln.MembershipIndex) ([]rln.IDCommitment, rln.IdentityCredential, error)
Types ¶
type StaticGroupManager ¶
type StaticGroupManager struct {
// contains filtered or unexported fields
}
func NewStaticGroupManager ¶
func NewStaticGroupManager( group []rln.IDCommitment, identityCredential rln.IdentityCredential, index rln.MembershipIndex, rlnInstance *rln.RLN, rootTracker *group_manager.MerkleRootTracker, log *zap.Logger, ) (*StaticGroupManager, error)
func (*StaticGroupManager) IdentityCredentials ¶
func (gm *StaticGroupManager) IdentityCredentials() (rln.IdentityCredential, error)
func (*StaticGroupManager) IsReady ¶ added in v0.8.0
func (gm *StaticGroupManager) IsReady(ctx context.Context) (bool, error)
func (*StaticGroupManager) MembershipIndex ¶
func (gm *StaticGroupManager) MembershipIndex() rln.MembershipIndex
func (*StaticGroupManager) Stop ¶
func (gm *StaticGroupManager) Stop() error
Stop is a function created just to comply with the GroupManager interface (it does nothing)
Click to show internal directories.
Click to hide internal directories.