http://hg.viff.dk/viff/rev/806148d6146f
changeset: 1058:806148d6146f
user: Martin Geisler <[email protected]>
date: Tue Dec 16 13:21:22 2008 +0100
summary: Document the synchronize method.
diffstat:
1 file changed, 7 insertions(+)
viff/runtime.py | 7 +++++++
diffs (17 lines):
diff -r 8bb853b24714 -r 806148d6146f viff/runtime.py
--- a/viff/runtime.py Tue Dec 16 13:21:18 2008 +0100
+++ b/viff/runtime.py Tue Dec 16 13:21:22 2008 +0100
@@ -574,6 +574,13 @@
@increment_pc
def synchronize(self):
+ """Introduce a synchronization point.
+
+ Returns a :class:`Deferred` which will trigger if and when all
+ other players have made their calls to :meth:`synchronize`. By
+ adding callbacks to the returned :class:`Deferred`, one can
+ divide a protocol execution into disjoint phases.
+ """
shares = [self._exchange_shares(player, GF256(0))
for player in self.players]
result = gather_shares(shares)
_______________________________________________
viff-commits mailing list
[email protected]
http://lists.viff.dk/listinfo.cgi/viff-commits-viff.dk