URI: 
       tseed prefix 01 - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 5cb1d6afda436def5a01ce79490e1b0083fe1fe7
   DIR parent 31aaae8ed22d932a06b0ddeddbe0bc9932c0367b
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Thu, 31 Oct 2013 09:32:22 +0100
       
       seed prefix 01
       
       Diffstat:
         M lib/version.py                      |       2 +-
         M lib/wallet.py                       |       4 ++--
       
       2 files changed, 3 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/lib/version.py b/lib/version.py
       t@@ -1,5 +1,5 @@
        ELECTRUM_VERSION = "1.9"    # version of the client package
        PROTOCOL_VERSION = '0.6'    # protocol version requested
        SEED_VERSION     = 6        # bump this every time the seed generation is modified
       -SEED_PREFIX      = '100'    # the hash of a valid mnemonic seed must begin with this (12 bits)
       +SEED_PREFIX      = '01'     # the hash of the mnemonic seed must begin with this
        TRANSLATION_ID   = 4127     # version of the wiki page 
   DIR diff --git a/lib/wallet.py b/lib/wallet.py
       t@@ -281,7 +281,7 @@ class Wallet:
                    # we keep only 13 words, that's approximately 139 bits of entropy
                    words = mnemonic.mn_encode(s)[0:13] 
                    seed = ' '.join(words)
       -            if mnemonic_hash(seed)[0:3] == SEED_PREFIX: 
       +            if mnemonic_hash(seed).startswith(SEED_PREFIX): 
                        break  # this removes 12 bits of entropy 
                    nonce += 1
        
       t@@ -316,7 +316,7 @@ class Wallet:
                    self.seed_version = 4
                    self.seed = mnemonic.mn_encode(seed)
                else:
       -            assert mnemonic_hash(seed)[0:3] == SEED_PREFIX
       +            assert mnemonic_hash(seed).startswith(SEED_PREFIX)
                    self.seed_version = SEED_VERSION
                    self.seed = seed