URI: 
       tdo not expose mnemonic_to_seed - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit bf3f67c043a5c599c725318c20821778425ddf51
   DIR parent db1e4689a943a5f4f882352d70315489b9f219c4
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Wed, 13 Aug 2014 15:43:54 +0200
       
       do not expose mnemonic_to_seed
       
       Diffstat:
         M lib/bitcoin.py                      |       4 ++--
         M lib/wallet.py                       |       3 ++-
       
       2 files changed, 4 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/lib/bitcoin.py b/lib/bitcoin.py
       t@@ -706,10 +706,10 @@ def xpub_from_xprv(xprv, testnet=False):
            return EncodeBase58Check(xpub)
        
        
       -def bip32_root(seed, testnet=False):
       +def bip32_root(mnemonic_seed, testnet=False):
            import hmac
            header_pub, header_priv = _get_headers(testnet)
       -    seed = seed.decode('hex')
       +    seed = mnemonic_to_seed(mnemonic_seed,'')
            I = hmac.new("Bitcoin seed", seed, hashlib.sha512).digest()
            master_k = I[0:32]
            master_c = I[32:]
   DIR diff --git a/lib/wallet.py b/lib/wallet.py
       t@@ -1313,7 +1313,8 @@ class NewWallet(Deterministic_Wallet):
                return xpub
        
            def create_master_keys(self, password):
       -        xpriv, xpub = bip32_root(mnemonic_to_seed(self.get_seed(password),'').encode('hex'))
       +        seed = self.get_seed(password)
       +        xpriv, xpub = bip32_root(seed)
                self.add_master_public_key("m/", xpub)
                self.add_master_private_key("m/", xpriv, password)