Documentation ¶
Index ¶
Constants ¶
View Source
const ( KEYGEN1 = "KGRound1Message" KEYGEN2aUnicast = "KGRound2Message1" KEYGEN2b = "KGRound2Message2" KEYGEN3 = "KGRound3Message" KEYSIGN1aUnicast = "SignRound1Message1" KEYSIGN1b = "SignRound1Message2" KEYSIGN2Unicast = "SignRound2Message" KEYSIGN3 = "SignRound3Message" KEYSIGN4 = "SignRound4Message" KEYSIGN5 = "SignRound5Message" KEYSIGN6 = "SignRound6Message" KEYSIGN7 = "SignRound7Message" TSSKEYGENROUNDS = 4 TSSKEYSIGNROUNDS = 8 MKEYGEN1 = "monerokeygen1" MKEYGEN2 = "monerokeygen2" )
View Source
const (
NEWJOINPARTYVERSION = "0.14.0"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BroadcastConfirmMessage ¶
type BroadcastConfirmMessage struct { P2PID string `json:"P2PID"` Key string `json:"key"` Hash string `json:"hash"` }
BroadcastConfirmMessage is used to broadcast to all parties what message they receive
type BroadcastMsgChan ¶
type BroadcastMsgChan struct { WrappedMessage WrappedMessage PeersID []peer.ID }
BroadcastMsgChan is the channel structure for keygen/keysign submit message to p2p network
type THORChainTSSMessageType ¶
type THORChainTSSMessageType uint8
THORChainTSSMessageType represent the messgae type used in THORChain TSS
const ( // TSSKeyGenMsg is the message directly generated by tss-lib package TSSKeyGenMsg THORChainTSSMessageType = iota // TSSKeySignMsg is the message directly generated by tss lib for sign TSSKeySignMsg // TSSKeyGenVerMsg is the message we create on top to make sure everyone received the same message TSSKeyGenVerMsg // TSSKeySignVerMsg is the message we create to make sure every party receive the same broadcast message TSSKeySignVerMsg // TSSControlMsg is the message we create to exchange Tss share TSSControlMsg // TSSTaskDone is the message of Tss process notification TSSTaskDone // Unknown is the message indicates the undefined message type Unknown )
func (THORChainTSSMessageType) String ¶
func (msgType THORChainTSSMessageType) String() string
String implement fmt.Stringer
type TssControl ¶
type TssControl struct { ReqHash string `json:"reqest_hash"` ReqKey string `json:"request_key"` RequestType THORChainTSSMessageType `json:"request_type"` Msg *WireMessage `json:"message_body"` }
type TssTaskNotifier ¶
type TssTaskNotifier struct {
TaskDone bool `json:"task_done"`
}
type WireMessage ¶
type WireMessage struct { Routing *btss.MessageRouting `json:"routing"` RoundInfo string `json:"round_info"` Message []byte `json:"message"` Sig []byte `json:"signature"` }
WireMessage the message that produced by tss-lib package
func (*WireMessage) GetCacheKey ¶
func (m *WireMessage) GetCacheKey() string
GetCacheKey return the key we used to cache it locally
type WrappedMessage ¶
type WrappedMessage struct { MessageType THORChainTSSMessageType `json:"message_type"` MsgID string `json:"message_id"` Payload []byte `json:"payload"` }
WrappedMessage is a message with type in it
Click to show internal directories.
Click to hide internal directories.