X-Git-Url: https://git.novaco.in/?p=electrum-nvc.git;a=blobdiff_plain;f=lib%2Faccount.py;h=9a9d86ed3209da09badba6a3aa99b8e7d4e12a28;hp=87fcb54c91453f699ae271e0284daf238a5788e0;hb=38e662e5227ae0fa819e353b65aa1195bb92ba9f;hpb=c0fe5962ad32ab43d75b9cee124b860c0acbdf24 diff --git a/lib/account.py b/lib/account.py index 87fcb54..9a9d86e 100644 --- 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')