changeset 1495:8a2f88e9f800

BeDOZa: Added str method to BeDOZaShareContents.
author Janus Dam Nielsen <janus.nielsen@alexandra.dk>
date Thu, 15 Jul 2010 11:35:20 +0200
parents cff86d2dc0ee
children 4892a9b5ceb7
files viff/bedoza.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/viff/bedoza.py	Thu Jul 15 11:35:18 2010 +0200
+++ b/viff/bedoza.py	Thu Jul 15 11:35:20 2010 +0200
@@ -75,6 +75,9 @@
         zks = BeDOZaKeyList(self.keyList.alpha, map(lambda k: c * k, self.keyList.keys))
         zms = BeDOZaMessageList(map(lambda m: c * m, self.macs.auth_codes))
         return BeDOZaShareContents(zi, zks, zms)
+
+    def __str__(self):
+        return "(%s, %s, %s)" % (str(self.value), str(self.keyList), str(self.macs))
     
 class BeDOZaShare(Share):
     """A share in the BeDOZa runtime.