|
@ -1595,7 +1595,6 @@ class OldWallet(Deterministic_Wallet): |
|
|
|
|
|
|
|
|
def add_keypairs_from_KeyID(self, tx, keypairs, password): |
|
|
def add_keypairs_from_KeyID(self, tx, keypairs, password): |
|
|
# first check the provided password |
|
|
# first check the provided password |
|
|
seed = self.get_seed(password) |
|
|
|
|
|
for txin in tx.inputs: |
|
|
for txin in tx.inputs: |
|
|
keyid = txin.get('KeyID') |
|
|
keyid = txin.get('KeyID') |
|
|
if keyid: |
|
|
if keyid: |
|
@ -1608,9 +1607,10 @@ class OldWallet(Deterministic_Wallet): |
|
|
account = self.accounts[0] |
|
|
account = self.accounts[0] |
|
|
addr = account.get_address(for_change, num) |
|
|
addr = account.get_address(for_change, num) |
|
|
txin['address'] = addr # fixme: side effect |
|
|
txin['address'] = addr # fixme: side effect |
|
|
pk = account.get_private_key(seed, (for_change, num)) |
|
|
pk = account.get_private_key((for_change, num), self, password) |
|
|
pubkey = public_key_from_private_key(pk) |
|
|
for sec in pk: |
|
|
keypairs[pubkey] = pk |
|
|
pubkey = public_key_from_private_key(sec) |
|
|
|
|
|
keypairs[pubkey] = sec |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|