mocacinno
Legendary
Offline
Activity: 3388
Merit: 4919
https://merel.mobi => buy facemasks with BTC/LTC
|
|
April 26, 2019, 08:56:19 AM Last edit: April 26, 2019, 09:06:33 AM by mocacinno |
|
I agree with Pmalek but wanted to give you some more info...
There are 2 reasons not to re-use addresses. The first one has been discussed by Pmalek. The second one is that as soon as you spend unspent output funding an address, you need to broadcast the public key in the spending transaction. As long as you don't spend any unspent outputs funding an address, nobody knows your public key... Eventough it's not that important, it adds an extra layer of security.
A second thing is that i wanted to point out that a lot of these "problems" of funds being spread over different addresses come from a common misconception: your funds is NOT stored in your wallet. Your wallet contains an xprv from which private keys are derived (this is only the case for HD wallets, non-HD wallets do not contain an xprv, but merely a bunch of private keys). A public key can be derived from your private key, and if the public key is hashed you'll see your address. Next to this, your wallet might contain some meta info (like labels you added to an address or transaction) and it might keep track of the unspent outputs funding the addresses generated by hashing the public keys belonging to the private keys created by your wallet... Hower, this is merely a caching function, by rescanning the blockchain anybody could find those unspent outputs... Your funds are not stored in your wallet, they're merely the sum of the output value(s) of one or more of the outputs funding (an) address(es) whose private key(s) you own, that are generated by transactions that are stored on the decentralised blockchain.
So, if you disregard the two main reasons not to re-use your addresses, from a financial AND practical point of view it doesn't really matter if there are 1000 unspent outputs funding 1000 addresses monitored by your wallet, or 1000 unspent outputs funding 1 address monitored by your wallet. If you want to spend part of those 1000 unspent outputs, your wallet will combine them untill the output value funding your addresses are greater or equal to the value with which you want to fund the receiving address + the mining fee... It required no effort from your side, your wallet will take care of keeping track of everything.
|