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 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BroadcastConfirmMessage ¶
type BroadcastConfirmMessage struct { FromID string `json:"from_id"` Key string `json:"key"` Hash string `json:"hash"` }
pb.Message_TSS_KEY_GEN_VER, pb.Message_TSS_KEY_SIGN_VER BroadcastConfirmMessage is used to broadcast to all parties what message they receive
type SendMsgChan ¶
type SendMsgChan struct { WireMsg *WireMessage PartiesID []uint64 }
type TaskMessage ¶
type TaskMessage struct { Routing *btss.MessageRouting `json:"routing"` RoundInfo string `json:"round_info"` Message []byte `json:"message"` Sig []byte `json:"signature"` }
pb.Message_TSS_KEY_GEN, pb.Message_TSS_KEY_SIGN TaskMessage the message that produced by tss-lib package
func (*TaskMessage) GetCacheKey ¶
func (m *TaskMessage) GetCacheKey() string
GetCacheKey return the key we used to cache it locally
type TssControl ¶
type TssControl struct { FromID string `json:"from_id"` ReqHash string `json:"reqest_hash"` ReqKey string `json:"request_key"` RequestType TssMsgType `json:"request_type"` Msg *TaskMessage `json:"message_body"` }
pb.Message_TSS_CONTROL
type TssMsgType ¶
type TssMsgType uint8
const ( // TSSKeyGenMsg is the message directly generated by tss-lib package TSSKeyGenMsg TssMsgType = 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 TssUnknown )
type TssTaskNotifier ¶
pb.Message_TSS_TASK_DONE
type WireMessage ¶
type WireMessage struct { MsgID string `json:"msg_id"` MsgType TssMsgType `json:"msg_type"` MsgData []byte `json:"msg_data"` }
Click to show internal directories.
Click to hide internal directories.