tss

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: MIT Imports: 25 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 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 ServerImp

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

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

func NewTss

func NewTss(
	comm *p2p.Communication,
	priKey tcrypto.PrivKey,
	baseFolder string,
	conf common.TssConfig,
	walletAccessorCreator monero_multi_sig.WalletAccessorCreator,
	fileStateManagerCreator storage.LocalStateManagerCreator) (*ServerImp, error)

NewTss create a new instance of Tss

func (*ServerImp) GetBalance added in v0.1.1

func (t *ServerImp) GetBalance(walletAddress string) (*wallet.ResponseGetBalance, error)

GetBalance will used the given wallet address to figure out which wallet rpc instance it need to send the request to and then proxy the request to the wallet instance , return the result.

func (*ServerImp) GetLocalPeerID

func (t *ServerImp) GetLocalPeerID() string

GetLocalPeerID return the local peer

func (*ServerImp) KeySign

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

func (*ServerImp) Keygen

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

Keygen process keygen request

func (*ServerImp) Start

func (t *ServerImp) Start() error

Start Tss server

func (*ServerImp) Stop

func (t *ServerImp) Stop()

Stop Tss server

Jump to

Keyboard shortcuts

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