def _get_private_key_wif(self, txdata, tx): # Newly created nlocktime files use branch 4, but some old ones may # have used branch 1, attempt both before failing. for branch in [4, 1]: key = gacommon.derive_user_private_key(txdata, self.wallet, branch) if self._private_key_can_spend_output(tx, key): return gacommon.private_key_to_wif(key, clargs.args.network) logging.error(';'.join( f'pointers:{t["prevout_pointers"]},subaccounts:{t["prevout_subaccounts"]},' for t in txdata)) msg = 'The nlockime file contains inconsistent information, please contact support.' raise exceptions.GARecoveryError(msg)
def _get_private_key_wif(self, txdata): key = gacommon.derive_user_private_key(txdata, self.wallet, branch=4) return gacommon.private_key_to_wif(key, clargs.args.network)
def _get_private_key_wif(self, txdata): key = gacommon.derive_user_private_key(txdata, self.wallet, branch=4) return gacommon.private_key_to_wif(key, self.is_testnet)