2023-04-03 21:45:19 +00:00
|
|
|
package group_manager
|
2023-09-07 16:23:48 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/waku-org/go-zerokit-rln/rln"
|
|
|
|
)
|
|
|
|
|
|
|
|
type GroupManager interface {
|
|
|
|
Start(ctx context.Context) error
|
|
|
|
IdentityCredentials() (rln.IdentityCredential, error)
|
|
|
|
MembershipIndex() rln.MembershipIndex
|
|
|
|
Stop() error
|
2023-09-11 21:34:56 +00:00
|
|
|
IsReady(ctx context.Context) (bool, error)
|
2023-09-07 16:23:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Details struct {
|
|
|
|
GroupManager GroupManager
|
|
|
|
RootTracker *MerkleRootTracker
|
|
|
|
|
|
|
|
RLN *rln.RLN
|
|
|
|
}
|