de

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: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxDuplicateDEAttempts = 5
)

Variables

This section is empty.

Functions

func GenerateDEs

func GenerateDEs(n uint64, secret tss.Scalar, db DEGetter) (privDEs []store.DE, err error)

GenerateDEs generates n pairs of DE by using secret value as a random factor

Types

type DE

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

DE is a worker responsible for generating own nonce (DE) of signing process

func New

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

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

func (*DE) Start

func (de *DE) Start()

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

func (*DE) Stop

func (de *DE) Stop() error

Stop stops the DE worker.

type DEGetter

type DEGetter interface {
	HasDE(de types.DE) bool
}

type PubDE

type PubDE struct {
	PubDE types.DE
}

PubDE represents the data structure for public D,E being retrieved from events.

func ParsePubDEFromEvents

func ParsePubDEFromEvents(events sdk.StringEvents, eventType string) ([]PubDE, error)

ParsePubDEFromEvents parses the events into PubDE struct from the given events and event type. It extracts the public D and E from the log and returns the parsed Events or an error if parsing fails.

Jump to

Keyboard shortcuts

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