Documentation ¶
Index ¶
- type Server
- type TssServer
- func (t *TssServer) GetCommunication() *p2p.Communication
- func (t *TssServer) GetLocalPeerID() string
- func (t *TssServer) KeySign(req keysign.Request) (keysign.Response, error)
- func (t *TssServer) Keygen(req keygen.Request) (keygen.Response, error)
- func (t *TssServer) Start() error
- func (t *TssServer) 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 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 p2p.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) GetCommunication ¶ added in v1.5.9
func (t *TssServer) GetCommunication() *p2p.Communication
GetCommunication return the internal communication , so it can be shared
func (*TssServer) GetLocalPeerID ¶
GetLocalPeerID return the local peer
Click to show internal directories.
Click to hide internal directories.