-
Notifications
You must be signed in to change notification settings - Fork 113
/
events.go
43 lines (38 loc) · 1.26 KB
/
events.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package types
// Event types
const (
EventTypeKeygen = "keygen"
EventTypeSign = "sign"
EventTypeHeartBeat = "heartbeat"
EventTypeKey = "key"
)
// Event attribute keys
const (
AttributeKeyPoll = "poll"
AttributeChain = "chain"
AttributeKeyKeyID = "keyID"
AttributeKeyKeyType = "keyType"
AttributeKeySigID = "sigID"
AttributeKeySigModule = "sigModule"
AttributeKeySigData = "sigData"
AttributeKeySessionID = "sessionID"
AttributeKeyThreshold = "threshold"
AttributeKeyParticipants = "participants"
AttributeKeyParticipantShareCounts = "participantShareCounts"
AttributeKeyNonParticipants = "nonParticipants"
AttributeKeyNonParticipantShareCounts = "nonParticipantShareCounts"
AttributeKeyPayload = "payload"
AttributeKeyTimeout = "timeout"
AttributeKeyRole = "keyRole"
AttributeKeyKeyIDs = "keyIDs"
AttributeKeyKeyInfos = "keyInfos"
)
// Event attribute values
const (
AttributeValueSend = "send"
AttributeValueStart = "start"
AttributeValueMsg = "message"
AttributeValueDecided = "decided"
AttributeValueReject = "reject"
AttributeValueAssigned = "assigned"
)