group

package
v3.0.0-rc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	GroupID tss.GroupID
}

Event represents the parsed information from a create_group event.

func ParseEvent

func ParseEvent(events sdk.StringEvents, evType string) (*Event, error)

ParseEvent parses the event from the given events. It extracts the event information from the events and returns the parsed Event or an error if parsing fails.

type Group

type Group struct {
	// contains filtered or unexported fields
}

Group is a worker responsible for group creation process of TSS module

func New

func New(ctx *context.Context) (*Group, error)

New creates a new instance of the Group worker. It initializes the necessary components and returns the created Group instance or an error if initialization fails.

func (*Group) Start

func (g *Group) Start()

Start starts the Group worker. It start worker of each round of group creation process.

func (*Group) Stop

func (g *Group) Stop() error

Stop stops the each round's worker.

type Round1

type Round1 struct {
	// contains filtered or unexported fields
}

Round1 is a worker responsible for round1 in the DKG process of TSS module

func NewRound1

func NewRound1(ctx *context.Context) (*Round1, error)

NewRound1 creates a new instance of the Round1 worker. It initializes the necessary components and returns the created Round1 instance or an error if initialization fails.

func (*Round1) Start

func (r *Round1) Start()

Start starts the Round1 worker. It subscribes to the events, and continuously processes incoming events by calling handleABCIEvents.

func (*Round1) Stop

func (r *Round1) Stop() error

Stop stops the Round1 worker.

type Round2

type Round2 struct {
	// contains filtered or unexported fields
}

Round2 is a worker responsible for round2 in the DKG process of TSS module

func NewRound2

func NewRound2(ctx *context.Context) (*Round2, error)

NewRound2 creates a new instance of the Round2 worker. It initializes the necessary components and returns the created Round2 instance or an error if initialization fails.

func (*Round2) Start

func (r *Round2) Start()

Start starts the Round2 worker. It subscribes to events and starts processing incoming events.

func (*Round2) Stop

func (r *Round2) Stop() error

Stop stops the Round2 worker.

type Round3

type Round3 struct {
	// contains filtered or unexported fields
}

Round3 is a worker responsible for round3 in the DKG process of TSS module

func NewRound3

func NewRound3(ctx *context.Context) (*Round3, error)

NewRound3 creates a new instance of the Round3 worker. It initializes the necessary components and returns the created Round3 instance or an error if initialization fails.

func (*Round3) Start

func (r *Round3) Start()

Start starts the Round3 worker. It subscribes to events and starts processing incoming events.

func (*Round3) Stop

func (r *Round3) Stop() error

Stop stops the Round3 worker.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL