fix for heading zeroes
authorthomasv <thomasv@gitorious>
Thu, 19 Apr 2012 12:52:21 +0000 (14:52 +0200)
committerthomasv <thomasv@gitorious>
Thu, 19 Apr 2012 12:52:21 +0000 (14:52 +0200)
client/mnemonic.py

index 9507992..82d2624 100644 (file)
@@ -1675,7 +1675,7 @@ def mn_decode( wlist ):
         w2 = (words.index(word2))%n
         w3 = (words.index(word3))%n
         x = w1 +n*((w2-w1)%n) +n*n*((w3-w2)%n)
-        out += '%x'%x
+        out += '%08x'%x
     return out