tss

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 26 Imported by: 25

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PeerInfo added in v1.6.4

type PeerInfo struct {
	ID      string
	Address string
}

type Server

type Server interface {
	Start() error
	Stop()
	GetLocalPeerID() string
	GetKnownPeers() []PeerInfo
	Keygen(req keygen.Request) (keygen.Response, error)
	KeySign(req keysign.Request) (keysign.Response, error)
}

Server define the necessary functionality should be provide by a TSS Server implementation

type TssServer

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

TssServer is the structure that can provide all keysign and key gen features

func NewTss

func NewTss(
	cmdBootstrapPeers addr.AddrList,
	p2pPort int,
	priKey tcrypto.PrivKey,
	rendezvous,
	baseFolder string,
	conf common.TssConfig,
	preParams *bkeygen.LocalPreParams,
	externalIP string,
) (*TssServer, error)

NewTss create a new instance of Tss

func (*TssServer) GetKnownPeers added in v1.6.4

func (t *TssServer) GetKnownPeers() []PeerInfo

GetKnownPeers return the the ID and IP address of all peers.

func (*TssServer) GetLocalPeerID

func (t *TssServer) GetLocalPeerID() string

GetLocalPeerID return the local peer

func (*TssServer) KeySign

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

func (*TssServer) Keygen

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

func (*TssServer) Start

func (t *TssServer) Start() error

Start Tss server

func (*TssServer) Stop

func (t *TssServer) Stop()

Stop Tss server

Jump to

Keyboard shortcuts

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