Versions in this module Expand all Collapse all v0 v0.1.1 Feb 9, 2023 v0.1.0 Nov 25, 2022 Changes in this version + const MoneroExportedSignMsg + const MoneroInitTransfer + const MoneroKeyGenShareExchange + const MoneroKeyGenSharepre + const MoneroSignShares + func GenerateSignature(msg []byte, msgID string, privKey tcrypto.PrivKey) ([]byte, error) + func GetMsgRound(wireMsg *messages.WireMessage, partyID *btss.PartyID, isMonero bool) (tb.RoundInfo, error) + func VerifySignature(pubKey tcrypto.PubKey, message, sig []byte, msgID string) bool + type LocalCacheItem struct + ConfirmedList map[string]string + Hash string + Msg *messages.WireMessage + func NewLocalCacheItem(msg *messages.WireMessage, hash string) *LocalCacheItem + func (l *LocalCacheItem) GetPeers() []string + func (l *LocalCacheItem) IsInConfirmedList(id string) bool + func (l *LocalCacheItem) RemovePeer(id string) + func (l *LocalCacheItem) TotalConfirmParty() int + func (l *LocalCacheItem) UpdateConfirmList(p2pID, hash string) + type MoneroShare struct + ExchangeRound int + MsgType string + MultisigInfo string + Sender string + func (s *MoneroShare) Equal(in *MoneroShare) bool + type PartyInfo struct + Party *btss.PartyID + PartyIDMap map[string]*btss.PartyID + type TssCommon struct + P2PPeers []peer.ID + PartyIDtoP2PID map[string]peer.ID + TssMsg chan *p2p.Message + func NewTssCommon(peerID string, broadcastChannel chan *messages.BroadcastMsgChan, ...) *TssCommon + func (t *TssCommon) GetBlameMgr() *blame.Manager + func (t *TssCommon) GetConf() TssConfig + func (t *TssCommon) GetLocalPeerID() string + func (t *TssCommon) GetMsgID() string + func (t *TssCommon) GetNodePrivKey() string + func (t *TssCommon) GetTaskDone() chan struct{} + func (t *TssCommon) NotifyTaskDone() error + func (t *TssCommon) ProcessInboundmessages(finishChan chan struct{}, wg *sync.WaitGroup, ...) + func (t *TssCommon) ProcessOneMessage(wrappedMsg *messages.WrappedMessage, peerID string, ...) error + func (t *TssCommon) ProcessOutCh(msg []byte, r *btss.MessageRouting, roundInfo string, ...) error + func (t *TssCommon) SetLocalPeerID(peerID string) + func (t *TssCommon) SetPartyInfo(partyInfo *PartyInfo) + func (t *TssCommon) TryGetAllLocalCached() []*LocalCacheItem + func (t *TssCommon) TryGetLocalCacheItem(key string) *LocalCacheItem + type TssConfig struct + EnableMonitor bool + KeyGenTimeout time.Duration + KeySignTimeout time.Duration + PartyTimeout time.Duration + WalletPassword string + WalletRPCA string + WalletRPCB string + func (cfg TssConfig) GetWalletRPC(exclude string) string