electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 38e662e5227ae0fa819e353b65aa1195bb92ba9f
parent c0fe5962ad32ab43d75b9cee124b860c0acbdf24
Author: ThomasV <thomasv@gitorious>
Date:   Tue,  8 Jul 2014 19:27:43 +0200

fix syntax of redeem_script

Diffstat:
Mlib/account.py | 17++++-------------
1 file changed, 4 insertions(+), 13 deletions(-)

diff --git a/lib/account.py b/lib/account.py @@ -72,11 +72,8 @@ class Account(object): def get_name(self, k): return _('Main account') - def get_keyID(self, *sequence): - pass - - def redeem_script(self, *sequence): - pass + def redeem_script(self, for_change, n): + return None class PendingAccount(Account): @@ -220,17 +217,14 @@ class OldAccount(Account): raise Exception('Invalid password') return True - def redeem_script(self, sequence): - return None - def get_master_pubkeys(self): return [self.mpk.encode('hex')] def get_type(self): return _('Old Electrum format') - def get_xpubkeys(self, sequence): - s = ''.join(map(lambda x: bitcoin.int_to_hex(x,2), sequence)) + def get_xpubkeys(self, for_change, n): + s = ''.join(map(lambda x: bitcoin.int_to_hex(x,2), (for_change, n))) mpk = self.mpk.encode('hex') x_pubkey = 'fe' + mpk + s return [ x_pubkey ] @@ -299,9 +293,6 @@ class BIP32_Account(Account): out.append(pk) return out - def redeem_script(self, sequence): - return None - def get_type(self): return _('Standard 1 of 1')