Versions in this module Expand all Collapse all v0 v0.2.1 Sep 24, 2025 v0.2.0 Jan 8, 2025 Changes in this version + var ErrNotFound = fmt.Errorf("event not found") + type BeaconAnchor struct + Randomness []byte + Round uint64 + type DAG interface + AddEvent func(ctx context.Context, event *Event) error + GetChildren func(ctx context.Context, id string) ([]*Event, error) + GetEvent func(ctx context.Context, id string) (*Event, error) + GetMainEvents func(ctx context.Context) ([]*Event, error) + GetParents func(ctx context.Context, id string) ([]*Event, error) + GetSubEvents func(ctx context.Context, id string) ([]*Event, error) + Verify func(ctx context.Context) error + func NewMemoryDAG() DAG + type Event struct + Beacon *BeaconAnchor + Children []string + Data []byte + ID string + ParentID string + Parents []string + Type EventType + type EventType int + const MainEvent + const SubEvent