Documentation ¶
Index ¶
- Constants
- Variables
- type Abnormal
- type Manager
- func (m *Manager) CheckMsgDuplication(round RoundInfo, id string) bool
- func (m *Manager) GetAbnormal() *Abnormal
- func (m *Manager) GetAbnormalNodePubKeys() []string
- func (m *Manager) GetLastMsg() tss.Message
- func (m *Manager) GetRoundMgr() *RoundMgr
- func (m *Manager) GetShareMgr() *ShareMgr
- func (m *Manager) SetLastMsg(lastMsg tss.Message)
- func (m *Manager) SetLastUnicastPeer(peerID peer.ID, roundInfo string)
- func (m *Manager) SetPartyInfo(party tss.Party, partyIDMap map[string]*tss.PartyID)
- func (m *Manager) TssCulpritsNodes() []string
- func (m *Manager) UpdateAcceptShare(round RoundInfo, id string)
- type Node
- type PartyInfo
- type RoundInfo
- type RoundMgr
- type ShareMgr
Constants ¶
View Source
const ( HashCheckFail = "hash check failed" TssTimeout = "Tss timeout" TssSyncFail = "signers fail to sync before keygen/keysign" TssBrokenMsg = "tss share verification failed" InternalError = "fail to start the join party " GenerateNewKeyError = "fail to generate new key" SignatureError = "fail to signature message" )
Variables ¶
View Source
var ( ErrHashFromOwner = errors.New(" hash sent from data owner") ErrNotEnoughPeer = errors.New("not enough nodes to evaluate hash") ErrNotMajority = errors.New("message we received does not match the majority") ErrTssTimeOut = errors.New("error Tss Timeout") ErrHashCheck = errors.New("error in processing hash check") ErrHashInconsistency = errors.New("fail to agree on the hash value") )
Functions ¶
This section is empty.
Types ¶
type Abnormal ¶
type Abnormal struct { FailReason string `json:"fail_reason"` IsUnicast bool `json:"is_broadcast"` Nodes []*Node `json:"abnormal_peers,omitempty"` AbnormalLock sync.RWMutex }
func NewAbnormal ¶
func (*Abnormal) SetAbnormal ¶
type Manager ¶
type Manager struct { Abnormal *Abnormal PartyIDtoP2PID map[string]peer.ID // contains filtered or unexported fields }
func NewAbnormalManager ¶
func NewAbnormalManager() *Manager
func (*Manager) CheckMsgDuplication ¶
func (*Manager) GetAbnormal ¶
func (*Manager) GetAbnormalNodePubKeys ¶
func (*Manager) GetLastMsg ¶
func (*Manager) GetRoundMgr ¶
func (*Manager) GetShareMgr ¶
func (*Manager) SetLastMsg ¶
func (*Manager) SetLastUnicastPeer ¶
func (*Manager) SetPartyInfo ¶
func (*Manager) TssCulpritsNodes ¶
func (*Manager) UpdateAcceptShare ¶
type Node ¶
type RoundMgr ¶
type RoundMgr struct {
// contains filtered or unexported fields
}
func NewTssRoundMgr ¶
func NewTssRoundMgr() *RoundMgr
func (*RoundMgr) GetByRound ¶
Click to show internal directories.
Click to hide internal directories.