1
I can create addresses with private keys and import those keys into my wallet to receive their unspent outputs to later spend.
My question is split into two parts:
- What exactly happens when you import a private key? Is that private key now stored and its corresponding address now tracked by your wallet?
- A new transaction is signed with a private key. Therefore, if I have 1 BTC on one address and import its private key, and 1 BTC on another address and import that, how is it I can now spend 2 BTC in one transaction, which key was used to sign this new transaction?
>And if I have imported 1000s of private keys. How is a transaction, with multiple inputs, signed efficiently?
< – Anonona – 2019-11-12T18:13:45.177