Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BroadcastChannel ¶
type BroadcastChannel interface { Send(msg []byte) ReceiveRound() (int, []BroadcastMessage) }
BroadcastChannel is a channel used by a party to perform send and receive operations in the execution of a protocol
type BroadcastMessage ¶
type BroadcastMessage struct { Payload []byte `codec:"payload"` SenderID int `codec:"snd_id"` // contains filtered or unexported fields }
BroadcastMessage is a wrapper for a message broadcasted by a party in the protocol
type RoundMessages ¶
type RoundMessages struct { Messages []BroadcastMessage `codec:"msgs"` Round int `codec:"rnd"` // contains filtered or unexported fields }
RoundMessages is a wrapper for all the messages send in a round
Click to show internal directories.
Click to hide internal directories.