Package viff :: Module active :: Class BrachaBroadcastMixin
[hide private]
[frames] | no frames]

Class BrachaBroadcastMixin

source code

Bracha broadcast mixin class. This mixin class adds a broadcast method which can be used for a reliable broadcast.
Instance Methods [hide private]
 
_broadcast(self, sender, message=None)
Perform a Bracha broadcast.
source code
 
broadcast(self, senders, message=None)
Perform one or more Bracha broadcast(s).
source code
Method Details [hide private]

_broadcast(self, sender, message=None)

source code 

Perform a Bracha broadcast.

A Bracha broadcast is reliable against an active adversary corrupting up to t < n/3 of the players. For more details, see the paper "An asynchronous [(n-1)/3]-resilient consensus protocol" by G. Bracha in Proc. 3rd ACM Symposium on Principles of Distributed Computing, 1984, pages 154-162.

broadcast(self, senders, message=None)

source code 

Perform one or more Bracha broadcast(s).

The list of senders given will determine the subset of players who wish to broadcast a message. If this player wishes to broadcast, its ID must be in the list of senders and the optional message parameter must be used.

If the list of senders consists only of a single sender, the result will be a single element, otherwise it will be a list.

A Bracha broadcast is reliable against an active adversary corrupting up to t < n/3 of the players. For more details, see the paper "An asynchronous [(n-1)/3]-resilient consensus protocol" by G. Bracha in Proc. 3rd ACM Symposium on Principles of Distributed Computing, 1984, pages 154-162.