mpk hex encoding
authorThomasV <thomasv@gitorious>
Thu, 15 May 2014 07:13:50 +0000 (09:13 +0200)
committerThomasV <thomasv@gitorious>
Thu, 15 May 2014 07:13:50 +0000 (09:13 +0200)
lib/account.py

index 66e6b73..7329ff5 100644 (file)
@@ -197,14 +197,14 @@ class OldAccount(Account):
         return None
 
     def get_master_pubkeys(self):
-        return [self.mpk]
+        return [self.mpk.encode('hex')]
 
     def get_type(self):
         return _('Old Electrum format')
 
     def get_keyID(self, sequence):
         a, b = sequence
-        return 'old(%s,%d,%d)'%(self.mpk,a,b)
+        return 'old(%s,%d,%d)'%(self.mpk.encode('hex'),a,b)