/rev/abe1bf5198b3
changeset: 1305:abe1bf5198b3
user:      Martin Geisler <[email protected]>
date:      Fri Sep 25 11:04:35 2009 +0200
summary:   active: be explicit about abstract get_triple

The revealed that the ActiveRuntime class was mixed badly: the
BasicActiveRuntime methods were overriding the TriplesPRSSMixin
methods.

diffstat:

 viff/active.py |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 0c57d87411b9 -r abe1bf5198b3 viff/active.py
--- a/viff/active.py    Fri Sep 25 11:30:58 2009 +0200
+++ b/viff/active.py    Fri Sep 25 11:04:35 2009 +0200
@@ -466,6 +466,9 @@
     :class:`ActiveRuntime` instead.
     """
 
+    def get_triple(self, field):
+        raise NotImplementedError
+
     def mul(self, share_x, share_y):
         """Multiplication of shares.
 
@@ -518,7 +521,7 @@
         return result
 
 
-class ActiveRuntime(BasicActiveRuntime, TriplesPRSSMixin):
+class ActiveRuntime(TriplesPRSSMixin, BasicActiveRuntime):
     """Default mix of :class:`BasicActiveRuntime` and
     :class:`TriplesPRSSMixin`."""
     pass
_______________________________________________
viff-commits mailing list
[email protected]
http://lists.viff.dk/listinfo.cgi/viff-commits-viff.dk

Reply via email to