Documentation ¶
Index ¶
- type Server
- type ServerImp
- func (t *ServerImp) GetBalance(walletAddress string) (*wallet.ResponseGetBalance, error)
- func (t *ServerImp) GetLocalPeerID() string
- func (t *ServerImp) KeySign(req keysign.Request) (keysign.Response, error)
- func (t *ServerImp) Keygen(req keygen.Request) (keygen.Response, error)
- func (t *ServerImp) Start() error
- func (t *ServerImp) Stop()
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 ¶
GetLocalPeerID return the local peer
Click to show internal directories.
Click to hide internal directories.