URI: 
       tfix CKD in p2sh accounts - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 9567af02190e5b5363ee7a3918ed5d22e1d0f429
   DIR parent e082550f80b1218b1d84c367ac433ff770a9e194
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Tue,  1 Apr 2014 12:34:03 +0200
       
       fix CKD in p2sh accounts
       
       Diffstat:
         M lib/account.py                      |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/lib/account.py b/lib/account.py
       t@@ -177,7 +177,7 @@ class BIP32_Account_2of2(BIP32_Account):
            def get_pubkey2(self, for_change, n):
                _, _, _, c, cK = deserialize_xkey(self.xpub2)
                for i in [for_change, n]:
       -            cK, c = CKD_prime(cK, c, i)
       +            cK, c = CKD_pub(cK, c, i)
                return cK.encode('hex')
        
            def redeem_script(self, sequence):
       t@@ -214,7 +214,7 @@ class BIP32_Account_2of3(BIP32_Account_2of2):
            def get_pubkey3(self, for_change, n):
                _, _, _, c, cK = deserialize_xkey(self.xpub3)
                for i in [for_change, n]:
       -            cK, c = CKD_prime(cK, c, i)
       +            cK, c = CKD_pub(cK, c, i)
                return cK.encode('hex')
        
            def get_redeem_script(self, sequence):