viff

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 diff
     1.1 --- a/viff/bedoza.py	Thu Jul 15 11:35:18 2010 +0200
     1.2 +++ b/viff/bedoza.py	Thu Jul 15 11:35:20 2010 +0200
     1.3 @@ -75,6 +75,9 @@
     1.4          zks = BeDOZaKeyList(self.keyList.alpha, map(lambda k: c * k, self.keyList.keys))
     1.5          zms = BeDOZaMessageList(map(lambda m: c * m, self.macs.auth_codes))
     1.6          return BeDOZaShareContents(zi, zks, zms)
     1.7 +
     1.8 +    def __str__(self):
     1.9 +        return "(%s, %s, %s)" % (str(self.value), str(self.keyList), str(self.macs))
    1.10      
    1.11  class BeDOZaShare(Share):
    1.12      """A share in the BeDOZa runtime.