Documentation
¶
Index ¶
- func Connect(host string, port string, timeout time.Duration, logger log.Logger) (*grpc.ClientConn, error)
- func SetMpk(mpk []byte, id string)
- type AtomicSlice
- type EventMsg
- type KeyShareRecoveryInfo
- type KeygenAttributes
- type KeygenEvent
- type LockableStream
- type MPK
- type Mgr
- func (mgr *Mgr) CheckTimeout(e types.Event) error
- func (mgr *Mgr) ProcessKeygenMsg(e []types.Event, h int64) error
- func (mgr *Mgr) ProcessKeygenMsgDispute(e []KeygenEvent) error
- func (mgr *Mgr) ProcessKeygenStart(e types.Event) error
- func (mgr *Mgr) ProcessNewBlockHeader(blockHeight int64)
- func (mgr *Mgr) ProcessTimeout() error
- func (mgr *Mgr) Recover(recoverJSON []byte) error
- type P2pSad
- type Session
- type Share
- type ShareInfoDispute
- type Stream
- type TimeoutQueue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AtomicSlice ¶
type AtomicSlice struct {
// contains filtered or unexported fields
}
func (*AtomicSlice) Append ¶
func (a *AtomicSlice) Append(item int)
type EventMsg ¶
type EventMsg struct { MsgIndex int `json:"msg_index"` Events []KeygenEvent `json:"events"` }
type KeyShareRecoveryInfo ¶
type KeyShareRecoveryInfo struct {
}type KeygenAttributes ¶
type KeygenEvent ¶
type KeygenEvent struct { Type string `json:"type"` Attributes []KeygenAttributes `json:"attributes"` }
type LockableStream ¶
type LockableStream struct {
// contains filtered or unexported fields
}
func NewLockableStream ¶
func NewLockableStream(stream Stream) *LockableStream
func (*LockableStream) CloseSend ¶
func (l *LockableStream) CloseSend() error
func (*LockableStream) Recv ¶
func (l *LockableStream) Recv() (*tofnd.MessageOut, error)
type Mgr ¶
type Mgr struct { Timeout time.Duration Logger log.Logger // contains filtered or unexported fields }
func (*Mgr) ProcessKeygenMsgDispute ¶
func (mgr *Mgr) ProcessKeygenMsgDispute(e []KeygenEvent) error
func (*Mgr) ProcessNewBlockHeader ¶
ProcessNewBlockHeader handles timeout on new block header
func (*Mgr) ProcessTimeout ¶
type P2pSad ¶
type P2pSad struct {
VssComplaint []ShareInfoDispute `json:"vss_complaint"`
}
type Session ¶
func (*Session) WaitForTimeout ¶
func (s *Session) WaitForTimeout()
type ShareInfoDispute ¶
type ShareInfoDispute struct {}
type TimeoutQueue ¶
type TimeoutQueue struct {
// contains filtered or unexported fields
}
func NewTimeoutQueue ¶
func NewTimeoutQueue() *TimeoutQueue
func (*TimeoutQueue) Dequeue ¶
func (q *TimeoutQueue) Dequeue() *Session
func (*TimeoutQueue) Top ¶
func (q *TimeoutQueue) Top() *Session
Click to show internal directories.
Click to hide internal directories.