client

package
v1.2.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: MIT Imports: 17 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package client defines ECDSA keep client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(
	ctx context.Context,
	operatorPublicKey *operator.PublicKey,
	ethereumChain eth.Handle,
	networkProvider net.Provider,
	persistence persistence.Handle,
	sanctionedApplications []common.Address,
	clientConfig *Config,
	tssConfig *tss.Config,
)

Initialize initializes the ECDSA client with rules related to events handling. Expects a slice of sanctioned applications selected by the operator for which operator will be registered as a member candidate.

Types

type Config added in v1.2.0

type Config struct {
	// Defines the look-back period to check if existing, active keeps are awaiting
	// signer generation on the client start. The client does not check keeps older
	// than the look-back value.
	AwaitingKeyGenerationLookback configtime.Duration

	// Timeout for key generation and signature calculation.
	KeyGenerationTimeout configtime.Duration
	SigningTimeout       configtime.Duration
}

Config contains configuration for tss protocol execution.

func (*Config) GetAwaitingKeyGenerationLookback added in v1.2.0

func (c *Config) GetAwaitingKeyGenerationLookback() time.Duration

GetAwaitingKeyGenerationLookback returns a look-back period to check if existing, active keeps are awaiting signer generation. If a value is not set it returns a default value.

func (*Config) GetKeyGenerationTimeout added in v1.2.0

func (c *Config) GetKeyGenerationTimeout() time.Duration

GetKeyGenerationTimeout returns key generation timeout. If a value is not set it returns a default value.

func (*Config) GetSigningTimeout added in v1.2.0

func (c *Config) GetSigningTimeout() time.Duration

GetSigningTimeout returns signature calculation timeout. If a value is not set it returns a default value.

Jump to

Keyboard shortcuts

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