viff

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 diff
     1.1 --- a/viff/active.py	Fri Sep 25 11:30:58 2009 +0200
     1.2 +++ b/viff/active.py	Fri Sep 25 11:04:35 2009 +0200
     1.3 @@ -466,6 +466,9 @@
     1.4      :class:`ActiveRuntime` instead.
     1.5      """
     1.6  
     1.7 +    def get_triple(self, field):
     1.8 +        raise NotImplementedError
     1.9 +
    1.10      def mul(self, share_x, share_y):
    1.11          """Multiplication of shares.
    1.12  
    1.13 @@ -518,7 +521,7 @@
    1.14          return result
    1.15  
    1.16  
    1.17 -class ActiveRuntime(BasicActiveRuntime, TriplesPRSSMixin):
    1.18 +class ActiveRuntime(TriplesPRSSMixin, BasicActiveRuntime):
    1.19      """Default mix of :class:`BasicActiveRuntime` and
    1.20      :class:`TriplesPRSSMixin`."""
    1.21      pass