changeset 1444:0ca61834e8f8

Fixed parameters to be consistent with description.
author Janus Dam Nielsen <janus.nielsen@alexandra.dk>
date Fri, 02 Jul 2010 10:21:13 +0200
parents d4732f3eea69
children 67def1bd577b
files viff/bedoza.py
diffstat 1 files changed, 11 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/viff/bedoza.py	Fri Jul 02 09:53:50 2010 +0200
+++ b/viff/bedoza.py	Fri Jul 02 10:21:13 2010 +0200
@@ -17,13 +17,19 @@
 
 """Full threshold actively secure runtime."""
 
+from twisted.internet.defer import Deferred, gatherResults, succeed
+
+from viff.runtime import Runtime, Share
+
+from hash_broadcast import HashBroadcastMixin
+
 class BeDOZaShare(Share):
     """A share in the BeDOZa runtime.
 
-    A share in the BeDOZa runtime is a pair ``(x_i, Ks)`` of:
+    A share in the BeDOZa runtime is a pair ``(x_i, keys)`` of:
 
     - A share of a number, ``x_i``
-    - A n-tuple of keys, ``Ks``
+    - A n-tuple of keys, ``keys``
 
     The :class:`Runtime` operates on shares, represented by this class.
     Shares are asynchronous in the sense that they promise to attain a
@@ -36,11 +42,10 @@
     that runtime.
     """
 
-    def __init__(self, runtime, field, value=None, rho=None, commitment=None):
+    def __init__(self, runtime, field, value=None, keys=None):
         self.share = value
-        self.rho = rho
-        self.commitment = commitment
-        Share.__init__(self, runtime, field, (value, rho, commitment))
+        self.keys = keys
+        Share.__init__(self, runtime, field, (value, keys))
 
 
 class BeDOZaRuntime(Runtime, HashBroadcastMixin):