client

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package client defines ECDSA keep client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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.

type Handle added in v1.6.0

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

Handle represents a handle to the ECDSA client.

func Initialize

func Initialize(
	ctx context.Context,
	operatorPublicKey *operator.PublicKey,
	hostChain chain.Handle,
	networkProvider net.Provider,
	persistence persistence.Handle,
	derivationIndexStorage *recovery.DerivationIndexStorage,
	clientConfig *Config,
	tbtcConfig *tbtc.Config,
	tssConfig *tss.Config,
) *Handle

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.

func (*Handle) TSSPreParamsPoolSize added in v1.6.0

func (h *Handle) TSSPreParamsPoolSize() int

TSSPreParamsPoolSize returns the current size of the TSS params pool.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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