Versions in this module Expand all Collapse all v0 v0.1.0 Jan 6, 2025 Changes in this version + type DAG struct + func NewDAG() *DAG + func (d *DAG) AddEvent(event *Event) error + func (d *DAG) GetAllEvents() []*Event + func (d *DAG) GetEvent(id string) (*Event, error) + func (d *DAG) VerifyEventChain(eventID string) error + type Event struct + BeaconHash string + BeaconRound uint64 + Data []byte + ID string + IsSubEvent bool + ParentEvent string + Parents []string + SubEvents []string + Timestamp time.Time + func NewEvent(data []byte, parents []string) (*Event, error) + func NewSubEvent(data []byte, parentEventID string, additionalParents []string) (*Event, error) + func (e *Event) AddSubEvent(subEventID string) + func (e *Event) SetBeaconRound(round uint64, randomness []byte)