changeset 1305:abe1bf5198b3

active: be explicit about abstract get_triple The revealed that the ActiveRuntime class was mixed badly: the BasicActiveRuntime methods were overriding the TriplesPRSSMixin methods.
author Martin Geisler <mg@cs.au.dk>
date Fri, 25 Sep 2009 11:04:35 +0200
parents 0c57d87411b9
children 6ac6dde1249f
files viff/active.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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