tsslib

package
v0.0.0-...-5cda5f8 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT, MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server interface {
	Start() error
	Stop()
	GetLocalPeerID() string
	Keygen(req keygen2.Request) (keygen2.Response, error)
	KeySign(req keysign2.Request) (keysign2.Response, error)
	ExportPeerAddress() map[string]string
	GetParticipants(poolPubkey string) ([]string, error)
}

type TssServer

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

func NewTss

func NewTss(
	cmdBootstrapPeers string,
	waitFullConnected bool,
	p2pPort int,
	priKey *ecdsa.PrivateKey,
	storageFolder string,
	conf common2.TssConfig,
	preParamsFile string,
	externalIP string,
	secretsEnable bool,
	secretId string,
	shamirConfig tssconfig.ShamirConfig,
	store types.TssMemberStore,
) (*TssServer, error)

func (*TssServer) CheckPubKeys

func (t *TssServer) CheckPubKeys(signerPubKeys []string, threshold int) ([]peer.ID, error)

func (*TssServer) ExportPeerAddress

func (t *TssServer) ExportPeerAddress() map[string]string

func (*TssServer) GetLocalPeerID

func (t *TssServer) GetLocalPeerID() string

func (*TssServer) GetParticipants

func (t *TssServer) GetParticipants(poolPubkey string) ([]string, error)

func (*TssServer) KeySign

func (t *TssServer) KeySign(req keysign2.Request) (keysign2.Response, error)

func (*TssServer) Keygen

func (t *TssServer) Keygen(req keygen2.Request) (keygen2.Response, error)

func (*TssServer) Start

func (t *TssServer) Start() error

func (*TssServer) Stop

func (t *TssServer) Stop()

Stop Tss server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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